Xfce Foundation Classes
Main Page | Index | Namespace List | Alphabetical List | Class List | File List

# widget.hh File Reference

A GtkWidget C++ wrapper interface. More...

`#include <xfc/atk/implementor.hh>`
`#include <xfc/gtk/adjustment.hh>`
`#include <xfc/gtk/enums.hh>`
`#include <xfc/gdk/events.hh>`
`#include <xfc/gtk/selection.hh>`
`#include <xfc/gtk/inline/widget.inl>`

## Namespaces

- namespace Xfc
- namespace Xfc::Atk
- namespace Xfc::Gdk
- namespace Xfc::G
- namespace Xfc::Pango
- namespace Xfc::Gtk

## Classes

- class Xfc::Gtk::Allocation
    A GtkAllocation C++ wrapper class. More...
- class Xfc::Gtk::Requisition
    A GtkRequisition C++ wrapper class. More...
- class Xfc::Gtk::Widget
    A GtkWidget C++ wrapper class. More...

## Typedefs

- typedef unsigned int WidgetFlagsField
    WidgetFlagsField holds one or more values from the Gtk::WidgetFlags enumeration OR'd together.

## Enumerations

- enum WidgetFlags {
  TOP_LEVEL = GTK_TOPLEVEL,
  NO_WINDOW = GTK_NO_WINDOW,
  REALIZED = GTK_REALIZED,
  MAPPED = GTK_MAPPED,
  VISIBLE = GTK_VISIBLE,
  SENSITIVE = GTK_SENSITIVE,
  PARENT_SENSITIVE = GTK_PARENT_SENSITIVE,
  CAN_FOCUS = GTK_CAN_FOCUS,
  HAS_FOCUS = GTK_HAS_FOCUS,
  CAN_DEFAULT = GTK_CAN_DEFAULT,
  HAS_DEFAULT = GTK_HAS_DEFAULT,
  HAS_GRAB = GTK_HAS_GRAB,
  RC_STYLE = GTK_RC_STYLE,
  COMPOSITE_CHILD = GTK_COMPOSITE_CHILD,
  NO_REPARENT = GTK_NO_REPARENT,
  APP_PAINTABLE = GTK_APP_PAINTABLE,
  RECEIVES_DEFAULT = GTK_RECEIVES_DEFAULT,
  DOUBLE_BUFFERED = GTK_DOUBLE_BUFFERED,
  NO_SHOW_ALL = GTK_NO_SHOW_ALL
  }
    WidgetFlags tells about certain properties of the widget. More...
- enum WidgetHelpType {
  WIDGET_HELP_TOOLTIP = GTK_WIDGET_HELP_TOOLTIP,
  WIDGET_HELP_WHATS_THIS = GTK_WIDGET_HELP_WHATS_THIS
  }
    WidgetHelpType defines the type of help, either tooltip or "What's this". More...

## Detailed Description

A GtkWidget C++ wrapper interface.

Provides Widget, the base class for widgets that make up the GTK+ graphical user interface, such as windows, menus, buttons, scrollbars editors, drawing areas, and so on.

## Enumeration Type Documentation

enum WidgetFlags

WidgetFlags tells about certain properties of the widget.

Enumeration values:

  TOP_LEVEL | Widgets without a real parent, such as Windows and Menus have this flag set throughout their lifetime; Toplevel widgets always contain their own Gdk::Window.
  NO_WINDOW | Indicative for a widget that does not provide its own Gdk::Window; For such widgets, visible actions (such as drawing) are performed on the parent's Gdk::Window.
  REALIZED | Set by realize(), unset by unrealize(); A realized widget has an associated Gdk::Window.
  MAPPED | Set by map(), unset by unmap(); Only realized widgets can be mapped; It means that show() has been called on the widgets window(s).
  VISIBLE | Set by show(), unset by hide(); Implies that a widget will be mapped as soon as its parent is mapped.
  SENSITIVE | Set and unset by set_sensitive(); The sensitivity of a widget determines whether it will receive certain events (such as button or key presses); One premise for the widget's sensitivity is to have this flag set.
  PARENT_SENSITIVE | Set and unset by set_sensitive() operations on the parents of the widget; This is the second premise for the widget's sensitivity; Once it has SENSITIVE and PARENT_SENSITIVE set, its state is effectively sensitive and Gtk::Widget::is_sensitive() will return true.
  CAN_FOCUS | Determines whether a widget is able to handle focus grabs.
  HAS_FOCUS | Set by grab_focus() for widgets that also have CAN_FOCUS set; This flag will be unset once another widget grabs the focus.
  CAN_DEFAULT | The widget is allowed to receive the default action via grab_default().
  HAS_DEFAULT | The widget currently is receiving the default action.
  HAS_GRAB | Set by gtk_grab_add(), unset by gtk_grab_remove(); It means that the widget is in the grab_widgets stack, and will be the preferred one for receiving events other than ones of cosmetic value.
  RC_STYLE | Indicates that the widgets style has been looked up through the rc mechanism; It does not imply that the widget actually had a style defined through the rc mechanism.
  COMPOSITE_CHILD | Indicates that the widget is a composite child of its parent; see push_composite_child(), pop_composite_child().
  NO_REPARENT | Unused since before GTK+ 1.2, will be removed in a future version.
  APP_PAINTABLE | Set and unset by set_app_paintable(); Must be set on widgets whose window the application directly draws on, in order to keep GTK+ from overwriting the drawn stuff.
  RECEIVES_DEFAULT | The widget when focused will receive the default action and have HAS_DEFAULT set even if there is a different widget set as default.
  DOUBLE_BUFFERED | Set and unset by set_double_buffered(); Indicates that exposes done on the widget should be double-buffered.
  NO_SHOW_ALL | The "no_show_all" property, which determines whether calls to show_all() and hide_all() will affect this widget (see Gtk::Widget::set_no_show_all()).

enum WidgetHelpType

WidgetHelpType defines the type of help, either tooltip or "What's this".

Enumeration values:

  WIDGET_HELP_TOOLTIP | Tooltip help.
  WIDGET_HELP_WHATS_THIS | "What's this" help.

Xfce Foundation Classes

Copyright © 2004-2005 The XFC Development Team | XFC 4.3