Gtk.Window Members

The members of Gtk.Window are listed below.

See Also: Inherited members from Gtk.Bin

Public Constructors

Creates a new Window object, based on the type.
Internal constructor.
Creates a new TopLevel Window object, with string as the title.

Protected Constructors

Protected constructor.

Public Properties

AcceptFocusbool. Windows may set a hint asking the desktop environment not to receive the input focus.
AllowGrowbool. Sets or obtains if the window can be resized to a larger size by the user.
AllowShrinkbool. Sets or obtains if the window has no mininum size.
[write-only]
static
AutoStartupNotificationbool. Property used for setting the automatic startup notification.
Decoratedbool. Sets or obtains whether the window has been set to have decorations.
[write-only]
DefaultWidget. Sets or unsets the default widget for a Gtk.Window about.
DefaultHeightint. Property used for setting or obtaining the default height of a window.
[write-only]
static
DefaultIconGdk.Pixbuf. Sets an icon to be used as fallback for windows that have not had Window.SetIcon() called on them from a pixbuf.
static
DefaultIconListGdk.Pixbuf[]. Sets or obtains the icon list to be used as fallback for windows that haven't had Window.IconList called on them to set up a window-specific icon list.
[write-only]
static
DefaultIconNamestring. Documentation for this section has not yet been entered.
DefaultSizeGdk.Size. Sets or obtains the default size of window.
DefaultWidthint. Property used for setting or obtaining the default width of a window.
Deletablebool. Indicates if the window has a close button.
DestroyWithParentbool. Sets or obtains whether the transient parent of window will also destroy window itself
FocusWidget. Sets a widget to be the focus widget for the window if it is not the current focus widget, and its focusable, or retrieves the current focused widget within the window.
FocusOnMapbool. Documentation for this section has not yet been entered.
GravityGdk.Gravity. Sets or obtains the meaning of coordinates passed to Window.Move.
[read-only]
GroupWindowGroup. Gets the Group the window is associated with.
[read-only]
static
GTypeGLib.GType. GType Property
HasFramebool. If this function is called on a window with setting of true, before it is realized or showed, it will have a "frame" window around widget->window, accessible in window->frame. Or it access the "frame" window exterior to widget->window.
[read-only]
HasToplevelFocusbool. Whether the input focus is within this window.
IconGdk.Pixbuf. Property used for setting the icon for a window.
IconListGdk.Pixbuf[]. Sets or obtains the list of icons representing a Gtk.Window.
IconNamestring. Documentation for this section has not yet been entered.
[read-only]
IsActivebool. Whether the toplevel is the current active window.
[write-only]
KeepAbovebool. Asks to keep window above, so that it stays on top.
[write-only]
KeepBelowbool. Asks to keep window below, so that it stays in bottom.
MnemonicModifierGdk.ModifierType. Sets or obtains the mnemonic modifier for this window.
Modalbool. Sets or obtains the modal status of window.
Opacitydouble. Opacity property.
Resizablebool. Sets or obtains whether a window will be resizable by the user or not.
Rolestring. Sets or obtains the role of the window.
ScreenGdk.Screen. Sets or obtains the Gdk.Screen where the window is displayed.
SkipPagerHintbool. Whether the window should not be in the pager.
SkipTaskbarHintbool. Whether the window should not be in the taskbar.
[write-only]
StartupIdstring. Documentation for this section has not yet been entered.
Titlestring. Property used for setting the window title.
TransientForWindow. Sets or obtains the transient parent window.
[read-only]
TypeWindowType. The type of window.
TypeHintGdk.WindowTypeHint. Sets or obtains the type hint for window.
UrgencyHintbool. Urgency Hint.
WindowPositionWindowPosition. Property used for setting/getting the window position.

Public Methods

ActivateDefault() : bool
Activates the default widget for the window.
ActivateFocus() : bool
Activates the current focused widget within the window.
ActivateKey(Gdk.EventKey) : bool
Activates mnemonics and accelerators for this window.
AddAccelGroup(AccelGroup)
Associate accel_group with window.
AddEmbeddedXid(uint)
Adds an X id number to the list of embedded windows.
AddMnemonic(uint, Widget)
Adds a mnemonic to this window.
BeginMoveDrag(int, int, int, uint)
Starts moving a window.
BeginResizeDrag(Gdk.WindowEdge, int, int, int, uint)
Starts resizing a window.
Deiconify()
Asks to deiconify (i.e. unminimize) the specified window.
Fullscreen()
Asks to place window in the fullscreen state.
GetDefaultSize(out int, out int)
Gets the default size of the window.
GetFrameDimensions(out int, out int, out int, out int)
Retrieves the dimensions of the frame window for this toplevel.
GetPosition(out int, out int)
This method returns the position you need to pass to Window.Move to keep window in its current position.
GetSize(out int, out int)
Obtains the current size of window.
Iconify()
Asks to iconify (i.e. minimize) the specified window.
static
ListToplevels() : Window[]
Returns a list of all existing toplevel windows.
Maximize()
Asks to maximize window, so that it becomes full-screen.
MnemonicActivate(uint, Gdk.ModifierType) : bool
Activates the targets associated with the mnemonic.
Move(int, int)
Asks the window manager to move window to the given position.
ParseGeometry(string) : bool
Parses a standard X Window System geometry string.
Present()
Presents a window to the user.
PresentWithTime(uint)
Present with a user action timestamp.
PropagateKeyEvent(Gdk.EventKey) : bool
Propagate a key press or release event to the focus widget and up the focus container chain until a widget handles evnt.
RemoveAccelGroup(AccelGroup)
Reverses the effects of Window.AddAccelGroup.
RemoveEmbeddedXid(uint)
Removes an X id number to the list of embedded windows.
RemoveMnemonic(uint, Widget)
Removes a mnemonic from this window.
ReshowWithInitialSize()
Hides window, then reshows it, resetting the default size and position of the window.
Resize(int, int)
Resizes the window as if the user had done so, obeying geometry constraints.
static
SetDefaultIconFromFile(string) : bool
Sets an icon to be used as fallback for windows that haven't had Window.IconList called on them from a file on disk.
SetDefaultSize(int, int)
Sets the default size of an object, with the specified width and height arguments.
SetFrameDimensions(int, int, int, int)
For windows with frames (see Window.HasFrame) this method can be used to change the size of the frame border.
SetGeometryHints(Widget, Gdk.Geometry, Gdk.WindowHints)
This method sets up hints about how a window can be resized by the user.
SetIconFromFile(string) : bool
Sets the icon for window.
SetPolicy(int, int, int)
Changes how a toplevel window deals with its size request and user resize attempts.
SetPosition(WindowPosition)
Sets the position constraint for a window.
SetWmclass(string, string)
It sets the X Window System "class" and "name" hints for a window. (Don't use this method.)
Stick()
Asks to stick window, which means that it will appear on all user desktops.
Unfullscreen()
Asks to toggle off the fullscreen state for window.
Unmaximize()
Asks to unmaximize window.
Unstick()
Asks to unstick window, which means that it will appear on only one of the user's desktops.

Protected Methods

OnDefaultActivated()
Default handler for the Window.DefaultActivated event.
OnFocusActivated()
Default handler for the Window.FocusActivated event.
OnFrameEvent(Gdk.Event) : bool
Default handler for the Window.FrameEvent event.
OnKeysChanged()
Default handler for the Window.KeysChanged event.
OnMoveFocus(DirectionType)
Default handler for the Window.MoveFocus event.
OnSetFocus(Widget)
Default handler for the Window.SetFocus event.

Public Events

DefaultActivatedDefaultActivated event.
FocusActivatedFocusActivated event.
FrameEventFrameEvent event.
KeysChangedKeysChanged event.
MoveFocusMoveFocus event.
SetFocusSetFocus event.