Class Index | Cross Index | Namespace Index |
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 | (); |
Windows which are told to manage() are not deleted until they are
sent the destroy signal.
This creates a window with an optional type.
This is a gtk-- specific function. This accel group can not be removed.
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:
See wmclass_name and wmclass_class.