logo top
Main Page   Widgets   Namespaces   Book  

Gtk::Layout Class Reference
[WidgetsContainer Widgets]

Infinite scrollable area containing child widgets and/or custom drawing. More...

Inheritance diagram for Gtk::Layout:

Inheritance graph
[legend]
List of all members.

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)
void move (Widget& widget, int x, int y)
void set_size (guint width, guint height)
void get_size (guint& width, guint& height) const
void set_hadjustment (Adjustment& hadj)
void set_hadjustment ()
 Creates the Adjustment.

Adjustmentget_hadjustment ()
const Adjustmentget_hadjustment () const
void set_vadjustment (Adjustment& vadj)
void set_vadjustment ()
 Creates the Adjustment.

Adjustmentget_vadjustment ()
const Adjustmentget_vadjustment () const
Glib::RefPtr<Gdk::Windowget_bin_window ()
Glib::RefPtr<const Gdk::Windowget_bin_window () const
Glib::SignalProxy2< void,
Adjustment*, Adjustment* > 
signal_set_scroll_adjustments ()
Glib::PropertyProxy<Adjustment*> property_hadjustment ()
Glib::PropertyProxy<Adjustment*> property_vadjustment ()
Glib::PropertyProxy<guint> property_width ()
Glib::PropertyProxy<guint> property_height ()

Protected Member Functions

virtual void on_set_scroll_adjustments (Adjustment* p1, Adjustment* p2)

Related Functions

(Note that these are not member functions.)

Gtk::Layoutwrap (GtkLayout* object, bool take_copy=false)

Detailed Description

Infinite scrollable area containing child widgets and/or custom drawing.

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.


Constructor & Destructor Documentation

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

Gtk::Layout::Layout (  ) 
 

Gtk::Layout::Layout ( Adjustment hadjustment,
Adjustment vadjustment
 


Member Function Documentation

Glib::RefPtr<const Gdk::Window> Gtk::Layout::get_bin_window (  )  const
 

Glib::RefPtr<Gdk::Window> Gtk::Layout::get_bin_window (  ) 
 

const Adjustment* Gtk::Layout::get_hadjustment (  )  const
 

Adjustment* Gtk::Layout::get_hadjustment (  ) 
 

void Gtk::Layout::get_size ( guint&  width,
guint&  height
const
 

const Adjustment* Gtk::Layout::get_vadjustment (  )  const
 

Adjustment* Gtk::Layout::get_vadjustment (  ) 
 

const GtkLayout* Gtk::Layout::gobj (  )  const [inline]
 

Provides access to the underlying C GtkObject.

Reimplemented from Gtk::Container.

GtkLayout* Gtk::Layout::gobj (  )  [inline]
 

Provides access to the underlying C GtkObject.

Reimplemented from Gtk::Container.

void Gtk::Layout::move ( Widget widget,
int  x,
int  y
 

virtual void Gtk::Layout::on_set_scroll_adjustments ( Adjustment p1,
Adjustment p2
[protected, virtual]
 

Glib::PropertyProxy<Adjustment*> Gtk::Layout::property_hadjustment (  ) 
 

Glib::PropertyProxy<guint> Gtk::Layout::property_height (  ) 
 

Glib::PropertyProxy<Adjustment*> Gtk::Layout::property_vadjustment (  ) 
 

Glib::PropertyProxy<guint> Gtk::Layout::property_width (  ) 
 

void Gtk::Layout::put ( Widget widget,
int  x,
int  y
 

void Gtk::Layout::set_hadjustment (  ) 
 

Creates the Adjustment.

void Gtk::Layout::set_hadjustment ( Adjustment hadj  ) 
 

void Gtk::Layout::set_size ( guint  width,
guint  height
 

void Gtk::Layout::set_vadjustment (  ) 
 

Creates the Adjustment.

void Gtk::Layout::set_vadjustment ( Adjustment vadj  ) 
 

Glib::SignalProxy2<void,Adjustment*,Adjustment*> Gtk::Layout::signal_set_scroll_adjustments (  ) 
 

Prototype:
void set_scroll_adjustments(Adjustment* p1, Adjustment* p2)


Friends And Related Function Documentation

Gtk::Layout* wrap ( GtkLayout*  object,
bool  take_copy = false
[related]
 


The documentation for this class was generated from the following file:
Generated for gtkmm2.2 by Doxygen 1.3.3 © 1997-2001