GtkWidgetFlags

GtkWidgetFlags

Flags

Value

Symbolic name

Description

  0GTK_TOPLEVEL Marks a widget as toplevel. This would generally be used internally by GTK.
  1GTK_NO_WINDOW Marks a widget as having no GDK window. This would generally be used internally by GTK, and indicates that the widget is unable to capture GDK events. See also: GtkEventBox.
  2GTK_REALIZED Marks a widget as having been realized, that is, having its GdkWindow instantiated.
  3GTK_MAPPED Marks a widget as having been mapped to the screen. In order to be mapped, a widget must have the GTK_VISIBLE flag set. See also: realize() , map() , show() .
  4GTK_VISIBLE Marks a widget as visible. This is necessary before the widget can be mapped onto the screen.
  5GTK_SENSITIVE Marks a widget as able to react to user input.
  6GTK_PARENT_SENSITIVE Marks the parent of a widget as able to react to user input.
  7GTK_CAN_FOCUS Marks a widget as able to have focus.
  8GTK_HAS_FOCUS Gives a widget focus.
  9GTK_CAN_DEFAULT Marks a widget as able to have default status. This also has the effect of drawing the widget with enough space around it to display its default style.
  10GTK_HAS_DEFAULT Gives a widget default status. The widget will respond directly to keyboard events, and will be drawn in such a way as to make this apparent to the user.
  11GTK_HAS_GRAB Mostly used internally, to ensure that the widget currently having focus is able to grab events relevant to it. Note that flagging a widget in this way requires that the widget is also flagged as sensitive and has its reference count increased. Flagging the widget does not in itself have any bearing on the widget's relationship with other widgets; if you want modality, use GtkWindow's set_modal() method or the static function gtk::grab_add() as appropriate.
  12GTK_RC_STYLE
  13GTK_COMPOSITE_CHILD
  14GTK_NO_REPARENT
  15GTK_APP_PAINTABLE
  16GTK_RECEIVES_DEFAULT A widget flagged in this way will receive the default action and have GTK_HAS_DEFAULT set when it is focused, even if there is a different widget set as default.

© Copyright 2003-2023 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.