GtkWidget

Gamma/GTK: Using Gamma™ with GTK, Version 0.9
Prev |  | Next

# `GtkWidget`

`GtkWidget` -- the parent class of widgets.

## Synopsis

    class GtkWidget GtkObject
    {
        allocation;              // GtkAllocation : Read / Write
        app_paintable;           // gboolean      : Read / Write
        can_default;             // gboolean      : Read / Write
        can_focus;               // gboolean      : Read / Write
        composite_child;         // gboolean      : Read / Write
        events;                  // GdkEventMask  : Read / Write
        extension_events;        // GdkEventMask  : Read / Write
        has_default;             // gboolean      : Read / Write
        has_focus;               // gboolean      : Read / Write
        height;                  // gint          : Read / Write
        name;                    // GtkString     : Read / Write
        parent;                  // GtkContainer  : Read / Write
        receives_default;        // gboolean      : Read / Write
        sensitive;               // gboolean      : Read / Write
        state;                   // GtkStateType  : Read / Write
        style;                   // GtkStyle      : Read / Write
        visible;                 // gboolean      : Read / Write
        width;                   // gint          : Read / Write
        x;                       // gint          : Read / Write
        y;                       // gint          : Read / Write
    }

## Parent Classes

`GtkObject`<--GtkWidget

## Child Classes

`GtkCalendar` `GtkContainer` `GtkDrawingArea` `GtkEditable` `GtkMisc` `GtkPreview` `GtkProgress` `GtkRange` `GtkRuler` `GtkSeparator`

## Methods

`Selectionadd_target` (`selection`, `target`, `info`)
`Selectionadd_targets` (`selection`, `targets`, `ntargets`)
`Selectionclear` (`event`)
`Selectionconvert` (`selection`, `target`, `time`)
`Selectionnotify` (`event`)
`Selectionowner_set` (`selection`, `time`)
`Selectionproperty_notify` (`event`)
`Selectionremove_all` ()
`Selectionrequest` (`event`)
`accelerators_locked` ()
`activate` ()
`add_events` (`events`)
`destroy` ()
`draw` (`area`)
`draw_default` ()
`draw_focus` ()
`ensure_style` ()
`event` (`event`)
`get` (`arg`)
`get_ancestor` (`widget_type`)
`get_child_requisition` (`requisition`)
`get_colormap` ()
`get_composite_name` ()
`get_events` ()
`get_extension_events` ()
`get_name` ()
`get_parent_window` ()
`get_style` ()
`get_toplevel` ()
`get_visual` ()
`getv` (`nargs`, `args`)
`grab_add` ()
`grab_default` ()
`grab_focus` ()
`grab_remove` ()
`hide` ()
`hide_all` ()
`hide_on_delete` ()
`intersect` (`area`, `intersection`)
`is_ancestor` (`ancestor`)
`lock_accelerators` ()
`map` ()
`modify_style` (`style`)
`popup` (`x`, `y`)
`queue_clear` ()
`queue_clear_area` (`x`, `y`, `width`, `height`)
`queue_draw` ()
`queue_draw_area` (`x`, `y`, `width`, `height`)
`queue_resize` ()
`realize` ()
`ref` ()
`remove_accelerators` (`accel_signal`, `visible_only`)
`reparent` (`new_parent`)
`reset_rc_styles` ()
`reset_shapes` ()
`restore_default_style` ()
`set_app_paintable` (`app_paintable`)
`set_color` (`colorid`, `widget_state`, `color`)
`set_colormap` (`colormap`)
`set_composite_name` (`name`)
`set_events` (`events`)
`set_extension_events` (`mode`)
`set_name` (`name`)
`set_parent` (`parent`)
`set_parent_window` (`parent_window`)
`set_rc_style` ()
`set_scroll_adjustments` (`hadjustment`, `vadjustment`)
`set_sensitive` (`sensitive`)
`set_state` (`state`)
`set_style` (`style`)
`set_uposition` (`x`, `y`)
`set_usize` (`width`, `height`)
`set_visual` (`visual`)
`setv` (`nargs`, `args`)
`shape_combine_mask` (`shape_mask`, `offset_x`, `offset_y`)
`show` ()
`show_all` ()
`show_now` ()
`size_allocate` (`allocation`)
`size_request` (`requisition`)
`unlock_accelerators` ()
`unmap` ()
`unparent` ()
`unrealize` ()
`unref` ()

## Related Functions

`gtk_widget_get_default_colormap` ()
`gtk_widget_get_default_style` ()
`gtk_widget_get_default_visual` ()
`gtk_widget_get_type` () -- replaces GTK_TYPE_WIDGET
`gtk_widget_newv` (`type`, `nargs`, `args`)
`gtk_widget_pop_colormap` ()
`gtk_widget_pop_composite_child` ()
`gtk_widget_pop_style` ()
`gtk_widget_pop_visual` ()
`gtk_widget_push_colormap` (`cmap`)
`gtk_widget_push_composite_child` ()
`gtk_widget_push_style` (`style`)
`gtk_widget_push_visual` (`visual`)
`gtk_widget_set_default_colormap` (`colormap`)
`gtk_widget_set_default_style` (`style`)
`gtk_widget_set_default_visual` (`visual`)

Prev | Home | Next
`GtkViewport` | Up | `GtkWindow`

Copyright 1995-2002 by Cogent Real-Time Systems, Inc.