gtk+-2.0 Reference Manual

Synopsis

public class Window : Bin, Implementor, Buildable  {
    public    weak string               wmclass_name ;
    public    weak string               wmclass_class ;
    public    weak string               wm_role ;
    public    weak Widget               focus_widget ;
    public    weak Widget               default_widget ;
    public    weak Window               transient_parent ;
    public    weak WindowGeometryInfo   geometry_info ;
    public    weak Gdk.Window           frame ;
    public    weak WindowGroup          group ;
    public    ushort                    configure_request_count ;
    public    uint                      configure_notify_received ;
    public    uint                      need_default_position ;
    public    uint                      need_default_size ;
    public    uint                      position ;
    public    uint                      has_user_ref_count ;
    public    uint                      has_focus ;
    public    uint                      has_frame ;
    public    uint                      iconify_initially ;
    public    uint                      stick_initially ;
    public    uint                      maximize_initially ;
    public    uint                      frame_left ;
    public    uint                      frame_top ;
    public    uint                      frame_right ;
    public    uint                      frame_bottom ;
    public    uint                      keys_changed_handler ;
    public    Gdk.ModifierType          mnemonic_modifier ;


    public    weak bool                 accept_focus              { get; set; } ;
    public    weak bool                 allow_grow                { get; set; } ;
    public    weak bool                 allow_shrink              { get; set; } ;
    public    weak bool                 decorated                 { get; set; } ;
    public    weak int                  default_height            { get; set; } ;
    public    weak int                  default_width             { get; set; } ;
    public    weak bool                 deletable                 { get; set; } ;
    public    weak bool                 destroy_with_parent       { get; set; } ;
    public    weak bool                 focus_on_map              { get; set; } ;
    public    weak Gdk.Gravity          gravity                   { get; set; } ;
    public    weak bool                 has_toplevel_focus        { get; } ;
    public    weak Gdk.Pixbuf           icon                      { get; set; } ;
    public    weak string               icon_name                 { get; set; } ;
    public    weak bool                 is_active                 { get; } ;
    public    weak bool                 modal                     { get; set; } ;
    public    weak double               opacity                   { get; set; } ;
    public    weak bool                 resizable                 { get; set; } ;
    public    weak string               role                      { get; set; } ;
    public    weak Gdk.Screen           screen                    { get; set; } ;
    public    weak bool                 skip_pager_hint           { get; set; } ;
    public    weak bool                 skip_taskbar_hint         { get; set; } ;
    public    weak string               startup_id                { set; } ;
    public    weak string               title                     { get; set; } ;
    public    weak Window               transient_for             { get; construct set; } ;
    public    weak WindowType           type                      { get; construct } ;
    public    weak Gdk.WindowTypeHint   type_hint                 { get; set; } ;
    public    weak bool                 urgency_hint              { get; set; } ;
    public    weak WindowPosition       window_position           { get; set; } ;


    public                              Window                    ( WindowType          type ) ;


    public    signal void               default_activated         (  )  ;
    public    signal void               focus_activated           (  )  ;
    public    signal bool               frame_event               ( Gdk.Event           event )  ;
    public    signal void               keys_changed              (  )  ;
    public    signal void               set_focus                 ( Widget              focus )  ;


    public    bool                      activate_default          (  ) ;
    public    bool                      activate_focus            (  ) ;
    public    bool                      activate_key              ( Gdk.EventKey        event ) ;
    public    void                      add_accel_group           ( AccelGroup          accel_group ) ;
    public    void                      add_embedded_xid          ( uint                xid ) ;
    public    void                      add_mnemonic              ( uint                keyval,
                                                                    Widget              target ) ;
    public    void                      begin_move_drag           ( int                 button,
                                                                    int                 root_x,
                                                                    int                 root_y,
                                                                    uint                timestamp ) ;
    public    void                      begin_resize_drag         ( Gdk.WindowEdge      edge,
                                                                    int                 button,
                                                                    int                 root_x,
                                                                    int                 root_y,
                                                                    uint                timestamp ) ;
    public    void                      deiconify                 (  ) ;
    public    void                      fullscreen                (  ) ;
    public    bool                      get_accept_focus          (  ) ;
    public    bool                      get_decorated             (  ) ;
    public    static weak GLib.List     get_default_icon_list     (  ) ;
    public    void                      get_default_size          ( int                 width,
                                                                    int                 height ) ;
    public    bool                      get_deletable             (  ) ;
    public    bool                      get_destroy_with_parent   (  ) ;
    public    weak Widget               get_focus                 (  ) ;
    public    bool                      get_focus_on_map          (  ) ;
    public    void                      get_frame_dimensions      ( int                 left,
                                                                    int                 top,
                                                                    int                 right,
                                                                    int                 bottom ) ;
    public    Gdk.Gravity               get_gravity               (  ) ;
    public    weak WindowGroup          get_group                 (  ) ;
    public    bool                      get_has_frame             (  ) ;
    public    weak Gdk.Pixbuf           get_icon                  (  ) ;
    public    weak GLib.List            get_icon_list             (  ) ;
    public    weak string               get_icon_name             (  ) ;
    public    Gdk.ModifierType          get_mnemonic_modifier     (  ) ;
    public    bool                      get_modal                 (  ) ;
    public    double                    get_opacity               (  ) ;
    public    void                      get_position              ( int                 root_x,
                                                                    int                 root_y ) ;
    public    bool                      get_resizable             (  ) ;
    public    weak string               get_role                  (  ) ;
    public    weak Gdk.Screen           get_screen                (  ) ;
    public    void                      get_size                  ( int                 width,
                                                                    int                 height ) ;
    public    bool                      get_skip_pager_hint       (  ) ;
    public    bool                      get_skip_taskbar_hint     (  ) ;
    public    weak string               get_title                 (  ) ;
    public    weak Window               get_transient_for         (  ) ;
    public    Gdk.WindowTypeHint        get_type_hint             (  ) ;
    public    bool                      get_urgency_hint          (  ) ;
    public    void                      iconify                   (  ) ;
    public    static weak GLib.List     list_toplevels            (  ) ;
    public    void                      maximize                  (  ) ;
    public    bool                      mnemonic_activate         ( uint                keyval,
                                                                    Gdk.ModifierType    modifier ) ;
    public    void                      move                      ( int                 x,
                                                                    int                 y ) ;
    public    bool                      parse_geometry            ( string              geometry ) ;
    public    void                      present                   (  ) ;
    public    void                      present_with_time         ( uint                timestamp ) ;
    public    bool                      propagate_key_event       ( Gdk.EventKey        event ) ;
    public    void                      remove_accel_group        ( AccelGroup          accel_group ) ;
    public    void                      remove_embedded_xid       ( uint                xid ) ;
    public    void                      remove_mnemonic           ( uint                keyval,
                                                                    Widget              target ) ;
    public    void                      reshow_with_initial_size  (  ) ;
    public    void                      resize                    ( int                 width,
                                                                    int                 height ) ;
    public    void                      set_accept_focus          ( bool                setting ) ;
    public    static void               set_auto_startup_notification ( bool                setting ) ;
    public    void                      set_decorated             ( bool                setting ) ;
    public    void                      set_default               ( Widget              default_widget ) ;
    public    static void               set_default_icon          ( Gdk.Pixbuf          icon ) ;
    public    static bool               set_default_icon_from_file ( string              filename ) 
                                                             throws GLib.Error;
    public    static void               set_default_icon_list     ( GLib.List           list ) ;
    public    static void               set_default_icon_name     ( string              name ) ;
    public    void                      set_default_size          ( int                 width,
                                                                    int                 height ) ;
    public    void                      set_deletable             ( bool                setting ) ;
    public    void                      set_destroy_with_parent   ( bool                setting ) ;
    public    void                      set_focus_on_map          ( bool                setting ) ;
    public    void                      set_frame_dimensions      ( int                 left,
                                                                    int                 top,
                                                                    int                 right,
                                                                    int                 bottom ) ;
    public    void                      set_geometry_hints        ( Widget              geometry_widget,
                                                                    Gdk.Geometry        geometry,
                                                                    Gdk.WindowHints     geom_mask ) ;
    public    void                      set_gravity               ( Gdk.Gravity         gravity ) ;
    public    void                      set_has_frame             ( bool                setting ) ;
    public    void                      set_icon                  ( Gdk.Pixbuf          icon ) ;
    public    bool                      set_icon_from_file        ( string              filename ) 
                                                             throws GLib.Error;
    public    void                      set_icon_list             ( GLib.List           list ) ;
    public    void                      set_icon_name             ( string              name ) ;
    public    void                      set_keep_above            ( bool                setting ) ;
    public    void                      set_keep_below            ( bool                setting ) ;
    public    void                      set_mnemonic_modifier     ( Gdk.ModifierType    modifier ) ;
    public    void                      set_modal                 ( bool                modal ) ;
    public    void                      set_opacity               ( double              opacity ) ;
    public    void                      set_position              ( WindowPosition      position ) ;
    public    void                      set_resizable             ( bool                resizable ) ;
    public    void                      set_role                  ( string              role ) ;
    public    void                      set_screen                ( Gdk.Screen          screen ) ;
    public    void                      set_skip_pager_hint       ( bool                setting ) ;
    public    void                      set_skip_taskbar_hint     ( bool                setting ) ;
    public    void                      set_startup_id            ( string              startup_id ) ;
    public    void                      set_title                 ( string              title ) ;
    public    void                      set_transient_for         ( Window              parent ) ;
    public    void                      set_type_hint             ( Gdk.WindowTypeHint  hint ) ;
    public    void                      set_urgency_hint          ( bool                setting ) ;
    public    void                      set_wmclass               ( string              wmclass_name,
                                                                    string              wmclass_class ) ;
    public    void                      stick                     (  ) ;
    public    void                      unfullscreen              (  ) ;
    public    void                      unmaximize                (  ) ;
    public    void                      unstick                   (  ) ;
    public    virtual void              move_focus                ( DirectionType       direction ) ;
}

Window Description

Details

Constructor Details

Window ()
    public                              Window                    ( WindowType          type ) ;		

Field Details

wmclass_name
    public    weak string               wmclass_name ;		

wmclass_class
    public    weak string               wmclass_class ;		

wm_role
    public    weak string               wm_role ;		

focus_widget
    public    weak Widget               focus_widget ;		

default_widget
    public    weak Widget               default_widget ;		

transient_parent
    public    weak Window               transient_parent ;		

geometry_info
    public    weak WindowGeometryInfo   geometry_info ;		

frame
    public    weak Gdk.Window           frame ;		

group
    public    weak WindowGroup          group ;		

configure_request_count
    public    ushort                    configure_request_count ;		

configure_notify_received
    public    uint                      configure_notify_received ;		

need_default_position
    public    uint                      need_default_position ;		

need_default_size
    public    uint                      need_default_size ;		

position
    public    uint                      position ;		

has_user_ref_count
    public    uint                      has_user_ref_count ;		

has_focus
    public    uint                      has_focus ;		

has_frame
    public    uint                      has_frame ;		

iconify_initially
    public    uint                      iconify_initially ;		

stick_initially
    public    uint                      stick_initially ;		

maximize_initially
    public    uint                      maximize_initially ;		

frame_left
    public    uint                      frame_left ;		

frame_top
    public    uint                      frame_top ;		

frame_right
    public    uint                      frame_right ;		

frame_bottom
    public    uint                      frame_bottom ;		

keys_changed_handler
    public    uint                      keys_changed_handler ;		

mnemonic_modifier
    public    Gdk.ModifierType          mnemonic_modifier ;		

Signal Details

default_activated
    public    signal void               default_activated         (  )  ;		

focus_activated
    public    signal void               focus_activated           (  )  ;		

frame_event
    public    signal bool               frame_event               ( Gdk.Event           event )  ;		

keys_changed
    public    signal void               keys_changed              (  )  ;		

set_focus
    public    signal void               set_focus                 ( Widget              focus )  ;		

Property Details

accept_focus
    public    weak bool                 accept_focus              { get; set; } ;		

allow_grow
    public    weak bool                 allow_grow                { get; set; } ;		

allow_shrink
    public    weak bool                 allow_shrink              { get; set; } ;		

decorated
    public    weak bool                 decorated                 { get; set; } ;		

default_height
    public    weak int                  default_height            { get; set; } ;		

default_width
    public    weak int                  default_width             { get; set; } ;		

deletable
    public    weak bool                 deletable                 { get; set; } ;		

destroy_with_parent
    public    weak bool                 destroy_with_parent       { get; set; } ;		

focus_on_map
    public    weak bool                 focus_on_map              { get; set; } ;		

gravity
    public    weak Gdk.Gravity          gravity                   { get; set; } ;		

has_toplevel_focus
    public    weak bool                 has_toplevel_focus        { get; } ;		

icon
    public    weak Gdk.Pixbuf           icon                      { get; set; } ;		

icon_name
    public    weak string               icon_name                 { get; set; } ;		

is_active
    public    weak bool                 is_active                 { get; } ;		

modal
    public    weak bool                 modal                     { get; set; } ;		

opacity
    public    weak double               opacity                   { get; set; } ;		

resizable
    public    weak bool                 resizable                 { get; set; } ;		

role
    public    weak string               role                      { get; set; } ;		

screen
    public    weak Gdk.Screen           screen                    { get; set; } ;		

skip_pager_hint
    public    weak bool                 skip_pager_hint           { get; set; } ;		

skip_taskbar_hint
    public    weak bool                 skip_taskbar_hint         { get; set; } ;		

startup_id
    public    weak string               startup_id                { set; } ;		

title
    public    weak string               title                     { get; set; } ;		

transient_for
    public    weak Window               transient_for             { get; construct set; } ;		

type
    public    weak WindowType           type                      { get; construct } ;		

type_hint
    public    weak Gdk.WindowTypeHint   type_hint                 { get; set; } ;		

urgency_hint
    public    weak bool                 urgency_hint              { get; set; } ;		

window_position
    public    weak WindowPosition       window_position           { get; set; } ;		

Method Details

activate_default ()
    public    bool                      activate_default          (  ) ;		

activate_focus ()
    public    bool                      activate_focus            (  ) ;		

activate_key ()
    public    bool                      activate_key              ( Gdk.EventKey        event ) ;		

add_accel_group ()
    public    void                      add_accel_group           ( AccelGroup          accel_group ) ;		

add_embedded_xid ()
    public    void                      add_embedded_xid          ( uint                xid ) ;		

add_mnemonic ()
    public    void                      add_mnemonic              ( uint                keyval,
                                                                    Widget              target ) ;		

begin_move_drag ()
    public    void                      begin_move_drag           ( int                 button,
                                                                    int                 root_x,
                                                                    int                 root_y,
                                                                    uint                timestamp ) ;		

begin_resize_drag ()
    public    void                      begin_resize_drag         ( Gdk.WindowEdge      edge,
                                                                    int                 button,
                                                                    int                 root_x,
                                                                    int                 root_y,
                                                                    uint                timestamp ) ;		

deiconify ()
    public    void                      deiconify                 (  ) ;		

fullscreen ()
    public    void                      fullscreen                (  ) ;		

get_accept_focus ()
    public    bool                      get_accept_focus          (  ) ;		

get_decorated ()
    public    bool                      get_decorated             (  ) ;		

get_default_icon_list ()
    public    static weak GLib.List     get_default_icon_list     (  ) ;		

get_default_size ()
    public    void                      get_default_size          ( int                 width,
                                                                    int                 height ) ;		

get_deletable ()
    public    bool                      get_deletable             (  ) ;		

get_destroy_with_parent ()
    public    bool                      get_destroy_with_parent   (  ) ;		

get_focus ()
    public    weak Widget               get_focus                 (  ) ;		

get_focus_on_map ()
    public    bool                      get_focus_on_map          (  ) ;		

get_frame_dimensions ()
    public    void                      get_frame_dimensions      ( int                 left,
                                                                    int                 top,
                                                                    int                 right,
                                                                    int                 bottom ) ;		

get_gravity ()
    public    Gdk.Gravity               get_gravity               (  ) ;		

get_group ()
    public    weak WindowGroup          get_group                 (  ) ;		

get_has_frame ()
    public    bool                      get_has_frame             (  ) ;		

get_icon ()
    public    weak Gdk.Pixbuf           get_icon                  (  ) ;		

get_icon_list ()
    public    weak GLib.List            get_icon_list             (  ) ;		

get_icon_name ()
    public    weak string               get_icon_name             (  ) ;		

get_mnemonic_modifier ()
    public    Gdk.ModifierType          get_mnemonic_modifier     (  ) ;		

get_modal ()
    public    bool                      get_modal                 (  ) ;		

get_opacity ()
    public    double                    get_opacity               (  ) ;		

get_position ()
    public    void                      get_position              ( int                 root_x,
                                                                    int                 root_y ) ;		

get_resizable ()
    public    bool                      get_resizable             (  ) ;		

get_role ()
    public    weak string               get_role                  (  ) ;		

get_screen ()
    public    weak Gdk.Screen           get_screen                (  ) ;		

get_size ()
    public    void                      get_size                  ( int                 width,
                                                                    int                 height ) ;		

get_skip_pager_hint ()
    public    bool                      get_skip_pager_hint       (  ) ;		

get_skip_taskbar_hint ()
    public    bool                      get_skip_taskbar_hint     (  ) ;		

get_title ()
    public    weak string               get_title                 (  ) ;		

get_transient_for ()
    public    weak Window               get_transient_for         (  ) ;		

get_type_hint ()
    public    Gdk.WindowTypeHint        get_type_hint             (  ) ;		

get_urgency_hint ()
    public    bool                      get_urgency_hint          (  ) ;		

iconify ()
    public    void                      iconify                   (  ) ;		

list_toplevels ()
    public    static weak GLib.List     list_toplevels            (  ) ;		

maximize ()
    public    void                      maximize                  (  ) ;		

mnemonic_activate ()
    public    bool                      mnemonic_activate         ( uint                keyval,
                                                                    Gdk.ModifierType    modifier ) ;		

move ()
    public    void                      move                      ( int                 x,
                                                                    int                 y ) ;		

parse_geometry ()
    public    bool                      parse_geometry            ( string              geometry ) ;		

present ()
    public    void                      present                   (  ) ;		

present_with_time ()
    public    void                      present_with_time         ( uint                timestamp ) ;		

propagate_key_event ()
    public    bool                      propagate_key_event       ( Gdk.EventKey        event ) ;		

remove_accel_group ()
    public    void                      remove_accel_group        ( AccelGroup          accel_group ) ;		

remove_embedded_xid ()
    public    void                      remove_embedded_xid       ( uint                xid ) ;		

remove_mnemonic ()
    public    void                      remove_mnemonic           ( uint                keyval,
                                                                    Widget              target ) ;		

reshow_with_initial_size ()
    public    void                      reshow_with_initial_size  (  ) ;		

resize ()
    public    void                      resize                    ( int                 width,
                                                                    int                 height ) ;		

set_accept_focus ()
    public    void                      set_accept_focus          ( bool                setting ) ;		

set_auto_startup_notification ()
    public    static void               set_auto_startup_notification ( bool                setting ) ;		

set_decorated ()
    public    void                      set_decorated             ( bool                setting ) ;		

set_default ()
    public    void                      set_default               ( Widget              default_widget ) ;		

set_default_icon ()
    public    static void               set_default_icon          ( Gdk.Pixbuf          icon ) ;		

set_default_icon_from_file ()
    public    static bool               set_default_icon_from_file ( string              filename ) 
                                                             throws GLib.Error;		

set_default_icon_list ()
    public    static void               set_default_icon_list     ( GLib.List           list ) ;		

set_default_icon_name ()
    public    static void               set_default_icon_name     ( string              name ) ;		

set_default_size ()
    public    void                      set_default_size          ( int                 width,
                                                                    int                 height ) ;		

set_deletable ()
    public    void                      set_deletable             ( bool                setting ) ;		

set_destroy_with_parent ()
    public    void                      set_destroy_with_parent   ( bool                setting ) ;		

set_focus_on_map ()
    public    void                      set_focus_on_map          ( bool                setting ) ;		

set_frame_dimensions ()
    public    void                      set_frame_dimensions      ( int                 left,
                                                                    int                 top,
                                                                    int                 right,
                                                                    int                 bottom ) ;		

set_geometry_hints ()
    public    void                      set_geometry_hints        ( Widget              geometry_widget,
                                                                    Gdk.Geometry        geometry,
                                                                    Gdk.WindowHints     geom_mask ) ;		

set_gravity ()
    public    void                      set_gravity               ( Gdk.Gravity         gravity ) ;		

set_has_frame ()
    public    void                      set_has_frame             ( bool                setting ) ;		

set_icon ()
    public    void                      set_icon                  ( Gdk.Pixbuf          icon ) ;		

set_icon_from_file ()
    public    bool                      set_icon_from_file        ( string              filename ) 
                                                             throws GLib.Error;		

set_icon_list ()
    public    void                      set_icon_list             ( GLib.List           list ) ;		

set_icon_name ()
    public    void                      set_icon_name             ( string              name ) ;		

set_keep_above ()
    public    void                      set_keep_above            ( bool                setting ) ;		

set_keep_below ()
    public    void                      set_keep_below            ( bool                setting ) ;		

set_mnemonic_modifier ()
    public    void                      set_mnemonic_modifier     ( Gdk.ModifierType    modifier ) ;		

set_modal ()
    public    void                      set_modal                 ( bool                modal ) ;		

set_opacity ()
    public    void                      set_opacity               ( double              opacity ) ;		

set_position ()
    public    void                      set_position              ( WindowPosition      position ) ;		

set_resizable ()
    public    void                      set_resizable             ( bool                resizable ) ;		

set_role ()
    public    void                      set_role                  ( string              role ) ;		

set_screen ()
    public    void                      set_screen                ( Gdk.Screen          screen ) ;		

set_skip_pager_hint ()
    public    void                      set_skip_pager_hint       ( bool                setting ) ;		

set_skip_taskbar_hint ()
    public    void                      set_skip_taskbar_hint     ( bool                setting ) ;		

set_startup_id ()
    public    void                      set_startup_id            ( string              startup_id ) ;		

set_title ()
    public    void                      set_title                 ( string              title ) ;		

set_transient_for ()
    public    void                      set_transient_for         ( Window              parent ) ;		

set_type_hint ()
    public    void                      set_type_hint             ( Gdk.WindowTypeHint  hint ) ;		

set_urgency_hint ()
    public    void                      set_urgency_hint          ( bool                setting ) ;		

set_wmclass ()
    public    void                      set_wmclass               ( string              wmclass_name,
                                                                    string              wmclass_class ) ;		

stick ()
    public    void                      stick                     (  ) ;		

unfullscreen ()
    public    void                      unfullscreen              (  ) ;		

unmaximize ()
    public    void                      unmaximize                (  ) ;		

unstick ()
    public    void                      unstick                   (  ) ;		

move_focus ()
    public    virtual void              move_focus                ( DirectionType       direction ) ;		


Created by Valadoc