Main Page
Widgets
Namespaces
Book
A frame that constrains its child to a particular aspect ratio.
More...
Inheritance diagram for Gtk::AspectFrame:
[legend ] List of all members.
Public Methods
virtual ~AspectFrame ()
GtkAspectFrame* gobj ()
const GtkAspectFrame* gobj () const
AspectFrame (const Glib::ustring & label=Glib::ustring (), AlignmentEnum xalign=Gtk::ALIGN_CENTER, AlignmentEnum yalign=Gtk::ALIGN_CENTER, float ratio=1.0, bool obey_child=false)
AspectFrame (const Glib::ustring & label, float xalign, float yalign, float ratio=1.0, bool obey_child=false)
void set (float xalign, float yalign, float ratio, bool obey_child=true)
void set (AlignmentEnum xalign, AlignmentEnum yalign, float ratio, bool obey_child=true)
Glib::PropertyProxy <float> property_xalign ()
Glib::PropertyProxy <float> property_yalign ()
Glib::PropertyProxy <float> property_ratio ()
Glib::PropertyProxy <bool> property_obey_child ()
Related Functions
(Note that these are not member functions.)
Gtk::AspectFrame* wrap (GtkAspectFrame* object, bool take_copy=false)
Detailed Description
A frame that constrains its child to a particular aspect ratio.
The Gtk::AspectFrame is useful when you want pack a widget so that it can resize but always retains the same aspect ratio. For instance, one might be drawing a small preview of a larger image. Because it derives from Gtk::Frame , it can draw a label and a frame around the child. The frame will be "shrink-wrapped" to the size of the child.
Constructor & Destructor Documentation
virtual Gtk::AspectFrame::~AspectFrame
(
)
[virtual]
Gtk::AspectFrame::AspectFrame
(
const Glib::ustring &
label = Glib::ustring (),
AlignmentEnum
xalign = Gtk::ALIGN_CENTER,
AlignmentEnum
yalign = Gtk::ALIGN_CENTER,
float
ratio = 1.0,
bool
obey_child = false
)
[explicit]
Gtk::AspectFrame::AspectFrame
(
const Glib::ustring &
label ,
float
xalign ,
float
yalign ,
float
ratio = 1.0,
bool
obey_child = false
)
[explicit]
Member Function Documentation
const GtkAspectFrame* Gtk::AspectFrame::gobj
(
)
const [inline]
GtkAspectFrame* Gtk::AspectFrame::gobj
(
)
[inline]
void Gtk::AspectFrame::set
(
AlignmentEnum
xalign ,
AlignmentEnum
yalign ,
float
ratio ,
bool
obey_child = true
)
void Gtk::AspectFrame::set
(
float
xalign ,
float
yalign ,
float
ratio ,
bool
obey_child = true
)
Friends And Related Function Documentation
Gtk::AspectFrame* wrap
(
GtkAspectFrame*
object ,
bool
take_copy = false
)
[related]
The documentation for this class was generated from the following file:
Generated for gtkmm by
Doxygen 1.3-rc1 © 1997-2001