<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>gtkmm: Gtk::AspectFrame Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.7.3 --> <div id="top"> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">gtkmm <span id="projectnumber">2.24.4</span></div> </td> </tr> </tbody> </table> </div> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="inherits.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="namespaceGtk.html">Gtk</a> </li> <li class="navelem"><a class="el" href="classGtk_1_1AspectFrame.html">AspectFrame</a> </li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> | <a href="#related">Related Functions</a> </div> <div class="headertitle"> <h1>Gtk::AspectFrame Class Reference<div class="ingroups"><a class="el" href="group__Widgets.html">Widgets</a> | <a class="el" href="group__Containers.html">Container Widgets</a></div></h1> </div> </div> <div class="contents"> <!-- doxytag: class="Gtk::AspectFrame" --><!-- doxytag: inherits="Gtk::Frame" --> <p>A frame that constrains its child to a particular aspect ratio. <a href="#_details">More...</a></p> <div class="dynheader"> Inheritance diagram for Gtk::AspectFrame:</div> <div class="dyncontent"> <div class="center"><img src="classGtk_1_1AspectFrame__inherit__graph.png" border="0" usemap="#Gtk_1_1AspectFrame_inherit__map" alt="Inheritance graph"/></div> <map name="Gtk_1_1AspectFrame_inherit__map" id="Gtk_1_1AspectFrame_inherit__map"> <area shape="rect" id="node2" href="classGtk_1_1Frame.html" title="A Gtk::Bin with a decorative frame and optional label." alt="" coords="91,547,181,576"/><area shape="rect" id="node4" href="classGtk_1_1Bin.html" title="A container with just one child." alt="" coords="100,469,172,499"/><area shape="rect" id="node6" href="classGtk_1_1Container.html" title="Abstract container class." alt="" coords="79,392,193,421"/><area shape="rect" id="node8" href="classGtk_1_1Widget.html" title="Abstract Widget (Base class for all widgets)" alt="" coords="89,315,183,344"/><area shape="rect" id="node10" href="classGtk_1_1Object.html" title="Gtk::Object is the base class for all widgets, and for a few non-widget objects such as Gtk::Adjustme..." alt="" coords="21,237,115,267"/><area shape="rect" id="node12" href="../../../glibmm-2.4/reference/html/classGlib_1_1Object.html" title="Glib::Object" alt="" coords="21,160,115,189"/><area shape="rect" id="node14" href="../../../glibmm-2.4/reference/html/classGlib_1_1ObjectBase.html" title="Glib::ObjectBase" alt="" coords="5,83,131,112"/><area shape="rect" id="node16" href="../../../libsigc++-2.0/reference/html/structsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="11,5,125,35"/><area shape="rect" id="node18" href="classAtk_1_1Implementor.html" title="Atk::Implementor" alt="" coords="139,237,272,267"/></map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <div class="dynheader"> Collaboration diagram for Gtk::AspectFrame:</div> <div class="dyncontent"> <div class="center"><img src="classGtk_1_1AspectFrame__coll__graph.png" border="0" usemap="#Gtk_1_1AspectFrame_coll__map" alt="Collaboration graph"/></div> <map name="Gtk_1_1AspectFrame_coll__map" id="Gtk_1_1AspectFrame_coll__map"> <area shape="rect" id="node2" href="classGtk_1_1Frame.html" title="A Gtk::Bin with a decorative frame and optional label." alt="" coords="91,547,181,576"/><area shape="rect" id="node4" href="classGtk_1_1Bin.html" title="A container with just one child." alt="" coords="100,469,172,499"/><area shape="rect" id="node6" href="classGtk_1_1Container.html" title="Abstract container class." alt="" coords="79,392,193,421"/><area shape="rect" id="node8" href="classGtk_1_1Widget.html" title="Abstract Widget (Base class for all widgets)" alt="" coords="89,315,183,344"/><area shape="rect" id="node10" href="classGtk_1_1Object.html" title="Gtk::Object is the base class for all widgets, and for a few non-widget objects such as Gtk::Adjustme..." alt="" coords="21,237,115,267"/><area shape="rect" id="node12" href="../../../glibmm-2.4/reference/html/classGlib_1_1Object.html" title="Glib::Object" alt="" coords="21,160,115,189"/><area shape="rect" id="node14" href="../../../glibmm-2.4/reference/html/classGlib_1_1ObjectBase.html" title="Glib::ObjectBase" alt="" coords="5,83,131,112"/><area shape="rect" id="node16" href="../../../libsigc++-2.0/reference/html/structsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="11,5,125,35"/><area shape="rect" id="node18" href="classAtk_1_1Implementor.html" title="Atk::Implementor" alt="" coords="139,237,272,267"/></map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <p><a href="classGtk_1_1AspectFrame-members.html">List of all members.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1AspectFrame.html#a7471a234f9ec5440aeda4dcc389a8464">~AspectFrame</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">GtkAspectFrame* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1AspectFrame.html#a094c8844ef320a9736eba7f3a9d0bd66">gobj</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GtkObject. <a href="#a094c8844ef320a9736eba7f3a9d0bd66"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">const GtkAspectFrame* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1AspectFrame.html#a9054d57c75b29e8f5991173fd012a860">gobj</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GtkObject. <a href="#a9054d57c75b29e8f5991173fd012a860"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1AspectFrame.html#afa911e38f96cfd325d4a4a417a89b72a">AspectFrame</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& label=<a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>(), <a class="el" href="group__gtkmmEnums.html#ga98983d4e80f67ffa5148dd554706ffac">AlignmentEnum</a> xalign=Gtk::ALIGN_CENTER, <a class="el" href="group__gtkmmEnums.html#ga98983d4e80f67ffa5148dd554706ffac">AlignmentEnum</a> yalign=Gtk::ALIGN_CENTER, float ratio=1.0, bool obey_child=false)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor to create a new <a class="el" href="classGtk_1_1AspectFrame.html" title="A frame that constrains its child to a particular aspect ratio.">AspectFrame</a> object. <a href="#afa911e38f96cfd325d4a4a417a89b72a"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1AspectFrame.html#a6a87059865ecceb1330759b79e617f93">AspectFrame</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& label, float xalign, float yalign, float ratio=1.0, bool obey_child=false)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor to create a new <a class="el" href="classGtk_1_1AspectFrame.html" title="A frame that constrains its child to a particular aspect ratio.">AspectFrame</a> object. <a href="#a6a87059865ecceb1330759b79e617f93"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1AspectFrame.html#ad689dee3c8a0febb2340cc4eda5fe922">set</a> (float xalign, float yalign, float ratio, bool obey_child=true)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Set the properties of this <a class="el" href="classGtk_1_1AspectFrame.html" title="A frame that constrains its child to a particular aspect ratio.">AspectFrame</a>. <a href="#ad689dee3c8a0febb2340cc4eda5fe922"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1AspectFrame.html#adaa0dc2928953b34880998f4c92dd457">set</a> (<a class="el" href="group__gtkmmEnums.html#ga98983d4e80f67ffa5148dd554706ffac">AlignmentEnum</a> xalign, <a class="el" href="group__gtkmmEnums.html#ga98983d4e80f67ffa5148dd554706ffac">AlignmentEnum</a> yalign, float ratio, bool obey_child=true)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Set the properties of this <a class="el" href="classGtk_1_1AspectFrame.html" title="A frame that constrains its child to a particular aspect ratio.">AspectFrame</a>. <a href="#adaa0dc2928953b34880998f4c92dd457"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a>< float > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1AspectFrame.html#a358351f24f15a0200da6a2d1a81da749">property_xalign</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">X alignment of the child. <a href="#a358351f24f15a0200da6a2d1a81da749"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><br class="typebreak"/> < float > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1AspectFrame.html#a841e6b59bf8edd94bca9830d2ccb6323">property_xalign</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">X alignment of the child. <a href="#a841e6b59bf8edd94bca9830d2ccb6323"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a>< float > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1AspectFrame.html#a6a5c2c56a384fb1b316cda429665790d">property_yalign</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Y alignment of the child. <a href="#a6a5c2c56a384fb1b316cda429665790d"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><br class="typebreak"/> < float > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1AspectFrame.html#aeaf1166e3736b2421a6836bd83e24e0e">property_yalign</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Y alignment of the child. <a href="#aeaf1166e3736b2421a6836bd83e24e0e"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a>< float > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1AspectFrame.html#a59e3584eb18c8e801b162cff744df3a2">property_ratio</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Aspect ratio if obey_child is FALSE. <a href="#a59e3584eb18c8e801b162cff744df3a2"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><br class="typebreak"/> < float > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1AspectFrame.html#a6ba6054d9e5a041eb5488b5fb328b841">property_ratio</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Aspect ratio if obey_child is FALSE. <a href="#a6ba6054d9e5a041eb5488b5fb328b841"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a>< bool > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1AspectFrame.html#a211ae43eb92a7102d0fc7185885847a6">property_obey_child</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Force aspect ratio to match that of the frame's child. <a href="#a211ae43eb92a7102d0fc7185885847a6"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><br class="typebreak"/> < bool > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1AspectFrame.html#afa217ef4b9903cb63bb327306c6ca9b9">property_obey_child</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Force aspect ratio to match that of the frame's child. <a href="#afa217ef4b9903cb63bb327306c6ca9b9"></a><br/></td></tr> <tr><td colspan="2"><h2><a name="related"></a> Related Functions</h2></td></tr> <tr><td colspan="2">(Note that these are not member functions.) <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGtk_1_1AspectFrame.html">Gtk::AspectFrame</a>* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1AspectFrame.html#ab19eaa639f8f64ce540bee038e121fdc">wrap</a> (GtkAspectFrame* object, bool take_copy=false)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">A <a class="elRef" href="../../../glibmm-2.4/reference/html/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. <a href="#ab19eaa639f8f64ce540bee038e121fdc"></a><br/></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <div class="textblock"><p>A frame that constrains its child to a particular aspect ratio. </p> <p>The <a class="el" href="classGtk_1_1AspectFrame.html" title="A frame that constrains its child to a particular aspect ratio.">Gtk::AspectFrame</a> 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 <a class="el" href="classGtk_1_1Frame.html" title="A Gtk::Bin with a decorative frame and optional label.">Gtk::Frame</a>, it can draw a label and a frame around the child. The frame will be "shrink-wrapped" to the size of the child. </p> </div><hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="a7471a234f9ec5440aeda4dcc389a8464"></a><!-- doxytag: member="Gtk::AspectFrame::~AspectFrame" ref="a7471a234f9ec5440aeda4dcc389a8464" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual Gtk::AspectFrame::~AspectFrame </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="afa911e38f96cfd325d4a4a417a89b72a"></a><!-- doxytag: member="Gtk::AspectFrame::AspectFrame" ref="afa911e38f96cfd325d4a4a417a89b72a" args="(const Glib::ustring &label=Glib::ustring(), AlignmentEnum xalign=Gtk::ALIGN_CENTER, AlignmentEnum yalign=Gtk::ALIGN_CENTER, float ratio=1.0, bool obey_child=false)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Gtk::AspectFrame::AspectFrame </td> <td>(</td> <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td> <td class="paramname"><em>label</em> = <code><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>()</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="group__gtkmmEnums.html#ga98983d4e80f67ffa5148dd554706ffac">AlignmentEnum</a> </td> <td class="paramname"><em>xalign</em> = <code>Gtk::ALIGN_CENTER</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="group__gtkmmEnums.html#ga98983d4e80f67ffa5148dd554706ffac">AlignmentEnum</a> </td> <td class="paramname"><em>yalign</em> = <code>Gtk::ALIGN_CENTER</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">float </td> <td class="paramname"><em>ratio</em> = <code>1.0</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"><em>obey_child</em> = <code>false</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [explicit]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Constructor to create a new <a class="el" href="classGtk_1_1AspectFrame.html" title="A frame that constrains its child to a particular aspect ratio.">AspectFrame</a> object. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">label</td><td><a class="el" href="classGtk_1_1Label.html" title="A widget that displays a small to medium amount of text.">Label</a> text. </td></tr> <tr><td class="paramname">xalign</td><td>Horizontal alignment of the child within the allocation of this <a class="el" href="classGtk_1_1AspectFrame.html" title="A frame that constrains its child to a particular aspect ratio.">AspectFrame</a>. For possible values, see Gtk::AlignmentEnum. </td></tr> <tr><td class="paramname">yalign</td><td>Vertical alignment of the child within the allocation of this <a class="el" href="classGtk_1_1AspectFrame.html" title="A frame that constrains its child to a particular aspect ratio.">AspectFrame</a>. For possible values, see Gtk::AlignmentEnum. </td></tr> <tr><td class="paramname">ratio</td><td>The desired aspect ratio. </td></tr> <tr><td class="paramname">obey_child</td><td>If <code>true</code>, <em>ratio</em> is ignored and the aspect ratio is taken from the requisition of the child. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a6a87059865ecceb1330759b79e617f93"></a><!-- doxytag: member="Gtk::AspectFrame::AspectFrame" ref="a6a87059865ecceb1330759b79e617f93" args="(const Glib::ustring &label, float xalign, float yalign, float ratio=1.0, bool obey_child=false)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Gtk::AspectFrame::AspectFrame </td> <td>(</td> <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td> <td class="paramname"><em>label</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">float </td> <td class="paramname"><em>xalign</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">float </td> <td class="paramname"><em>yalign</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">float </td> <td class="paramname"><em>ratio</em> = <code>1.0</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"><em>obey_child</em> = <code>false</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [explicit]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Constructor to create a new <a class="el" href="classGtk_1_1AspectFrame.html" title="A frame that constrains its child to a particular aspect ratio.">AspectFrame</a> object. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">label</td><td><a class="el" href="classGtk_1_1Label.html" title="A widget that displays a small to medium amount of text.">Label</a> text. </td></tr> <tr><td class="paramname">xalign</td><td>Horizontal alignment of the child within the allocation of this <a class="el" href="classGtk_1_1AspectFrame.html" title="A frame that constrains its child to a particular aspect ratio.">AspectFrame</a>. This ranges from 0.0 (left aligned) to 1.0 (right aligned). </td></tr> <tr><td class="paramname">yalign</td><td>Vertical alignment of the child within the allocation of this <a class="el" href="classGtk_1_1AspectFrame.html" title="A frame that constrains its child to a particular aspect ratio.">AspectFrame</a>. This ranges from 0.0 (top aligned) to 1.0 (bottom aligned). </td></tr> <tr><td class="paramname">ratio</td><td>The desired aspect ratio. </td></tr> <tr><td class="paramname">obey_child</td><td>If <code>true</code>, <em>ratio</em> is ignored and the aspect ratio is taken from the requisition of the child. </td></tr> </table> </dd> </dl> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a094c8844ef320a9736eba7f3a9d0bd66"></a><!-- doxytag: member="Gtk::AspectFrame::gobj" ref="a094c8844ef320a9736eba7f3a9d0bd66" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">GtkAspectFrame* Gtk::AspectFrame::gobj </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Provides access to the underlying C GtkObject. </p> <p>Reimplemented from <a class="el" href="classGtk_1_1Frame.html#a5f7db796218fe2e89e453071b464f6d4">Gtk::Frame</a>.</p> </div> </div> <a class="anchor" id="a9054d57c75b29e8f5991173fd012a860"></a><!-- doxytag: member="Gtk::AspectFrame::gobj" ref="a9054d57c75b29e8f5991173fd012a860" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const GtkAspectFrame* Gtk::AspectFrame::gobj </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Provides access to the underlying C GtkObject. </p> <p>Reimplemented from <a class="el" href="classGtk_1_1Frame.html#aff08b316db383455d499a952974212e6">Gtk::Frame</a>.</p> </div> </div> <a class="anchor" id="a211ae43eb92a7102d0fc7185885847a6"></a><!-- doxytag: member="Gtk::AspectFrame::property_obey_child" ref="a211ae43eb92a7102d0fc7185885847a6" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><bool> Gtk::AspectFrame::property_obey_child </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Force aspect ratio to match that of the frame's child. </p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="afa217ef4b9903cb63bb327306c6ca9b9"></a><!-- doxytag: member="Gtk::AspectFrame::property_obey_child" ref="afa217ef4b9903cb63bb327306c6ca9b9" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><bool> Gtk::AspectFrame::property_obey_child </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Force aspect ratio to match that of the frame's child. </p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="a59e3584eb18c8e801b162cff744df3a2"></a><!-- doxytag: member="Gtk::AspectFrame::property_ratio" ref="a59e3584eb18c8e801b162cff744df3a2" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><float> Gtk::AspectFrame::property_ratio </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Aspect ratio if obey_child is FALSE. </p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="a6ba6054d9e5a041eb5488b5fb328b841"></a><!-- doxytag: member="Gtk::AspectFrame::property_ratio" ref="a6ba6054d9e5a041eb5488b5fb328b841" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><float> Gtk::AspectFrame::property_ratio </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Aspect ratio if obey_child is FALSE. </p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="a358351f24f15a0200da6a2d1a81da749"></a><!-- doxytag: member="Gtk::AspectFrame::property_xalign" ref="a358351f24f15a0200da6a2d1a81da749" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><float> Gtk::AspectFrame::property_xalign </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>X alignment of the child. </p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="a841e6b59bf8edd94bca9830d2ccb6323"></a><!-- doxytag: member="Gtk::AspectFrame::property_xalign" ref="a841e6b59bf8edd94bca9830d2ccb6323" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><float> Gtk::AspectFrame::property_xalign </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>X alignment of the child. </p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="aeaf1166e3736b2421a6836bd83e24e0e"></a><!-- doxytag: member="Gtk::AspectFrame::property_yalign" ref="aeaf1166e3736b2421a6836bd83e24e0e" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><float> Gtk::AspectFrame::property_yalign </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Y alignment of the child. </p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="a6a5c2c56a384fb1b316cda429665790d"></a><!-- doxytag: member="Gtk::AspectFrame::property_yalign" ref="a6a5c2c56a384fb1b316cda429665790d" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><float> Gtk::AspectFrame::property_yalign </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Y alignment of the child. </p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="adaa0dc2928953b34880998f4c92dd457"></a><!-- doxytag: member="Gtk::AspectFrame::set" ref="adaa0dc2928953b34880998f4c92dd457" args="(AlignmentEnum xalign, AlignmentEnum yalign, float ratio, bool obey_child=true)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::AspectFrame::set </td> <td>(</td> <td class="paramtype"><a class="el" href="group__gtkmmEnums.html#ga98983d4e80f67ffa5148dd554706ffac">AlignmentEnum</a> </td> <td class="paramname"><em>xalign</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="group__gtkmmEnums.html#ga98983d4e80f67ffa5148dd554706ffac">AlignmentEnum</a> </td> <td class="paramname"><em>yalign</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">float </td> <td class="paramname"><em>ratio</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"><em>obey_child</em> = <code>true</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Set the properties of this <a class="el" href="classGtk_1_1AspectFrame.html" title="A frame that constrains its child to a particular aspect ratio.">AspectFrame</a>. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">xalign</td><td>Horizontal alignment of the child within the allocation of this <a class="el" href="classGtk_1_1AspectFrame.html" title="A frame that constrains its child to a particular aspect ratio.">AspectFrame</a>. For possible values, see Gtk::AlignmentEnum. </td></tr> <tr><td class="paramname">yalign</td><td>Vertical alignment of the child within the allocation of this <a class="el" href="classGtk_1_1AspectFrame.html" title="A frame that constrains its child to a particular aspect ratio.">AspectFrame</a>. For possible values, see Gtk::AlignmentEnum. </td></tr> <tr><td class="paramname">ratio</td><td>The desired aspect ratio. </td></tr> <tr><td class="paramname">obey_child</td><td>If <code>true</code>, <em>ratio</em> is ignored and the aspect ratio is taken from the requisition of the child. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="ad689dee3c8a0febb2340cc4eda5fe922"></a><!-- doxytag: member="Gtk::AspectFrame::set" ref="ad689dee3c8a0febb2340cc4eda5fe922" args="(float xalign, float yalign, float ratio, bool obey_child=true)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::AspectFrame::set </td> <td>(</td> <td class="paramtype">float </td> <td class="paramname"><em>xalign</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">float </td> <td class="paramname"><em>yalign</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">float </td> <td class="paramname"><em>ratio</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"><em>obey_child</em> = <code>true</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Set the properties of this <a class="el" href="classGtk_1_1AspectFrame.html" title="A frame that constrains its child to a particular aspect ratio.">AspectFrame</a>. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">xalign</td><td>Horizontal alignment of the child within the allocation of this <a class="el" href="classGtk_1_1AspectFrame.html" title="A frame that constrains its child to a particular aspect ratio.">AspectFrame</a>. This ranges from 0.0 (left aligned) to 1.0 (right aligned). </td></tr> <tr><td class="paramname">yalign</td><td>Vertical alignment of the child within the allocation of this <a class="el" href="classGtk_1_1AspectFrame.html" title="A frame that constrains its child to a particular aspect ratio.">AspectFrame</a>. This ranges from 0.0 (top aligned) to 1.0 (bottom aligned). </td></tr> <tr><td class="paramname">ratio</td><td>The desired aspect ratio. </td></tr> <tr><td class="paramname">obey_child</td><td>If <code>true</code>, <em>ratio</em> is ignored and the aspect ratio is taken from the requisition of the child. </td></tr> </table> </dd> </dl> </div> </div> <hr/><h2>Friends And Related Function Documentation</h2> <a class="anchor" id="ab19eaa639f8f64ce540bee038e121fdc"></a><!-- doxytag: member="Gtk::AspectFrame::wrap" ref="ab19eaa639f8f64ce540bee038e121fdc" args="(GtkAspectFrame *object, bool take_copy=false)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classGtk_1_1AspectFrame.html">Gtk::AspectFrame</a>* wrap </td> <td>(</td> <td class="paramtype">GtkAspectFrame * </td> <td class="paramname"><em>object</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"><em>take_copy</em> = <code>false</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [related]</code></td> </tr> </table> </div> <div class="memdoc"> <p>A <a class="elRef" href="../../../glibmm-2.4/reference/html/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">object</td><td>The C instance. </td></tr> <tr><td class="paramname">take_copy</td><td>False if the result should take ownership of the C instance. True if it should take a new copy or ref. </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>A C++ instance that wraps this C instance. </dd></dl> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li>gtkmm/aspectframe.h</li> </ul> </div> <hr class="footer"/><address class="footer"><small>Generated on Tue Jun 25 2013 for gtkmm by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address> </body> </html>