it-edit smart widgets¶
it-edit implement some few self build widget:
Note
If you get interest into Gtk-3 widget building
you can broad the source to understand How-To build GtkWidget(s) for Gtk-3 from your own.
GtkSmartIconButton¶
A simple button with an icon without label and tool-tip which embed an universal short-cut text.
Constructors¶
-
GtkWidget* gtk_smart_icon_button_new_all(const gchar *filepath, const gchar *tooltip_text, const guint accel_key, const GdkModifierType accel_modifier) ;
Parameters: - filepath (
const gchar *
) – The filepath to the image to use as icon. - tooltip_text (
const gchar *
) – The tool-tip text without the accelerator label. - accel_key (
const guint
) – The shortcut accelerator key. - accel_modifier (
const GdkModifierType
) – The shortcut modifier.
Return type: GtkWidget *
Returns: A pointer to the
GtkSmartIconButton
widget.- filepath (
-
GtkWidget* gtk_smart_icon_toggle_button_new_all(const gchar *filepath, const gchar *tooltip_text, const guint accel_key, const GdkModifierType accel_modifier) ;
Parameters: - filepath (
const gchar *
) – The filepath to the image to use as icon. - tooltip_text (
const gchar *
) – The tool-tip text without the accelerator label. - accel_key (
const guint
) – The shortcut accelerator key. - accel_modifier (
const GdkModifierType
) – The shortcut modifier.
Return type: GtkWidget *
Returns: A pointer to the
GtkSmartIconButton
toggle button widget.- filepath (
Getters¶
-
GtkWidget* gtk_smart_icon_button_get_image(GtkWidget *smart_icon_button) ;
Parameters: - smart_icon_button (
GtkWidget *
) – The return value from the constructor of aGtkSmartIconButton
.
Return type: GtkWidget *
Returns: A pointer to the
GtkImage
widget.- smart_icon_button (
GtkItTerm¶
Not reusable like this.
Note
I’ve learned how to implement self builded Gtk-3 widgets
If you get interest in building widgets take a look at the source for basics.