| Top |
| enum | GntWidgetFlags |
| enum | GntMouseEvent |
| enum | GntParamFlags |
| struct | GntWidgetPriv |
| struct | GntWidget |
#define GNT_WIDGET_FLAGS(obj) (GNT_WIDGET(obj)->priv.flags)
GNT_WIDGET_FLAGS has been deprecated since version 2.14.0 and should not be used in newly-written code.
See GntWidgetFlags for individual accessors instead.
#define GNT_WIDGET_SET_FLAGS(obj, flags) (GNT_WIDGET_FLAGS(obj) |= flags)
GNT_WIDGET_SET_FLAGS has been deprecated since version 2.14.0 and should not be used in newly-written code.
See GntWidgetFlags for individual accessors instead.
#define GNT_WIDGET_UNSET_FLAGS(obj, flags) (GNT_WIDGET_FLAGS(obj) &= ~(flags))
GNT_WIDGET_UNSET_FLAGS has been deprecated since version 2.14.0 and should not be used in newly-written code.
See GntWidgetFlags for individual accessors instead.
void
gnt_widget_destroy (GntWidget *widget);
Destroy a widget.
Emits the "destroy" signal notifying all reference holders that they
should release widget
.
void
gnt_widget_show (GntWidget *widget);
Show a widget. This should only be used for toplevel widgets. For the rest of the widgets, use gnt_widget_draw instead.
void gnt_widget_expose (GntWidget *widget,int x,int y,int width,int height);
gnt_widget_expose has been deprecated since version 2.14.0 and should not be used in newly-written code.
Expose part of a widget.
Internal function -- do not use.
GntWidget *
gnt_widget_get_parent (GntWidget *widget);
Get the parent of a widget.
Since: 2.14.0
GntWidget *
gnt_widget_get_toplevel (GntWidget *widget);
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.0
void gnt_widget_get_position (GntWidget *widget,int *x,int *y);
Get the position of a widget.
void gnt_widget_set_position (GntWidget *widget,int x,int y);
Set the position of a widget.
void
gnt_widget_size_request (GntWidget *widget);
Request a widget to calculate its desired size.
void gnt_widget_get_size (GntWidget *widget,int *width,int *height);
Get the size of a widget.
gboolean gnt_widget_set_size (GntWidget *widget,int width,int height);
Set the size of a widget.
gboolean gnt_widget_confirm_size (GntWidget *widget,int width,int height);
Confirm a requested a size for a widget.
gboolean gnt_widget_key_pressed (GntWidget *widget,const char *keys);
Trigger the key-press callbacks for a widget.
gboolean gnt_widget_clicked (GntWidget *widget,GntMouseEvent event,int x,int y);
Trigger the 'click' callback of a widget.
gboolean gnt_widget_set_focus (GntWidget *widget,gboolean set);
Give or remove focus to a widget.
void
gnt_widget_activate (GntWidget *widget);
Activate a widget. This only applies to widgets that can be activated (eg. GntButton)
void gnt_widget_set_name (GntWidget *widget,const char *name);
Set the name of a widget.
const char *
gnt_widget_get_name (GntWidget *widget);
Get the name of a widget.
void
gnt_widget_queue_update (GntWidget *widget);
gnt_widget_queue_update has been deprecated since version 2.14.0 and should not be used in newly-written code.
Use gnt_widget_draw() instead.
Internal function -- do not use.
Use gnt_widget_draw() instead.
void gnt_widget_set_take_focus (GntWidget *widget,gboolean set);
Set whether a widget can take focus or not.
gboolean
gnt_widget_get_take_focus (GntWidget *widget);
Get whether a widget can take focus or not.
Since: 2.14.0
void gnt_widget_set_visible (GntWidget *widget,gboolean set);
Set the visibility of a widget.
gboolean
gnt_widget_get_visible (GntWidget *widget);
Get the visibility of a widget.
Since: 2.14.0
gboolean
gnt_widget_has_shadow (GntWidget *widget);
Check whether the widget has shadows.
gboolean
gnt_widget_in_destruction (GntWidget *widget);
Returns whether the widget is currently being destroyed.
This information can sometimes be used to avoid doing unnecessary work.
Since: 2.14.0
void gnt_widget_set_drawing (GntWidget *widget,gboolean drawing);
Marks the widget as being drawn (or not).
Since: 2.14.0
gboolean
gnt_widget_get_drawing (GntWidget *widget);
Returns whether the widget is currently being drawn.
This information can sometimes be used to avoid doing unnecessary work.
Since: 2.14.0
void gnt_widget_set_mapped (GntWidget *widget,gboolean mapped);
Marks the widget as being mapped (or not).
This should generally only be called from the widget's "map" or "unmap" implementation.
Since: 2.14.0
gboolean
gnt_widget_get_mapped (GntWidget *widget);
Whether widget is mapped or not.
Since: 2.14.0
void gnt_widget_set_has_border (GntWidget *widget,gboolean has_border);
Sets the has-border property on widget to has_border
.
Since: 2.14.0
gboolean
gnt_widget_get_has_border (GntWidget *widget);
Returns the has-border property on widget.
Since: 2.14.0
void gnt_widget_set_has_shadow (GntWidget *widget,gboolean 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.0
gboolean
gnt_widget_get_has_shadow (GntWidget *widget);
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.0
void gnt_widget_set_has_focus (GntWidget *widget,gboolean has_focus);
Sets the has-focus flag on a widget. Note, setting this flag does not necessarily mean the widget will have focus.
This is mostly for internal use; you probably want to use
gnt_widget_set_focus() instead.
Since: 2.14.0
gboolean
gnt_widget_get_has_focus (GntWidget *widget);
Check whether a widget has the focus flag.
This is mostly for internal use; you probably want to use
gnt_widget_has_focus() instead.
void gnt_widget_set_is_urgent (GntWidget *widget,gboolean urgent);
Set the URGENT hint for a widget.
widget |
The widget to set the URGENT hint for |
|
urgent |
Whether the URGENT hint should be set or not |
Since: 2.14.0
void gnt_widget_set_grow_x (GntWidget *widget,gboolean grow_x);
Whether widget should grow in the x direction.
Since: 2.14.0
gboolean
gnt_widget_get_grow_x (GntWidget *widget);
Returns whether the widget should grow in the x direction.
Since: 2.14.0
void gnt_widget_set_grow_y (GntWidget *widget,gboolean grow_y);
Whether widget should grow in the y direction.
Since: 2.14.0
gboolean
gnt_widget_get_grow_y (GntWidget *widget);
Returns whether the widget should grow in the y direction.
Since: 2.14.0
void gnt_widget_set_transient (GntWidget *widget,gboolean transient);
Whether the widget should be transient.
Since: 2.14.0
gboolean
gnt_widget_get_transient (GntWidget *widget);
Returns whether the widget is transient.
Since: 2.14.0
void gnt_widget_set_disable_actions (GntWidget *widget,gboolean disable_actions);
Whether widget actions should be disabled.
Since: 2.14.0
GntWidgetFlags has been deprecated since version 2.14.0 and should not be used in newly-written code.
Use the individual accessor functions documented below instead.
struct GntWidgetPriv {
int GNTSEAL(x), GNTSEAL(y);
int GNTSEAL(width), GNTSEAL(height);
GntWidgetFlags GNTSEAL(flags);
char *GNTSEAL(name);
int GNTSEAL(minw), GNTSEAL(minh); /* Minimum size for the widget */
};
Access to any fields is deprecated. See inline comments for replacements.