![]() |

Gtk::Layout is similar to Gtk::DrawingArea in that it's a "blank slate" and doesn't do anything but paint a blank background by default. It's different in that it supports scrolling natively (You can add it directly to a Gtk::ScrolledWindow), and it can contain child widgets, since it's a Gtk::Container. However if you're just going to draw, a Gtk::DrawingArea is a better choice since it has lower overhead.
When handling expose_event signals, you must draw to the bin_window Gdk::Window - see get_bin_window() - rather than the normal Gdk::Window - see get_window() - as you would for a drawing area.
Public Member Functions | |
| virtual | ~Layout () |
| GtkLayout* | gobj () |
| Provides access to the underlying C GtkObject. | |
| const GtkLayout* | gobj () const |
| Provides access to the underlying C GtkObject. | |
| Layout () | |
| Layout (Adjustment& hadjustment, Adjustment& vadjustment) | |
| void | put (Widget& widget, int x, int y) |
| Adds child_widget to layout , at position ( x , y ). | |
| void | move (Widget& widget, int x, int y) |
| Moves a current child of layout to a new position. | |
| void | set_size (guint width, guint height) |
| Sets the size of the scrollable area of the layout. | |
| void | get_size (guint& width, guint& height) const |
| Gets the size that has been set on the layout, and that determines the total extents of the layout's scrollbar area. | |
| void | set_hadjustment (Adjustment& adjustment) |
| Sets the horizontal scroll adjustment for the layout. | |
| void | set_hadjustment () |
| Creates the Adjustment. | |
| Adjustment* | get_hadjustment () |
| This function should only be called after the layout has been placed in a Gtk::ScrolledWindow or otherwise configured for scrolling. | |
| const Adjustment* | get_hadjustment () const |
| This function should only be called after the layout has been placed in a Gtk::ScrolledWindow or otherwise configured for scrolling. | |
| void | set_vadjustment (Adjustment& adjustment) |
| Sets the vertical scroll adjustment for the layout. | |
| void | set_vadjustment () |
| Creates the Adjustment. | |
| Adjustment* | get_vadjustment () |
| This function should only be called after the layout has been placed in a Gtk::ScrolledWindow or otherwise configured for scrolling. | |
| const Adjustment* | get_vadjustment () const |
| This function should only be called after the layout has been placed in a Gtk::ScrolledWindow or otherwise configured for scrolling. | |
| Glib::RefPtr<Gdk::Window> | get_bin_window () |
| Glib::RefPtr<const Gdk::Window> | get_bin_window () const |
| Glib::SignalProxy2< void, Adjustment*, Adjustment* > | signal_set_scroll_adjustments () |
| Glib::PropertyProxy<Adjustment*> | property_hadjustment () |
| You rarely need to use properties because there are get_ and set_ methods for almost all of them. | |
| Glib::PropertyProxy_ReadOnly< Adjustment* > | property_hadjustment () const |
| You rarely need to use properties because there are get_ and set_ methods for almost all of them. | |
| Glib::PropertyProxy<Adjustment*> | property_vadjustment () |
| You rarely need to use properties because there are get_ and set_ methods for almost all of them. | |
| Glib::PropertyProxy_ReadOnly< Adjustment* > | property_vadjustment () const |
| You rarely need to use properties because there are get_ and set_ methods for almost all of them. | |
| Glib::PropertyProxy<guint> | property_width () |
| You rarely need to use properties because there are get_ and set_ methods for almost all of them. | |
| Glib::PropertyProxy_ReadOnly< guint > | property_width () const |
| You rarely need to use properties because there are get_ and set_ methods for almost all of them. | |
| Glib::PropertyProxy<guint> | property_height () |
| You rarely need to use properties because there are get_ and set_ methods for almost all of them. | |
| Glib::PropertyProxy_ReadOnly< guint > | property_height () const |
| You rarely need to use properties because there are get_ and set_ methods for almost all of them. | |
Protected Member Functions | |
| virtual void | on_set_scroll_adjustments (Adjustment* hadj, Adjustment* vadj) |
Related Functions | |
| (Note that these are not member functions.) | |
| Gtk::Layout* | wrap (GtkLayout* object, bool take_copy=false) |
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
This function should only be called after the layout has been placed in a Gtk::ScrolledWindow or otherwise configured for scrolling. It returns the Gtk::Adjustment used for communication between the horizontal scrollbar and layout . See Gtk::ScrolledWindow, Gtk::Scrollbar, Gtk::Adjustment for details.
|
|
|
This function should only be called after the layout has been placed in a Gtk::ScrolledWindow or otherwise configured for scrolling. It returns the Gtk::Adjustment used for communication between the horizontal scrollbar and layout . See Gtk::ScrolledWindow, Gtk::Scrollbar, Gtk::Adjustment for details.
|
|
||||||||||||
|
Gets the size that has been set on the layout, and that determines the total extents of the layout's scrollbar area. See set_size().
|
|
|
This function should only be called after the layout has been placed in a Gtk::ScrolledWindow or otherwise configured for scrolling. It returns the Gtk::Adjustment used for communication between the vertical scrollbar and layout . See Gtk::ScrolledWindow, Gtk::Scrollbar, Gtk::Adjustment for details.
|
|
|
This function should only be called after the layout has been placed in a Gtk::ScrolledWindow or otherwise configured for scrolling. It returns the Gtk::Adjustment used for communication between the vertical scrollbar and layout . See Gtk::ScrolledWindow, Gtk::Scrollbar, Gtk::Adjustment for details.
|
|
|
Provides access to the underlying C GtkObject.
Reimplemented from Gtk::Container. |
|
|
Provides access to the underlying C GtkObject.
Reimplemented from Gtk::Container. |
|
||||||||||||||||
|
Moves a current child of layout to a new position.
|
|
||||||||||||
|
|
|
|
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
|
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
|
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
|
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
|
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
|
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
|
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
|
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
||||||||||||||||
|
Adds child_widget to layout , at position ( x , y ). layout becomes the new parent container of child_widget .
|
|
|
Creates the Adjustment.
|
|
|
Sets the horizontal scroll adjustment for the layout. See Gtk::ScrolledWindow, Gtk::Scrollbar, Gtk::Adjustment for details.
|
|
||||||||||||
|
Sets the size of the scrollable area of the layout.
|
|
|
Creates the Adjustment.
|
|
|
Sets the vertical scroll adjustment for the layout. See Gtk::ScrolledWindow, Gtk::Scrollbar, Gtk::Adjustment for details.
|
|
|
|
|
||||||||||||
|
|