Class
GntWidget
Instance methods
gnt_widget_activate
Activate a widget. This only applies to widgets that can be activated (eg. GntButton)
gnt_widget_get_has_shadow
Returns the has-shadow property on widget. Note, this is a property of the
widget, but does not necessarily mean the widget will have a shadow as that
depends on its styling. Use gnt_widget_has_shadow()
to determine whether the
widget will actually have a shadow.
since: 2.14
gnt_widget_get_toplevel
Get the toplevel parent of a widget in the container hierarchy. If widget has no parent widgets, it will be returned as the topmost widget.
since: 2.14
gnt_widget_set_has_focus
Sets the has-focus flag on a widget. Note, setting this flag does not necessarily mean the widget will have focus.
since: 2.14
gnt_widget_set_has_shadow
Sets the has-shadow property on widget to has_shadow. Note, setting this property does not necessarily mean the widget will have a shadow, depending on its styling.
since: 2.14
gnt_widget_show
Show a widget. This should only be used for toplevel widgets. For the rest of the widgets, use #gnt_widget_draw instead.
Methods inherited from GntBindable (6)
gnt_bindable_bindings_view
Returns a GntTree populated with “key” -> “binding” for the widget.
since: 2.1.1
gnt_bindable_build_help_window
Builds a window that list the key bindings for a GntBindable object. From this window a user can select a listing to rebind a new key for the given action.
since: 2.1.1
gnt_bindable_check_key
Discover if a key is bound.
since: 2.4.2
gnt_bindable_perform_action_key
Perform an action from a keybinding.
gnt_bindable_perform_action_named
Perform an action on a bindable object.
gnt_bindable_remap_keys
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.
Class structure
struct GntWidgetClass {
void (* map) (
GntWidget* widget
);
void (* show) (
GntWidget* widget
);
void (* destroy) (
GntWidget* widget
);
void (* draw) (
GntWidget* widget
);
void (* hide) (
GntWidget* widget
);
void (* expose) (
GntWidget* widget,
int x,
int y,
int width,
int height
);
void (* gained_focus) (
GntWidget* widget
);
void (* lost_focus) (
GntWidget* widget
);
void (* size_request) (
GntWidget* widget
);
gboolean (* confirm_size) (
GntWidget* widget,
int width,
int height
);
void (* size_changed) (
GntWidget* widget,
int w,
int h
);
void (* set_position) (
GntWidget* widget,
int x,
int y
);
gboolean (* key_pressed) (
GntWidget* widget,
const char* keys
);
void (* activate) (
GntWidget* widget
);
gboolean (* clicked) (
GntWidget* widget,
GntMouseEvent event,
int x,
int y
);
}
The class structure for GntWidget
.
Class members
map: void (* map) ( GntWidget* widget )
- No description available.
show: void (* show) ( GntWidget* widget )
- No description available.
destroy: void (* destroy) ( GntWidget* widget )
- No description available.
draw: void (* draw) ( GntWidget* widget )
- No description available.
hide: void (* hide) ( GntWidget* widget )
- No description available.
expose: void (* expose) ( GntWidget* widget, int x, int y, int width, int height )
- No description available.
gained_focus: void (* gained_focus) ( GntWidget* widget )
- No description available.
lost_focus: void (* lost_focus) ( GntWidget* widget )
- No description available.
size_request: void (* size_request) ( GntWidget* widget )
- No description available.
confirm_size: gboolean (* confirm_size) ( GntWidget* widget, int width, int height )
- No description available.
size_changed: void (* size_changed) ( GntWidget* widget, int w, int h )
- No description available.
set_position: void (* set_position) ( GntWidget* widget, int x, int y )
- No description available.
key_pressed: gboolean (* key_pressed) ( GntWidget* widget, const char* keys )
- No description available.
activate: void (* activate) ( GntWidget* widget )
- No description available.
clicked: gboolean (* clicked) ( GntWidget* widget, GntMouseEvent event, int x, int y )
- No description available.
Virtual methods
Gnt.WidgetClass.activate
Activate a widget. This only applies to widgets that can be activated (eg. GntButton)
Gnt.WidgetClass.show
Show a widget. This should only be used for toplevel widgets. For the rest of the widgets, use #gnt_widget_draw instead.