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(Gtk::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_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() do 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_policy - Set the window resizing policy.

void set_policy(gint allow_shrink, gint allow_grow, gint auto_shrink);
See allow_shrink,allow_grow, and auto_shrink


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_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: