index
gtk-- homepage



Description:
Gtk_Window

#include <gtk--/window.h>
Base classes: Gtk_Bin
Derived by: Gtk_ColorSelectionDialog Gtk_Dialog Gtk_FileSelection Gtk_FontSelectionDialog Gtk_Plug



Properties:

NameTypeGetSetDescription
title _gtk_string   set_title() Title displayed by window manager for this window. 0 is means this window has no title.

Windows with a type of GTK_WINDOW_POPUP may not display a title even if set.

wmclass_name _gtk_string   set_wmclass() Property used for X window manager.
wmclass_class _gtk_string   set_wmclass() Property used for X window manager.
type GtkWindowType     This flags determine what kind of decorations and behavior this window gets. This information is given to the window manager and it determines how to show the window on the screen. See GtkWindowType

Possible values for GtkWindowType argument are: GTK_WINDOW_TOPLEVEL, GTK_WINDOW_DIALOG, GTK_WINDOW_POPUP

focus_widget Gtk_Widget*      
default_widget Gtk_Widget*      
transient_parent Gtk_Window*      
resize_count gushort      
allow_shrink guint:1   set_policy() Indicates if shrinking this window is allowed.
allow_grow guint:1   set_policy() Indicates if expanding this window is allowed.
auto_shrink guint:1   set_policy()  
handling_resize guint:1      
position guint:2     Determine where the window will be displayed when it is finally drawn to the screen. Currently the following positions and the effect they have on window placement can be specified. See GtkWindowPosition

Possible states are: GTK_WIN_POS_NONE, GTK_WIN_POS_CENTER, GTK_WIN_POS_MOUSE

use_uposition guint:1     The following flag is initially TRUE when a window is mapped. and will be set to FALSE after it is first positioned. It is also temporarily reset when the window's size changes.

When TRUE, we move the window to the position the app set.

modal guint:1   set_modal() A modal window is one that must be responded to before the user is allowed to return to the application. Use modal windows sparingly.


Public member index:


Gtk_Window(GtkWindowType type=GTK_WINDOW_TOPLEVEL);
Create a window.

Gtk_Window(GtkWindow *castitem);
void set_title(const _gtk_string &title);
Set the window title.

void set_wmclass(const _gtk_string &wmclass_name,const _gtk_string &wmclass_class);
Set the window manager names.

void set_policy(gint allow_shrink,gint allow_grow,gint auto_shrink);
Set the window resizing policy.

void add_accel_group(const Gtk_AccelGroup &accel_group);
(Gtk 1.1)

void remove_accel_group(const Gtk_AccelGroup &accel_group);
(Gtk 1.1)

void set_modal(bool modal);
(Gtk 1.1)

void set_default_size(gint width,gint height);
(Gtk 1.1)

void set_geometry_hints(const Gtk_Widget &geometry_widget,GdkGeometry *geometry,GdkWindowHints geom_mask);
(Gtk 1.1)

void set_transient_for(const Gtk_Window &parent);
(Gtk 1.1)

void set_position(GtkWindowPosition position);
Set the window position.

gint activate_focus();
gint activate_default();
signal void set_focus_c(GtkWidget *);
signal void set_focus(Gtk_Widget *);
GtkWindow *gtkobj();
const GtkWindow *gtkobj()const;
static bool isGtkWindow(Gtk_Object *checkcast);
Protected member index:


virtual void *get_parent_class();
virtual void set_focus_c_impl(GtkWidget *p1);
Private member index:


GtkType get_type();

Public member details:


Gtk_Window
Gtk_Window::Gtk_Window(GtkWindowType type=GTK_WINDOW_TOPLEVEL);

Create a window.
This creates a window with an optional type.


set_wmclass
void Gtk_Window::set_wmclass(const _gtk_string &wmclass_name,const _gtk_string &wmclass_class);

Set the window manager names.
See wmclass_name and wmclass_class.


set_policy
void Gtk_Window::set_policy(gint allow_shrink,gint allow_grow,gint auto_shrink);

Set the window resizing policy.
See allow_shrink,allow_grow, and auto_shrink


Protected member details:



Private member details:



Examples:





(pages generated by PERCEPS -script.)