Top | ![]() |
![]() |
![]() |
![]() |
GtkWidget * | hdy_preferences_window_new () |
gboolean | hdy_preferences_window_get_search_enabled () |
void | hdy_preferences_window_set_search_enabled () |
gboolean | hdy_preferences_window_get_can_swipe_back () |
void | hdy_preferences_window_set_can_swipe_back () |
void | hdy_preferences_window_present_subpage () |
void | hdy_preferences_window_close_subpage () |
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── GtkBin ╰── GtkWindow ╰── HdyWindow ╰── HdyPreferencesWindow
The HdyPreferencesWindow widget presents an application's preferences gathered into pages and groups. The preferences are searchable by the user.
HdyPreferencesWindow has a main CSS node with the name window and the style class .preferences.
GtkWidget *
hdy_preferences_window_new (void
);
Creates a new HdyPreferencesWindow.
Since: 0.0.10
gboolean
hdy_preferences_window_get_search_enabled
(HdyPreferencesWindow *self
);
Gets whether search is enabled for self
.
Since: 1.0
void hdy_preferences_window_set_search_enabled (HdyPreferencesWindow *self
,gboolean search_enabled
);
Sets whether search is enabled for self
.
Since: 1.0
gboolean
hdy_preferences_window_get_can_swipe_back
(HdyPreferencesWindow *self
);
Returns whether or not self
allows switching from a subpage to the
preferences via a swipe gesture.
Since: 1.0
void hdy_preferences_window_set_can_swipe_back (HdyPreferencesWindow *self
,gboolean can_swipe_back
);
Sets whether or not self
allows switching from a subpage to the preferences
via a swipe gesture.
Since: 1.0
void hdy_preferences_window_present_subpage (HdyPreferencesWindow *self
,GtkWidget *subpage
);
Sets subpage
as the window's subpage and present it.
The transition can be cancelled by the user, in which case visible child will
change back to the previously visible child.
Since: 1.0
void
hdy_preferences_window_close_subpage (HdyPreferencesWindow *self
);
Closes the current subpage to return back to the preferences, if there is no presented subpage, this does nothing.
Since: 1.0
“can-swipe-back”
property “can-swipe-back” gboolean
Whether or not the window allows closing the subpage via a swipe gesture.
Owner: HdyPreferencesWindow
Flags: Read / Write
Default value: FALSE
Since: 1.0
“search-enabled”
property “search-enabled” gboolean
Whether search is enabled.
Owner: HdyPreferencesWindow
Flags: Read / Write
Default value: TRUE
Since: 1.0