![]() |
![]() |
![]() |
Libfm Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces |
FmStandardView; struct FmStandardViewClass; enum FmStandardViewMode; FmStandardViewMode fm_standard_view_get_mode (FmStandardView *fv
); FmStandardViewMode fm_standard_view_mode_from_str (const char *str
); const char * fm_standard_view_mode_to_str (FmStandardViewMode mode
); FmStandardView * fm_standard_view_new (FmStandardViewMode mode
,FmFolderViewUpdatePopup update_popup
,FmLaunchFolderFunc open_folders
); void fm_standard_view_set_mode (FmStandardView *fv
,FmStandardViewMode mode
);
GObject +----GInitiallyUnowned +----GtkWidget +----GtkContainer +----GtkBin +----GtkScrolledWindow +----FmStandardView
FmStandardView implements AtkImplementorIface, GtkBuildable and FmFolderView.
include
: libfm/fm-standard-view.h
The FmStandardView represents view of content of a folder with support of drag & drop and other file/directory operations.
typedef enum { FM_FV_ICON_VIEW, FM_FV_COMPACT_VIEW, FM_FV_THUMBNAIL_VIEW, FM_FV_LIST_VIEW } FmStandardViewMode;
FmStandardViewMode fm_standard_view_get_mode (FmStandardView *fv
);
Retrieves current view mode for folder in fv
.
Before 1.0.1 this API had name fm_folder_view_get_mode.
|
a widget to inspect |
Returns : |
current mode of view. |
Since 0.1.0
FmStandardViewMode fm_standard_view_mode_from_str (const char *str
);
Finds mode which have an associated name equal to str
.
|
the name of mode |
Returns : |
mode id or (FmStandardViewMode)-1 if no such mode exists. |
Since 1.0.2
const char * fm_standard_view_mode_to_str (FmStandardViewMode mode
);
Retrieves string name of rendering mode
. That name may be used for
config save or similar purposes. Returned data are owned by the
implementation and should be not freed by caller.
|
mode id |
Returns : |
name associated with mode . |
Since 1.0.2
FmStandardView * fm_standard_view_new (FmStandardViewMode mode
,FmFolderViewUpdatePopup update_popup
,FmLaunchFolderFunc open_folders
);
Creates new folder view.
|
initial mode of view |
|
callback to update context menu for files. [allow-none] |
|
callback to open folder on activation. [allow-none] |
Returns : |
a new FmStandardView widget. |
Since 1.0.1
void fm_standard_view_set_mode (FmStandardView *fv
,FmStandardViewMode mode
);
Before 1.0.1 this API had name fm_folder_view_set_mode.
Changes current view mode for folder in fv
.
|
a widget to apply |
|
new mode of view |
Since 0.1.0