logo top
Main Page   Widgets   Namespaces   Book  

Gtk::Window Class Reference
[Widgets]

Toplevel Window This represents all widgets which are physical windows controlled by the window manager. More...

Inheritance diagram for Gtk::Window:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual ~Window ()
GtkWindow* gobj ()
 Provides access to the underlying C GtkObject.

const GtkWindow* gobj () const
 Provides access to the underlying C GtkObject.

 Window (WindowType type=WINDOW_TOPLEVEL)
Glib::PropertyProxy<Glib::ustringproperty_title ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy<bool> property_allow_shrink ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy<bool> property_allow_grow ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy<bool> property_resizable ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy<bool> property_modal ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy<WindowPositionproperty_window_position ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy<int> property_default_width ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy<int> property_default_height ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy<bool> property_destroy_with_parent ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy< Glib::RefPtr<
Gdk::Pixbuf > > 
property_icon ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy< Glib::RefPtr<
Gdk::Screen > > 
property_screen ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy_ReadOnly<
bool > 
property_is_active ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy_ReadOnly<
bool > 
property_has_toplevel_focus ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy<GdkWindowTypeHint> property_type_hint ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy<bool> property_skip_taskbar_hint ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy<bool> property_skip_pager_hint ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy<bool> property_decorated ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy<Gdk::Gravityproperty_gravity ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

bool is_toplevel () const
bool is_dialog () const
bool is_popup () const
WindowType get_window_type () const
Glib::RefPtr<Gdk::Windowget_frame ()
Glib::RefPtr<const Gdk::Windowget_frame () const
Glib::SignalProxy1< void,
Widget* > 
signal_set_focus ()
Glib::SignalProxy1< bool,
GdkEvent* > 
signal_frame_event ()
void set_title (const Glib::ustring& title)
Glib::ustring get_title () const
void set_wmclass (const Glib::ustring& wmclass_name, const Glib::ustring& wmclass_class)
void set_role (const Glib::ustring& role)
Glib::ustring get_role () const
void add_accel_group (const Glib::RefPtr<AccelGroup>& accel_group)
void remove_accel_group (const Glib::RefPtr<AccelGroup>& accel_group)
void set_position (WindowPosition position)
bool activate_focus ()
void set_focus (Gtk::Widget& focus)
void unset_focus ()
Widgetget_focus ()
const Widgetget_focus () const
void set_default (Gtk::Widget& defaultw)
void unset_default ()
bool activate_default ()
void set_transient_for (Window& parent)
Windowget_transient_for ()
const Windowget_transient_for () const
void set_type_hint (Gdk::WindowTypeHint hint)
Gdk::WindowTypeHint get_type_hint () const
void set_skip_taskbar_hint (bool setting=true)
bool get_skip_taskbar_hint () const
void set_skip_pager_hint (bool setting=true)
bool get_skip_pager_hint () const
bool get_destroy_with_parent () const
void set_resizable (bool resizeable=true)
bool get_resizable () const
void set_gravity (Gdk::Gravity gravity)
Gdk::Gravity get_gravity () const
void set_geometry_hints (Widget& geometry_widget, const Gdk::Geometry& geometry, Gdk::WindowHints geom_mask)
void set_screen (const Glib::RefPtr<Gdk::Screen>& screen)
Glib::RefPtr<Gdk::Screenget_screen ()
Glib::RefPtr<const Gdk::Screenget_screen () const
void set_has_frame (bool setting=true)
bool get_has_frame () const
void set_frame_dimensions (int left, int top, int right, int bottom)
void get_frame_dimensions (int& left, int& top, int& right, int& bottom) const
void set_decorated (bool setting=true)
bool get_decorated () const
Glib::ListHandle< Glib::RefPtr<
Gdk::Pixbuf > > 
get_icon_list () const
void set_icon_list (const Glib::ListHandle<Glib::RefPtr<Gdk::Pixbuf>>& list)
void set_icon (const Glib::RefPtr<Gdk::Pixbuf>& icon)
bool set_icon_from_file (const std::string& filename)
Glib::RefPtr<Gdk::Pixbufget_icon () const
void set_modal (bool modal=true)
bool get_modal () const
void add_mnemonic (guint keyval, Widget& target)
void remove_mnemonic (guint keyval, Widget& target)
bool mnemonic_activate (guint keyval, Gdk::ModifierType modifier)
void set_mnemonic_modifier (Gdk::ModifierType modifier)
Gdk::ModifierType get_mnemonic_modifier ()
void present ()
void iconify ()
void deiconify ()
void stick ()
void unstick ()
void maximize ()
void unmaximize ()
void fullscreen ()
void unfullscreen ()
void begin_resize_drag (Gdk::WindowEdge edge, int button, int root_x, int root_y, guint32 timestamp)
void begin_move_drag (int button, int root_x, int root_y, guint32 timestamp)
void set_default_size (int width, int height)
void get_default_size (int& width, int& height) const
void resize (int width, int height)
void get_size (int& width, int& height) const
void move (int x, int y)
void get_position (int& root_x, int& root_y) const
bool parse_geometry (const Glib::ustring& geometry)
void reshow_with_initial_size ()
void set_keep_above (bool setting=true)
void set_keep_below (bool setting=true)
Glib::RefPtr<AccelGroupget_accel_group ()
 Returns a default accel group for this window This is a gtkmm-specific function.

virtual void raise ()
 Brings the window to the front.

virtual void set_manage ()
 Overriden to warn that it doesn't make sense to use Gtk::manage() on this class because it has no parent container.


Static Public Member Functions

void set_default_icon_list (const Glib::ListHandle<Glib::RefPtr<Gdk::Pixbuf>>& list)
Glib::ListHandle< Glib::RefPtr<
Gdk::Pixbuf > > 
get_default_icon_list ()
bool set_default_icon_from_file (const std::string& filename)
void set_auto_startup_notification (bool setting=true)
Glib::ListHandle<Window*> list_toplevels ()
void set_default_icon (const Glib::RefPtr<Gdk::Pixbuf>& icon)

Protected Member Functions

virtual void on_set_focus (Widget* focus)
virtual bool on_frame_event (GdkEvent* event)
void destroy_ ()
void _destroy_c_instance ()

Related Functions

(Note that these are not member functions.)

Gtk::Windowwrap (GtkWindow* object, bool take_copy=false)

Detailed Description

Toplevel Window This represents all widgets which are physical windows controlled by the window manager.

The window will be hidden when the window manager's close button is clicked. Override on_delete_event() to stop this.

Gtk::manage() has no effect on Windows because they have no parent Containers.


Constructor & Destructor Documentation

virtual Gtk::Window::~Window (  )  [virtual]
 

Gtk::Window::Window ( WindowType  type = WINDOW_TOPLEVEL  )  [explicit]
 


Member Function Documentation

void Gtk::Window::_destroy_c_instance (  )  [protected]
 

Reimplemented from Gtk::Object.

bool Gtk::Window::activate_default (  ) 
 

bool Gtk::Window::activate_focus (  ) 
 

void Gtk::Window::add_accel_group ( const Glib::RefPtr<AccelGroup>&  accel_group  ) 
 

void Gtk::Window::add_mnemonic ( guint  keyval,
Widget target
 

void Gtk::Window::begin_move_drag ( int  button,
int  root_x,
int  root_y,
guint32  timestamp
 

void Gtk::Window::begin_resize_drag ( Gdk::WindowEdge  edge,
int  button,
int  root_x,
int  root_y,
guint32  timestamp
 

void Gtk::Window::deiconify (  ) 
 

void Gtk::Window::destroy_ (  )  [protected]
 

Reimplemented from Gtk::Object.

void Gtk::Window::fullscreen (  ) 
 

Glib::RefPtr<AccelGroup> Gtk::Window::get_accel_group (  ) 
 

Returns a default accel group for this window This is a gtkmm-specific function.

This accel group can not be removed.

bool Gtk::Window::get_decorated (  )  const
 

Glib::ListHandle<Glib::RefPtr<Gdk::Pixbuf>> Gtk::Window::get_default_icon_list (  )  [static]
 

void Gtk::Window::get_default_size ( int&  width,
int&  height
const
 

bool Gtk::Window::get_destroy_with_parent (  )  const
 

const Widget* Gtk::Window::get_focus (  )  const
 

Widget* Gtk::Window::get_focus (  ) 
 

Glib::RefPtr<const Gdk::Window> Gtk::Window::get_frame (  )  const
 

Glib::RefPtr<Gdk::Window> Gtk::Window::get_frame (  ) 
 

void Gtk::Window::get_frame_dimensions ( int&  left,
int&  top,
int&  right,
int&  bottom
const
 

Gdk::Gravity Gtk::Window::get_gravity (  )  const
 

bool Gtk::Window::get_has_frame (  )  const
 

Glib::RefPtr<Gdk::Pixbuf> Gtk::Window::get_icon (  )  const
 

Glib::ListHandle<Glib::RefPtr<Gdk::Pixbuf>> Gtk::Window::get_icon_list (  )  const
 

Gdk::ModifierType Gtk::Window::get_mnemonic_modifier (  ) 
 

bool Gtk::Window::get_modal (  )  const
 

void Gtk::Window::get_position ( int&  root_x,
int&  root_y
const
 

bool Gtk::Window::get_resizable (  )  const
 

Glib::ustring Gtk::Window::get_role (  )  const
 

Glib::RefPtr<const Gdk::Screen> Gtk::Window::get_screen (  )  const
 

Reimplemented from Gtk::Widget.

Glib::RefPtr<Gdk::Screen> Gtk::Window::get_screen (  ) 
 

Reimplemented from Gtk::Widget.

void Gtk::Window::get_size ( int&  width,
int&  height
const
 

bool Gtk::Window::get_skip_pager_hint (  )  const
 

bool Gtk::Window::get_skip_taskbar_hint (  )  const
 

Glib::ustring Gtk::Window::get_title (  )  const
 

const Window* Gtk::Window::get_transient_for (  )  const
 

Window* Gtk::Window::get_transient_for (  ) 
 

Gdk::WindowTypeHint Gtk::Window::get_type_hint (  )  const
 

WindowType Gtk::Window::get_window_type (  )  const
 

const GtkWindow* Gtk::Window::gobj (  )  const [inline]
 

Provides access to the underlying C GtkObject.

Reimplemented from Gtk::Bin.

Reimplemented in Gtk::ColorSelectionDialog, Gtk::Dialog, Gtk::FileChooserDialog, Gtk::FileSelection, Gtk::FontSelectionDialog, Gtk::InputDialog, Gtk::MessageDialog, and Gtk::Plug.

GtkWindow* Gtk::Window::gobj (  )  [inline]
 

Provides access to the underlying C GtkObject.

Reimplemented from Gtk::Bin.

Reimplemented in Gtk::ColorSelectionDialog, Gtk::Dialog, Gtk::FileChooserDialog, Gtk::FileSelection, Gtk::FontSelectionDialog, Gtk::InputDialog, Gtk::MessageDialog, and Gtk::Plug.

void Gtk::Window::iconify (  ) 
 

bool Gtk::Window::is_dialog (  )  const
 

bool Gtk::Window::is_popup (  )  const
 

bool Gtk::Window::is_toplevel (  )  const
 

Reimplemented from Gtk::Widget.

Glib::ListHandle<Window*> Gtk::Window::list_toplevels (  )  [static]
 

void Gtk::Window::maximize (  ) 
 

bool Gtk::Window::mnemonic_activate ( guint  keyval,
Gdk::ModifierType  modifier
 

void Gtk::Window::move ( int  x,
int  y
 

virtual bool Gtk::Window::on_frame_event ( GdkEvent*  event  )  [protected, virtual]
 

virtual void Gtk::Window::on_set_focus ( Widget focus  )  [protected, virtual]
 

bool Gtk::Window::parse_geometry ( const Glib::ustring geometry  ) 
 

void Gtk::Window::present (  ) 
 

Glib::PropertyProxy<bool> Gtk::Window::property_allow_grow (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy<bool> Gtk::Window::property_allow_shrink (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy<bool> Gtk::Window::property_decorated (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy<int> Gtk::Window::property_default_height (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy<int> Gtk::Window::property_default_width (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy<bool> Gtk::Window::property_destroy_with_parent (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy<Gdk::Gravity> Gtk::Window::property_gravity (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy_ReadOnly<bool> Gtk::Window::property_has_toplevel_focus (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy<Glib::RefPtr<Gdk::Pixbuf>> Gtk::Window::property_icon (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy_ReadOnly<bool> Gtk::Window::property_is_active (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy<bool> Gtk::Window::property_modal (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy<bool> Gtk::Window::property_resizable (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy<Glib::RefPtr<Gdk::Screen>> Gtk::Window::property_screen (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy<bool> Gtk::Window::property_skip_pager_hint (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy<bool> Gtk::Window::property_skip_taskbar_hint (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy<Glib::ustring> Gtk::Window::property_title (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy<GdkWindowTypeHint> Gtk::Window::property_type_hint (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy<WindowPosition> Gtk::Window::property_window_position (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

virtual void Gtk::Window::raise (  )  [virtual]
 

Brings the window to the front.

This is just a more obvious convenience wrapper for get_window()->raise().

void Gtk::Window::remove_accel_group ( const Glib::RefPtr<AccelGroup>&  accel_group  ) 
 

void Gtk::Window::remove_mnemonic ( guint  keyval,
Widget target
 

void Gtk::Window::reshow_with_initial_size (  ) 
 

void Gtk::Window::resize ( int  width,
int  height
 

void Gtk::Window::set_auto_startup_notification ( bool  setting = true  )  [static]
 

void Gtk::Window::set_decorated ( bool  setting = true  ) 
 

void Gtk::Window::set_default ( Gtk::Widget defaultw  ) 
 

void Gtk::Window::set_default_icon ( const Glib::RefPtr<Gdk::Pixbuf>&  icon  )  [static]
 

bool Gtk::Window::set_default_icon_from_file ( const std::string&  filename  )  [static]
 

void Gtk::Window::set_default_icon_list ( const Glib::ListHandle<Glib::RefPtr<Gdk::Pixbuf>>&  list  )  [static]
 

void Gtk::Window::set_default_size ( int  width,
int  height
 

void Gtk::Window::set_focus ( Gtk::Widget focus  ) 
 

void Gtk::Window::set_frame_dimensions ( int  left,
int  top,
int  right,
int  bottom
 

void Gtk::Window::set_geometry_hints ( Widget geometry_widget,
const Gdk::Geometry geometry,
Gdk::WindowHints  geom_mask
 

void Gtk::Window::set_gravity ( Gdk::Gravity  gravity  ) 
 

void Gtk::Window::set_has_frame ( bool  setting = true  ) 
 

void Gtk::Window::set_icon ( const Glib::RefPtr<Gdk::Pixbuf>&  icon  ) 
 

bool Gtk::Window::set_icon_from_file ( const std::string&  filename  ) 
 

void Gtk::Window::set_icon_list ( const Glib::ListHandle<Glib::RefPtr<Gdk::Pixbuf>>&  list  ) 
 

void Gtk::Window::set_keep_above ( bool  setting = true  ) 
 

void Gtk::Window::set_keep_below ( bool  setting = true  ) 
 

virtual void Gtk::Window::set_manage (  )  [virtual]
 

Overriden to warn that it doesn't make sense to use Gtk::manage() on this class because it has no parent container.

Reimplemented from Gtk::Object.

void Gtk::Window::set_mnemonic_modifier ( Gdk::ModifierType  modifier  ) 
 

void Gtk::Window::set_modal ( bool  modal = true  ) 
 

void Gtk::Window::set_position ( WindowPosition  position  ) 
 

void Gtk::Window::set_resizable ( bool  resizeable = true  ) 
 

void Gtk::Window::set_role ( const Glib::ustring role  ) 
 

void Gtk::Window::set_screen ( const Glib::RefPtr<Gdk::Screen>&  screen  ) 
 

void Gtk::Window::set_skip_pager_hint ( bool  setting = true  ) 
 

void Gtk::Window::set_skip_taskbar_hint ( bool  setting = true  ) 
 

void Gtk::Window::set_title ( const Glib::ustring title  ) 
 

void Gtk::Window::set_transient_for ( Window parent  ) 
 

void Gtk::Window::set_type_hint ( Gdk::WindowTypeHint  hint  ) 
 

void Gtk::Window::set_wmclass ( const Glib::ustring wmclass_name,
const Glib::ustring wmclass_class
 

Glib::SignalProxy1<bool,GdkEvent*> Gtk::Window::signal_frame_event (  ) 
 

Prototype:
bool frame_event(GdkEvent* event)

Glib::SignalProxy1<void,Widget*> Gtk::Window::signal_set_focus (  ) 
 

Prototype:
void set_focus(Widget* focus)

void Gtk::Window::stick (  ) 
 

void Gtk::Window::unfullscreen (  ) 
 

void Gtk::Window::unmaximize (  ) 
 

void Gtk::Window::unset_default (  ) 
 

void Gtk::Window::unset_focus (  ) 
 

void Gtk::Window::unstick (  ) 
 


Friends And Related Function Documentation

Gtk::Window* wrap ( GtkWindow*  object,
bool  take_copy = false
[related]
 


The documentation for this class was generated from the following file:
Generated for gtkmm 2.2 by Doxygen 1.3.4 © 1997-2001