Class Index Cross Index Namespace Index

Class Gtk::Window

Toplevel Window
Contained in: Gtk
Derived from: Gtk::Bin
Derived by: Gtk::ColorSelectionDialog Gtk::Dialog Gtk::FileSelection Gtk::FontSelectionDialog Gtk::Plug

#include <gtk--/window.h>


public function member index:

explicit Window(GtkWindowType type=GTK_WINDOW_TOPLEVEL);
gint activate_default();
gint activate_focus();
void add_accel_group(AccelGroup& accel_group);
AccelGroup* get_accel_group();
GtkWindowType get_window_type() const;
GtkWindow* gtkobj();
const GtkWindow* gtkobj() const;
static bool isA(Object* object);
bool is_dialog();
bool is_popup();
bool is_toplevel();
void remove_accel_group(AccelGroup& accel_group);
void set_default_size(gint width, gint height);
void set_geometry_hints(Widget& geometry_widget, GdkGeometry* geometry, GdkWindowHints geom_mask);
void set_modal(bool modal);
void set_policy(gint allow_shrink, gint allow_grow, gint auto_shrink);
void set_position(GtkWindowPosition position);
void set_title(const nstring& title);
void set_transient_for(Window& parent);
void set_user_resizeable(gboolean setting);
void set_wmclass(const nstring& wmclass_name, const nstring& wmclass_class);
virtual ~Window();
 

Description:

This represents all widgets which are physical windows controlled by the window manager. Windows have a hidden reference controlled by the gtk-- kit.

Windows which are told to manage() are not deleted until they are sent the destroy signal.


Function Member Descriptions:

Gtk::Window::Window - Create a window.

explicit Window(GtkWindowType type=GTK_WINDOW_TOPLEVEL);
This creates a window with an optional type.


Gtk::Window::add_accel_group -



void add_accel_group(AccelGroup& accel_group);

Gtk::Window::get_accel_group - returns a default accel group for this window

AccelGroup* get_accel_group();
This is a gtk-- specific function. This accel group can not be removed.


Gtk::Window::gtkobj - Returns the underlaying gtk+ object.

GtkWindow* gtkobj();

Gtk::Window::isA - Returns true if object is this type.

static bool isA(Object* object);

Gtk::Window::remove_accel_group -



void remove_accel_group(AccelGroup& accel_group);

Gtk::Window::set_position - Set the window position.

void set_position(GtkWindowPosition position);

Gtk::Window::set_title - Set the window title.

void set_title(const nstring& title);

Gtk::Window::set_user_resizeable - Changes how a toplevel window deals with its size request and user resize attempts.

void set_user_resizeable(gboolean setting);
There are really only two reasonable ways to call this function:

1. set_policy( FALSE, TRUE, FALSE) means that the window is user-resizable.

2. set_policy(FALSE, FALSE, TRUE) means that the window's size is program-controlled, and should simply match the current size request of the window's children.

The first policy is the default, that is, by default windows are designed to be resized by users.

The basic ugly truth of this function is that it should be simply:



Gtk::Window::set_wmclass - Set the window manager names.

void set_wmclass(const nstring& wmclass_name, const nstring& wmclass_class);
See wmclass_name and wmclass_class.



Variable Member Descriptions: