Gtk2::Window Glib::Object +----Gtk2::Object +----Gtk2::Widget +----Gtk2::Container +----Gtk2::Bin +----Gtk2::Window Gtk2::Atk::ImplementorIface

widget = Gtk2::Window->new ($type=GTK_WINDOW_TOPLEVEL)

boolean = $window->get_accept_focus

$window->set_accept_focus ($setting)

boolean = $window->activate_default

boolean = $window->activate_focus

boolean = $window->activate_key ($event)

$window->add_accel_group ($accel_group)

$window->add_embedded_xid ($xid)

$window->add_mnemonic ($keyval, $target)

Gtk2::Window->set_auto_startup_notification ($setting)

$window->begin_move_drag ($button, $root_x, $root_y, $timestamp)

$window->begin_resize_drag ($edge, $button, $root_x, $root_y, $timestamp)

boolean = $window->get_decorated

$window->set_decorated ($setting)

Gtk2::Window->set_default_icon_from_file ($filename)

$window->set_default_icon_from_file ($filename)
May croak with a Glib::Error in $@ on failure.

list = Gtk2::Window->get_default_icon_list
Gets the value set by $window->set_default_icon_list.

$window->set_default_icon_list ($pixbuf1, ...)

Gtk2::Window->set_default_icon_name ($name)

Gtk2::Window->set_default_icon ($icon)

$window->set_default ($default_widget)

(width, height) = $window->get_default_size

$window->set_default_size ($width, $height)

$window->deiconify

boolean = $window->get_destroy_with_parent

$window->set_destroy_with_parent ($setting)

widget or undef = $window->get_focus

boolean = $window->get_focus_on_map

$window->set_focus_on_map ($setting)

$window->set_focus ($focus=undef)

(left, top, right, bottom) = $window->get_frame_dimensions

$window->set_frame_dimensions ($left, $top, $right, $bottom)

$window->fullscreen

$window->set_geometry_hints ($geometry_widget, $geometry)

$window->set_geometry_hints ($geometry_widget, $geometry, $geom_mask)
The geom_mask argument, describing which fields in the geometry are valid, is optional. If omitted it will be inferred from the geometry itself.

gravity = $window->get_gravity

$window->set_gravity ($gravity)

boolean = $window->get_has_frame

$window->set_has_frame ($setting)

boolean = $window->has_toplevel_focus

$window->set_icon_from_file ($filename)
May croak with a Glib::Error in $@ on failure.

pixbuf or undef = $window->get_icon

list = $window->get_icon_list
Retrieves the list of icons set by set_icon_list ().

$window->set_icon_list (...)
Sets up the icon representing a Gtk2::Window. The icon is used when the window is minimized (also known as iconified). Some window managers or desktop environments may also place it in the window frame, or display it in other contexts. set_icon_list () allows you to pass in the same icon in several hand-drawn sizes. The list should contain the natural sizes your icon is available in; that is, don't scale the image before passing it to GTK+. Scaling is postponed until the last minute, when the desired final size is known, to allow best quality. By passing several sizes, you may improve the final image quality of the icon, by reducing or eliminating automatic image scaling. Recommended sizes to provide: 16x16, 32x32, 48x48 at minimum, and larger images (64x64, 128x128) if you have them.

string or undef = $window->get_icon_name

$window->set_icon_name ($name)

$window->set_icon ($icon)

$window->iconify

boolean = $window->is_active

$window->set_keep_above ($setting)

$window->set_keep_below ($setting)

list = Gtk2::Window->list_toplevels
Returns a list of all existing toplevel windows.

$window->maximize

boolean = $window->mnemonic_activate ($keyval, $modifier)

modifiertype = $window->get_mnemonic_modifier

$window->set_mnemonic_modifier ($modifier)

boolean = $window->get_modal

$window->set_modal ($modal)

$window->move ($x, $y)

boolean = $window->parse_geometry ($geometry)

(root_x, root_y) = $window->get_position

$window->set_position ($position)

$window->present

boolean = $window->propagate_key_event ($event)

$window->remove_accel_group ($accel_group)

$window->remove_embedded_xid ($xid)

$window->remove_mnemonic ($keyval, $target)

$window->reshow_with_initial_size

boolean = $window->get_resizable

$window->set_resizable ($resizable)

$window->resize ($width, $height)

string = $window->get_role

$window->set_role ($role)

screen = $window->get_screen

$window->set_screen ($screen)

(width, height) = $window->get_size

boolean = $window->get_skip_pager_hint

$window->set_skip_pager_hint ($setting)

boolean = $window->get_skip_taskbar_hint

$window->set_skip_taskbar_hint ($setting)

$window->stick

string = $window->get_title

$window->set_title ($title=undef)

window or undef = $window->get_transient_for

$window->set_transient_for ($parent)

windowtypehint = $window->get_type_hint

$window->set_type_hint ($hint)

$window->unfullscreen

$window->unmaximize

$window->unstick

$window->set_wmclass ($wmclass_name, $wmclass_class)
TRUE if the window should receive the input focus. If TRUE, users can expand the window beyond its minimum size If TRUE, the window has no mimimum size. Setting this to TRUE is 99% of the time a bad idea Whether the window should be decorated by the window manager The default height of the window, used when initially showing the window The default width of the window, used when initially showing the window If this window should be destroyed when the parent is destroyed TRUE if the window should receive the input focus when mapped. The window gravity of the window Whether the input focus is within this GtkWindow Icon for this window Name of the themed icon for this window Whether the toplevel is the current active window If TRUE, the window is modal (other windows are not usable while this one is up) If TRUE, users can resize the window Unique identifier for the window to be used when restoring a session The screen where this window will be displayed TRUE if the window should not be in the pager. TRUE if the window should not be in the task bar. The title of the window The type of the window Hint to help the desktop environment understand what kind of window this is and how to treat it. The initial position of the window

flags Gtk2::Gdk::EventMask

flags Gtk2::Gdk::ModifierType

flags Gtk2::Gdk::WindowHints

enum Gtk2::WindowPosition

enum Gtk2::WindowType
Gtk2, Glib::Object, Gtk2::Object, Gtk2::Widget, Gtk2::Container, Gtk2::Bin Copyright (C) 2003-2005 by the gtk2-perl team. This software is licensed under the LGPL. See Gtk2 for a full notice.