Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
_GtkWidgetClass Struct Reference

#include <gtkwidget.h>

Data Fields

GInitiallyUnownedClass parent_class
 
void(* show )(GtkWidget *widget)
 
void(* hide )(GtkWidget *widget)
 
void(* map )(GtkWidget *widget)
 
void(* unmap )(GtkWidget *widget)
 
void(* realize )(GtkWidget *widget)
 
void(* unrealize )(GtkWidget *widget)
 
void(* root )(GtkWidget *widget)
 
void(* unroot )(GtkWidget *widget)
 
void(* size_allocate )(GtkWidget *widget, int width, int height, int baseline)
 
void(* state_flags_changed )(GtkWidget *widget, GtkStateFlags previous_state_flags)
 
void(* direction_changed )(GtkWidget *widget, GtkTextDirection previous_direction)
 
GtkSizeRequestMode(* get_request_mode )(GtkWidget *widget)
 
void(* measure )(GtkWidget *widget, GtkOrientation orientation, int for_size, int *minimum, int *natural, int *minimum_baseline, int *natural_baseline)
 
gboolean(* mnemonic_activate )(GtkWidget *widget, gboolean group_cycling)
 
gboolean(* grab_focus )(GtkWidget *widget)
 
gboolean(* focus )(GtkWidget *widget, GtkDirectionType direction)
 
void(* set_focus_child )(GtkWidget *widget, GtkWidget *child)
 
void(* move_focus )(GtkWidget *widget, GtkDirectionType direction)
 
gboolean(* keynav_failed )(GtkWidget *widget, GtkDirectionType direction)
 
gboolean(* query_tooltip )(GtkWidget *widget, int x, int y, gboolean keyboard_tooltip, GtkTooltip *tooltip)
 
void(* compute_expand )(GtkWidget *widget, gboolean *hexpand_p, gboolean *vexpand_p)
 
void(* css_changed )(GtkWidget *widget, GtkCssStyleChange *change)
 
void(* system_setting_changed )(GtkWidget *widget, GtkSystemSetting settings)
 
void(* snapshot )(GtkWidget *widget, GtkSnapshot *snapshot)
 
gboolean(* contains )(GtkWidget *widget, double x, double y)
 
GtkWidgetClassPrivatepriv
 
gpointer padding [8]
 

Detailed Description

GtkWidgetClass: @parent_class: The object class structure needs to be the first element in the widget class structure in order for the class mechanism to work correctly. This allows a GtkWidgetClass pointer to be cast to a GObjectClass pointer. @show: Signal emitted when widget is shown @hide: Signal emitted when widget is hidden. @map: Signal emitted when widget is going to be mapped, that is when the widget is visible (which is controlled with gtk_widget_set_visible()) and all its parents up to the toplevel widget are also visible. @unmap: Signal emitted when widget is going to be unmapped, which means that either it or any of its parents up to the toplevel widget have been set as hidden. @realize: Signal emitted when widget is associated with a GdkSurface, which means that gtk_widget_realize() has been called or the widget has been mapped (that is, it is going to be drawn). @unrealize: Signal emitted when the GdkSurface associated with widget is destroyed, which means that gtk_widget_unrealize() has been called or the widget has been unmapped (that is, it is going to be hidden). @root: Called when the widget gets added to a GtkRoot widget. Must chain up @unroot: Called when the widget is about to be removed from its GtkRoot widget. Must chain up @size_allocate: Called to set the allocation, if the widget does not have a layout manager. @state_flags_changed: Signal emitted when the widget state changes, see gtk_widget_get_state_flags(). @direction_changed: Signal emitted when the text direction of a widget changes. @get_request_mode: Called to get the request mode, if the widget does not have a layout manager. This allows a widget to tell its parent container whether it prefers to be allocated in GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH or GTK_SIZE_REQUEST_WIDTH_FOR_HEIGHT mode. GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH means the widget prefers to have GtkWidgetClass.measure() called first to get the default width (passing a for_size of -1), then again to get the height for said default width. GTK_SIZE_REQUEST_CONSTANT_SIZE disables any height-for-width or width-for-height geometry management for said widget and is the default return. It’s important to note that any widget which trades height-for-width or width-for-height must respond properly to a for_size value >= -1 passed to GtkWidgetClass.measure, for both possible orientations. @measure: Called to obtain the minimum and natural size of the widget, if the widget does not have a layout manager. Depending on the orientation parameter, the passed for_size can be interpreted as width or height. A widget will never be allocated less than its minimum size. @mnemonic_activate: Activates the @widget if @group_cycling is FALSE, and just grabs the focus if @group_cycling is TRUE. @grab_focus: Causes @widget to have the keyboard focus for the GtkWindow it’s inside. @focus: Vfunc for gtk_widget_child_focus() @set_focus_child: Sets the focused child of a widget. Must chain up @move_focus: Signal emitted when a change of focus is requested @keynav_failed: Signal emitted if keyboard navigation fails. @query_tooltip: Signal emitted when “has-tooltip” is TRUE and the hover timeout has expired with the cursor hovering “above” widget; or emitted when widget got focus in keyboard mode. @compute_expand: Computes whether a container should give this widget extra space when possible. @css_changed: Vfunc called when the CSS used by widget was changed. Widgets should then discard their caches that depend on CSS and queue resizes or redraws accordingly. The default implementation will take care of this for all the default CSS properties, so implementations must chain up. @system_setting_changed: Emitted when a system setting was changed. Must chain up. @snapshot: Vfunc called when a new snapshot of the widget has to be taken. @contains: Vfunc for gtk_widget_contains().

Definition at line 184 of file gtkwidget.h.

Field Documentation

◆ compute_expand

void(* _GtkWidgetClass::compute_expand) (GtkWidget *widget, gboolean *hexpand_p, gboolean *vexpand_p)

Definition at line 241 of file gtkwidget.h.

◆ contains

gboolean(* _GtkWidgetClass::contains) (GtkWidget *widget, double x, double y)

Definition at line 254 of file gtkwidget.h.

◆ css_changed

void(* _GtkWidgetClass::css_changed) (GtkWidget *widget, GtkCssStyleChange *change)

Definition at line 245 of file gtkwidget.h.

◆ direction_changed

void(* _GtkWidgetClass::direction_changed) (GtkWidget *widget, GtkTextDirection previous_direction)

Definition at line 205 of file gtkwidget.h.

◆ focus

gboolean(* _GtkWidgetClass::focus) (GtkWidget *widget, GtkDirectionType direction)

Definition at line 224 of file gtkwidget.h.

◆ get_request_mode

GtkSizeRequestMode(* _GtkWidgetClass::get_request_mode) (GtkWidget *widget)

Definition at line 209 of file gtkwidget.h.

◆ grab_focus

gboolean(* _GtkWidgetClass::grab_focus) (GtkWidget *widget)

Definition at line 223 of file gtkwidget.h.

◆ hide

void(* _GtkWidgetClass::hide) (GtkWidget *widget)

Definition at line 192 of file gtkwidget.h.

◆ keynav_failed

gboolean(* _GtkWidgetClass::keynav_failed) (GtkWidget *widget, GtkDirectionType direction)

Definition at line 232 of file gtkwidget.h.

◆ map

void(* _GtkWidgetClass::map) (GtkWidget *widget)

Definition at line 193 of file gtkwidget.h.

◆ measure

void(* _GtkWidgetClass::measure) (GtkWidget *widget, GtkOrientation orientation, int for_size, int *minimum, int *natural, int *minimum_baseline, int *natural_baseline)

Definition at line 210 of file gtkwidget.h.

◆ mnemonic_activate

gboolean(* _GtkWidgetClass::mnemonic_activate) (GtkWidget *widget, gboolean group_cycling)

Definition at line 219 of file gtkwidget.h.

◆ move_focus

void(* _GtkWidgetClass::move_focus) (GtkWidget *widget, GtkDirectionType direction)

Definition at line 230 of file gtkwidget.h.

◆ padding

gpointer _GtkWidgetClass::padding[8]

Definition at line 262 of file gtkwidget.h.

◆ parent_class

GInitiallyUnownedClass _GtkWidgetClass::parent_class

Definition at line 186 of file gtkwidget.h.

◆ priv

GtkWidgetClassPrivate* _GtkWidgetClass::priv

Definition at line 260 of file gtkwidget.h.

◆ query_tooltip

gboolean(* _GtkWidgetClass::query_tooltip) (GtkWidget *widget, int x, int y, gboolean keyboard_tooltip, GtkTooltip *tooltip)

Definition at line 235 of file gtkwidget.h.

◆ realize

void(* _GtkWidgetClass::realize) (GtkWidget *widget)

Definition at line 195 of file gtkwidget.h.

◆ root

void(* _GtkWidgetClass::root) (GtkWidget *widget)

Definition at line 197 of file gtkwidget.h.

◆ set_focus_child

void(* _GtkWidgetClass::set_focus_child) (GtkWidget *widget, GtkWidget *child)

Definition at line 226 of file gtkwidget.h.

◆ show

void(* _GtkWidgetClass::show) (GtkWidget *widget)

Definition at line 191 of file gtkwidget.h.

◆ size_allocate

void(* _GtkWidgetClass::size_allocate) (GtkWidget *widget, int width, int height, int baseline)

Definition at line 199 of file gtkwidget.h.

◆ snapshot

void(* _GtkWidgetClass::snapshot) (GtkWidget *widget, GtkSnapshot *snapshot)

Definition at line 251 of file gtkwidget.h.

◆ state_flags_changed

void(* _GtkWidgetClass::state_flags_changed) (GtkWidget *widget, GtkStateFlags previous_state_flags)

Definition at line 203 of file gtkwidget.h.

◆ system_setting_changed

void(* _GtkWidgetClass::system_setting_changed) (GtkWidget *widget, GtkSystemSetting settings)

Definition at line 248 of file gtkwidget.h.

◆ unmap

void(* _GtkWidgetClass::unmap) (GtkWidget *widget)

Definition at line 194 of file gtkwidget.h.

◆ unrealize

void(* _GtkWidgetClass::unrealize) (GtkWidget *widget)

Definition at line 196 of file gtkwidget.h.

◆ unroot

void(* _GtkWidgetClass::unroot) (GtkWidget *widget)

Definition at line 198 of file gtkwidget.h.


The documentation for this struct was generated from the following file: