GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
Data Structures | Typedefs | Enumerations | Functions
gp_dialog_file.h File Reference

Standard file open and file save dialogs. More...

#include <widgets/gp_widget_types.h>

Go to the source code of this file.

Data Structures

struct  gp_dialog_file_opts
 A file dialog options. More...
 

Typedefs

typedef struct gp_dialog_file_opts gp_dialog_file_opts
 A file dialog options.
 

Enumerations

enum  gp_dialog_file_open_flags
 Open file or directory.
 

Functions

gp_dialoggp_dialog_file_open_new (const char *path, const gp_dialog_file_opts *opts)
 Creates a file open dialog.
 
const char * gp_dialog_file_path (gp_dialog *self)
 Returns a file path for the file dalogs.
 
gp_dialoggp_dialog_file_save_new (const char *path, const gp_dialog_file_opts *opts)
 Creates a file save dialog.
 

Detailed Description

Standard file open and file save dialogs.

Definition in file gp_dialog_file.h.

Function Documentation

◆ gp_dialog_file_open_new()

gp_dialog * gp_dialog_file_open_new ( const char *  path,
const gp_dialog_file_opts opts 
)

Creates a file open dialog.

Parameters
pathAn initial path for the dialog, set it to NULL for default.
optsAdditional options for the dialog.
Returns
Newly allocated dialog that can be executed by gp_dialog_run();

◆ gp_dialog_file_path()

const char * gp_dialog_file_path ( gp_dialog self)

Returns a file path for the file dalogs.

Parameters
selfA file open or file save dialog.
Returns
A string that is valid until dialog is destroyed.

◆ gp_dialog_file_save_new()

gp_dialog * gp_dialog_file_save_new ( const char *  path,
const gp_dialog_file_opts opts 
)

Creates a file save dialog.

Parameters
pathAn initial path for the dialog, set it to NULL for default.
optsFlags and extension hints.
Returns
Newly allocated dialog that can be executed by gp_dialog_run();