Top | ![]() |
![]() |
![]() |
![]() |
GtkWidget * | dzl_progress_menu_button_new () |
gdouble | dzl_progress_menu_button_get_progress () |
void | dzl_progress_menu_button_set_progress () |
gboolean | dzl_progress_menu_button_get_show_theatric () |
void | dzl_progress_menu_button_set_show_theatric () |
void | dzl_progress_menu_button_reset_theatrics () |
gdouble | progress | Read / Write |
gboolean | show-theatric | Read / Write |
gchar * | theatric-icon-name | Read / Write |
guint | transition-duration | Read / Write |
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── GtkBin ╰── GtkButton ╰── GtkToggleButton ╰── GtkMenuButton ╰── DzlProgressMenuButton
DzlProgressMenuButton implements AtkImplementorIface, GtkBuildable, GtkActionable and GtkActivatable.
gdouble
dzl_progress_menu_button_get_progress (DzlProgressMenuButton *button
);
void dzl_progress_menu_button_set_progress (DzlProgressMenuButton *button
,gdouble progress
);
gboolean
dzl_progress_menu_button_get_show_theatric
(DzlProgressMenuButton *self
);
void dzl_progress_menu_button_set_show_theatric (DzlProgressMenuButton *self
,gboolean show_theatic
);
void
dzl_progress_menu_button_reset_theatrics
(DzlProgressMenuButton *self
);
To avoid suprious animations from the button, you must call this function any time you want to allow animations to continue. This is because animations are automatically started upon reaching a progress of 1.0.
If you are performing operations in the background, calling this function every time you add an operation is a good strategry.
#define DZL_TYPE_PROGRESS_MENU_BUTTON (dzl_progress_menu_button_get_type())
struct DzlProgressMenuButtonClass { GtkMenuButtonClass parent_class; gpointer _reserved1; gpointer _reserved2; gpointer _reserved3; gpointer _reserved4; };
“progress”
property “progress” gdouble
Progress.
Flags: Read / Write
Allowed values: [0,1]
Default value: 0
“show-theatric”
property “show-theatric” gboolean
Show Theatric.
Flags: Read / Write
Default value: TRUE
“theatric-icon-name”
property “theatric-icon-name” gchar *
Theatric Icon Name.
Flags: Read / Write
Default value: "folder-download-symbolic"