/usr/share/doc/libghc-gtk3-doc/html/Graphics-UI-Gtk-Layout-AspectFrame.html is in libghc-gtk3-doc 0.14.8-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | <!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/html; charset=UTF-8" /><title>Graphics.UI.Gtk.Layout.AspectFrame</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script src="file:///usr/share/javascript/mathjax/MathJax.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Graphics-UI-Gtk-Layout-AspectFrame.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Graphics-UI-Gtk-Layout-AspectFrame.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">gtk3-0.14.8: Binding to the Gtk+ 3 graphical user interface library</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Maintainer</th><td>gtk2hs-users@lists.sourceforge.net</td></tr><tr><th>Stability</th><td>provisional</td></tr><tr><th>Portability</th><td>portable (depends on GHC)</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">Graphics.UI.Gtk.Layout.AspectFrame</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Detail</a></li><li><a href="#g:2">Class Hierarchy</a></li><li><a href="#g:3">Types</a></li><li><a href="#g:4">Constructors</a></li><li><a href="#g:5">Methods</a></li><li><a href="#g:6">Attributes</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>A frame that constrains its child to a particular aspect ratio</p></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><span class="keyword">data</span> <a href="#t:AspectFrame">AspectFrame</a></li><li class="src short"><span class="keyword">class</span> <a href="Graphics-UI-Gtk-Ornaments-Frame.html#t:FrameClass">FrameClass</a> o => <a href="#t:AspectFrameClass">AspectFrameClass</a> o</li><li class="src short"><a href="#v:castToAspectFrame">castToAspectFrame</a> :: <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> obj => obj -> <a href="Graphics-UI-Gtk-Layout-AspectFrame.html#t:AspectFrame">AspectFrame</a></li><li class="src short"><a href="#v:gTypeAspectFrame">gTypeAspectFrame</a> :: <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:GType">GType</a></li><li class="src short"><a href="#v:toAspectFrame">toAspectFrame</a> :: <a href="Graphics-UI-Gtk-Layout-AspectFrame.html#t:AspectFrameClass">AspectFrameClass</a> o => o -> <a href="Graphics-UI-Gtk-Layout-AspectFrame.html#t:AspectFrame">AspectFrame</a></li><li class="src short"><a href="#v:aspectFrameNew">aspectFrameNew</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Float">Float</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Float">Float</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Float">Float</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Layout-AspectFrame.html#t:AspectFrame">AspectFrame</a></li><li class="src short"><a href="#v:aspectFrameSet">aspectFrameSet</a> :: <a href="Graphics-UI-Gtk-Layout-AspectFrame.html#t:AspectFrameClass">AspectFrameClass</a> self => self -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Float">Float</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Float">Float</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Float">Float</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:aspectFrameXAlign">aspectFrameXAlign</a> :: <a href="Graphics-UI-Gtk-Layout-AspectFrame.html#t:AspectFrameClass">AspectFrameClass</a> self => <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-Attributes.html#t:Attr">Attr</a> self <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Float">Float</a></li><li class="src short"><a href="#v:aspectFrameYAlign">aspectFrameYAlign</a> :: <a href="Graphics-UI-Gtk-Layout-AspectFrame.html#t:AspectFrameClass">AspectFrameClass</a> self => <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-Attributes.html#t:Attr">Attr</a> self <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Float">Float</a></li><li class="src short"><a href="#v:aspectFrameRatio">aspectFrameRatio</a> :: <a href="Graphics-UI-Gtk-Layout-AspectFrame.html#t:AspectFrameClass">AspectFrameClass</a> self => <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-Attributes.html#t:Attr">Attr</a> self <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Float">Float</a></li><li class="src short"><a href="#v:aspectFrameObeyChild">aspectFrameObeyChild</a> :: <a href="Graphics-UI-Gtk-Layout-AspectFrame.html#t:AspectFrameClass">AspectFrameClass</a> self => <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-Attributes.html#t:Attr">Attr</a> self <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a></li></ul></div><div id="interface"><h1 id="g:1">Detail</h1><div class="doc"><p>The <code><a href="Graphics-UI-Gtk-Layout-AspectFrame.html#t:AspectFrame">AspectFrame</a></code> 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. <code><a href="Graphics-UI-Gtk-Layout-AspectFrame.html#t:AspectFrame">AspectFrame</a></code> derives from
<code><a href="Graphics-UI-Gtk-Ornaments-Frame.html#t:Frame">Frame</a></code>, so 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><h1 id="g:2">Class Hierarchy</h1><div class="doc"><pre>| <code><a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-GObject.html#t:GObject">GObject</a></code>
| +----<code>Object</code>
| +----<code><a href="Graphics-UI-Gtk-Abstract-Widget.html#t:Widget">Widget</a></code>
| +----<code><a href="Graphics-UI-Gtk-Abstract-Container.html#t:Container">Container</a></code>
| +----<code><a href="Graphics-UI-Gtk-Abstract-Bin.html#t:Bin">Bin</a></code>
| +----<code><a href="Graphics-UI-Gtk-Ornaments-Frame.html#t:Frame">Frame</a></code>
| +----AspectFrame
</pre></div><h1 id="g:3">Types</h1><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:AspectFrame" class="def">AspectFrame</a> <a href="src/Graphics-UI-Gtk-Types.html#AspectFrame" class="link">Source</a> <a href="#t:AspectFrame" class="selflink">#</a></p><div class="subs instances"><p id="control.i:AspectFrame" class="caption collapser" onclick="toggleSection('i:AspectFrame')">Instances</p><div id="section.i:AspectFrame" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:AspectFrame:Eq:1" class="instance expander" onclick="toggleSection('i:id:AspectFrame:Eq:1')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Eq.html#t:Eq">Eq</a> <a href="Graphics-UI-Gtk-Layout-AspectFrame.html#t:AspectFrame">AspectFrame</a></span> <a href="src/Graphics-UI-Gtk-Types.html#line-1938" class="link">Source</a> <a href="#t:AspectFrame" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:AspectFrame:Eq:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-61--61-">(==)</a> :: <a href="Graphics-UI-Gtk-Layout-AspectFrame.html#t:AspectFrame">AspectFrame</a> -> <a href="Graphics-UI-Gtk-Layout-AspectFrame.html#t:AspectFrame">AspectFrame</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-61--61-" class="selflink">#</a></p><p class="src"><a href="#v:-47--61-">(/=)</a> :: <a href="Graphics-UI-Gtk-Layout-AspectFrame.html#t:AspectFrame">AspectFrame</a> -> <a href="Graphics-UI-Gtk-Layout-AspectFrame.html#t:AspectFrame">AspectFrame</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-47--61-" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:AspectFrame:Ord:2" class="instance expander" onclick="toggleSection('i:id:AspectFrame:Ord:2')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Ord.html#t:Ord">Ord</a> <a href="Graphics-UI-Gtk-Layout-AspectFrame.html#t:AspectFrame">AspectFrame</a></span> <a href="src/Graphics-UI-Gtk-Types.html#line-1938" class="link">Source</a> <a href="#t:AspectFrame" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:AspectFrame:Ord:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:compare">compare</a> :: <a href="Graphics-UI-Gtk-Layout-AspectFrame.html#t:AspectFrame">AspectFrame</a> -> <a href="Graphics-UI-Gtk-Layout-AspectFrame.html#t:AspectFrame">AspectFrame</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Ord.html#t:Ordering">Ordering</a> <a href="#v:compare" class="selflink">#</a></p><p class="src"><a href="#v:-60-">(<)</a> :: <a href="Graphics-UI-Gtk-Layout-AspectFrame.html#t:AspectFrame">AspectFrame</a> -> <a href="Graphics-UI-Gtk-Layout-AspectFrame.html#t:AspectFrame">AspectFrame</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-60-" class="selflink">#</a></p><p class="src"><a href="#v:-60--61-">(<=)</a> :: <a href="Graphics-UI-Gtk-Layout-AspectFrame.html#t:AspectFrame">AspectFrame</a> -> <a href="Graphics-UI-Gtk-Layout-AspectFrame.html#t:AspectFrame">AspectFrame</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-60--61-" class="selflink">#</a></p><p class="src"><a href="#v:-62-">(>)</a> :: <a href="Graphics-UI-Gtk-Layout-AspectFrame.html#t:AspectFrame">AspectFrame</a> -> <a href="Graphics-UI-Gtk-Layout-AspectFrame.html#t:AspectFrame">AspectFrame</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-62-" class="selflink">#</a></p><p class="src"><a href="#v:-62--61-">(>=)</a> :: <a href="Graphics-UI-Gtk-Layout-AspectFrame.html#t:AspectFrame">AspectFrame</a> -> <a href="Graphics-UI-Gtk-Layout-AspectFrame.html#t:AspectFrame">AspectFrame</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-62--61-" class="selflink">#</a></p><p class="src"><a href="#v:max">max</a> :: <a href="Graphics-UI-Gtk-Layout-AspectFrame.html#t:AspectFrame">AspectFrame</a> -> <a href="Graphics-UI-Gtk-Layout-AspectFrame.html#t:AspectFrame">AspectFrame</a> -> <a href="Graphics-UI-Gtk-Layout-AspectFrame.html#t:AspectFrame">AspectFrame</a> <a href="#v:max" class="selflink">#</a></p><p class="src"><a href="#v:min">min</a> :: <a href="Graphics-UI-Gtk-Layout-AspectFrame.html#t:AspectFrame">AspectFrame</a> -> <a href="Graphics-UI-Gtk-Layout-AspectFrame.html#t:AspectFrame">AspectFrame</a> -> <a href="Graphics-UI-Gtk-Layout-AspectFrame.html#t:AspectFrame">AspectFrame</a> <a href="#v:min" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:AspectFrame:GObjectClass:3" class="instance expander" onclick="toggleSection('i:id:AspectFrame:GObjectClass:3')"></span> <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> <a href="Graphics-UI-Gtk-Layout-AspectFrame.html#t:AspectFrame">AspectFrame</a></span> <a href="src/Graphics-UI-Gtk-Types.html#line-1952" class="link">Source</a> <a href="#t:AspectFrame" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:AspectFrame:GObjectClass:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toGObject">toGObject</a> :: <a href="Graphics-UI-Gtk-Layout-AspectFrame.html#t:AspectFrame">AspectFrame</a> -> <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-GObject.html#t:GObject">GObject</a> <a href="#v:toGObject" class="selflink">#</a></p><p class="src"><a href="#v:unsafeCastGObject">unsafeCastGObject</a> :: <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-GObject.html#t:GObject">GObject</a> -> <a href="Graphics-UI-Gtk-Layout-AspectFrame.html#t:AspectFrame">AspectFrame</a> <a href="#v:unsafeCastGObject" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:AspectFrame:AspectFrameClass:4" class="instance expander" onclick="toggleSection('i:id:AspectFrame:AspectFrameClass:4')"></span> <a href="Graphics-UI-Gtk-Layout-AspectFrame.html#t:AspectFrameClass">AspectFrameClass</a> <a href="Graphics-UI-Gtk-Layout-AspectFrame.html#t:AspectFrame">AspectFrame</a></span> <a href="src/Graphics-UI-Gtk-Types.html#line-1947" class="link">Source</a> <a href="#t:AspectFrame" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:AspectFrame:AspectFrameClass:4" class="inst-details hide"></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:AspectFrame:FrameClass:5" class="instance expander" onclick="toggleSection('i:id:AspectFrame:FrameClass:5')"></span> <a href="Graphics-UI-Gtk-Ornaments-Frame.html#t:FrameClass">FrameClass</a> <a href="Graphics-UI-Gtk-Layout-AspectFrame.html#t:AspectFrame">AspectFrame</a></span> <a href="src/Graphics-UI-Gtk-Types.html#line-1948" class="link">Source</a> <a href="#t:AspectFrame" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:AspectFrame:FrameClass:5" class="inst-details hide"></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:AspectFrame:BinClass:6" class="instance expander" onclick="toggleSection('i:id:AspectFrame:BinClass:6')"></span> <a href="Graphics-UI-Gtk-Abstract-Bin.html#t:BinClass">BinClass</a> <a href="Graphics-UI-Gtk-Layout-AspectFrame.html#t:AspectFrame">AspectFrame</a></span> <a href="src/Graphics-UI-Gtk-Types.html#line-1949" class="link">Source</a> <a href="#t:AspectFrame" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:AspectFrame:BinClass:6" class="inst-details hide"></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:AspectFrame:ContainerClass:7" class="instance expander" onclick="toggleSection('i:id:AspectFrame:ContainerClass:7')"></span> <a href="Graphics-UI-Gtk-Abstract-Container.html#t:ContainerClass">ContainerClass</a> <a href="Graphics-UI-Gtk-Layout-AspectFrame.html#t:AspectFrame">AspectFrame</a></span> <a href="src/Graphics-UI-Gtk-Types.html#line-1950" class="link">Source</a> <a href="#t:AspectFrame" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:AspectFrame:ContainerClass:7" class="inst-details hide"></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:AspectFrame:WidgetClass:8" class="instance expander" onclick="toggleSection('i:id:AspectFrame:WidgetClass:8')"></span> <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> <a href="Graphics-UI-Gtk-Layout-AspectFrame.html#t:AspectFrame">AspectFrame</a></span> <a href="src/Graphics-UI-Gtk-Types.html#line-1951" class="link">Source</a> <a href="#t:AspectFrame" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:AspectFrame:WidgetClass:8" class="inst-details hide"></div></td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a href="Graphics-UI-Gtk-Ornaments-Frame.html#t:FrameClass">FrameClass</a> o => <a id="t:AspectFrameClass" class="def">AspectFrameClass</a> o <a href="src/Graphics-UI-Gtk-Types.html#AspectFrameClass" class="link">Source</a> <a href="#t:AspectFrameClass" class="selflink">#</a></p><div class="subs instances"><p id="control.i:AspectFrameClass" class="caption collapser" onclick="toggleSection('i:AspectFrameClass')">Instances</p><div id="section.i:AspectFrameClass" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:AspectFrameClass:AspectFrameClass:1" class="instance expander" onclick="toggleSection('i:ic:AspectFrameClass:AspectFrameClass:1')"></span> <a href="Graphics-UI-Gtk-Layout-AspectFrame.html#t:AspectFrameClass">AspectFrameClass</a> <a href="Graphics-UI-Gtk-Layout-AspectFrame.html#t:AspectFrame">AspectFrame</a></span> <a href="src/Graphics-UI-Gtk-Types.html#line-1947" class="link">Source</a> <a href="#t:AspectFrameClass" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:AspectFrameClass:AspectFrameClass:1" class="inst-details hide"></div></td></tr></table></div></div></div><div class="top"><p class="src"><a id="v:castToAspectFrame" class="def">castToAspectFrame</a> :: <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> obj => obj -> <a href="Graphics-UI-Gtk-Layout-AspectFrame.html#t:AspectFrame">AspectFrame</a> <a href="src/Graphics-UI-Gtk-Types.html#castToAspectFrame" class="link">Source</a> <a href="#v:castToAspectFrame" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:gTypeAspectFrame" class="def">gTypeAspectFrame</a> :: <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:GType">GType</a> <a href="src/Graphics-UI-Gtk-Types.html#gTypeAspectFrame" class="link">Source</a> <a href="#v:gTypeAspectFrame" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:toAspectFrame" class="def">toAspectFrame</a> :: <a href="Graphics-UI-Gtk-Layout-AspectFrame.html#t:AspectFrameClass">AspectFrameClass</a> o => o -> <a href="Graphics-UI-Gtk-Layout-AspectFrame.html#t:AspectFrame">AspectFrame</a> <a href="src/Graphics-UI-Gtk-Types.html#toAspectFrame" class="link">Source</a> <a href="#v:toAspectFrame" class="selflink">#</a></p></div><h1 id="g:4">Constructors</h1><div class="top"><p class="src"><a id="v:aspectFrameNew" class="def">aspectFrameNew</a> <a href="src/Graphics-UI-Gtk-Layout-AspectFrame.html#aspectFrameNew" class="link">Source</a> <a href="#v:aspectFrameNew" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Float">Float</a></td><td class="doc"><p><code>xalign</code> - Horizontal alignment of the child within
the allocation of the <code><a href="Graphics-UI-Gtk-Layout-AspectFrame.html#t:AspectFrame">AspectFrame</a></code>. This ranges from 0.0
(left aligned) to 1.0 (right aligned)</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Float">Float</a></td><td class="doc"><p><code>yalign</code> - Vertical alignment of the child within the
allocation of the <code><a href="Graphics-UI-Gtk-Layout-AspectFrame.html#t:AspectFrame">AspectFrame</a></code>. This ranges from 0.0
(left aligned) to 1.0 (right aligned)</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Float">Float</a></td><td class="doc"><p><code>ratio</code> - The desired aspect ratio. If <code>Nothing</code> the
aspect ratio is taken from the requistion of the child.</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Layout-AspectFrame.html#t:AspectFrame">AspectFrame</a></td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Create a new <code><a href="Graphics-UI-Gtk-Layout-AspectFrame.html#t:AspectFrame">AspectFrame</a></code>.</p><p>The frame may be augmented with a label which can be set by <code>frameSetLabel</code>.</p></div></div><h1 id="g:5">Methods</h1><div class="top"><p class="src"><a id="v:aspectFrameSet" class="def">aspectFrameSet</a> <a href="src/Graphics-UI-Gtk-Layout-AspectFrame.html#aspectFrameSet" class="link">Source</a> <a href="#v:aspectFrameSet" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Layout-AspectFrame.html#t:AspectFrameClass">AspectFrameClass</a> self</td><td class="doc empty"> </td></tr><tr><td class="src">=> self</td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Float">Float</a></td><td class="doc"><p><code>xalign</code> - Horizontal alignment of the child within the
allocation of the <code><a href="Graphics-UI-Gtk-Layout-AspectFrame.html#t:AspectFrame">AspectFrame</a></code>. This ranges from 0.0 (left
aligned) to 1.0 (right aligned)</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Float">Float</a></td><td class="doc"><p><code>yalign</code> - Vertical alignment of the child within the
allocation of the <code><a href="Graphics-UI-Gtk-Layout-AspectFrame.html#t:AspectFrame">AspectFrame</a></code>. This ranges from 0.0 (left
aligned) to 1.0 (right aligned)</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Float">Float</a></td><td class="doc"><p><code>ratio</code> - The desired aspect ratio. If <code>Nothing</code> the
aspect ratio is taken from the requistion of the child.</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> ()</td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Set parameters for an existing <code><a href="Graphics-UI-Gtk-Layout-AspectFrame.html#t:AspectFrame">AspectFrame</a></code>.</p></div></div><h1 id="g:6">Attributes</h1><div class="top"><p class="src"><a id="v:aspectFrameXAlign" class="def">aspectFrameXAlign</a> :: <a href="Graphics-UI-Gtk-Layout-AspectFrame.html#t:AspectFrameClass">AspectFrameClass</a> self => <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-Attributes.html#t:Attr">Attr</a> self <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Float">Float</a> <a href="src/Graphics-UI-Gtk-Layout-AspectFrame.html#aspectFrameXAlign" class="link">Source</a> <a href="#v:aspectFrameXAlign" class="selflink">#</a></p><div class="doc"><p>X alignment of the child.</p><p>Allowed values: [0,1]</p><p>Default value: 0.5</p></div></div><div class="top"><p class="src"><a id="v:aspectFrameYAlign" class="def">aspectFrameYAlign</a> :: <a href="Graphics-UI-Gtk-Layout-AspectFrame.html#t:AspectFrameClass">AspectFrameClass</a> self => <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-Attributes.html#t:Attr">Attr</a> self <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Float">Float</a> <a href="src/Graphics-UI-Gtk-Layout-AspectFrame.html#aspectFrameYAlign" class="link">Source</a> <a href="#v:aspectFrameYAlign" class="selflink">#</a></p><div class="doc"><p>Y alignment of the child.</p><p>Allowed values: [0,1]</p><p>Default value: 0.5</p></div></div><div class="top"><p class="src"><a id="v:aspectFrameRatio" class="def">aspectFrameRatio</a> :: <a href="Graphics-UI-Gtk-Layout-AspectFrame.html#t:AspectFrameClass">AspectFrameClass</a> self => <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-Attributes.html#t:Attr">Attr</a> self <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Float">Float</a> <a href="src/Graphics-UI-Gtk-Layout-AspectFrame.html#aspectFrameRatio" class="link">Source</a> <a href="#v:aspectFrameRatio" class="selflink">#</a></p><div class="doc"><p>Aspect ratio if obey_child is <code>False</code>.</p><p>Allowed values: [1e-04,10000]</p><p>Default value: 0.5</p></div></div><div class="top"><p class="src"><a id="v:aspectFrameObeyChild" class="def">aspectFrameObeyChild</a> :: <a href="Graphics-UI-Gtk-Layout-AspectFrame.html#t:AspectFrameClass">AspectFrameClass</a> self => <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-Attributes.html#t:Attr">Attr</a> self <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="src/Graphics-UI-Gtk-Layout-AspectFrame.html#aspectFrameObeyChild" class="link">Source</a> <a href="#v:aspectFrameObeyChild" class="selflink">#</a></p><div class="doc"><p>Force aspect ratio to match that of the frame's child.</p><p>Default value: <code>True</code></p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.17.3</p></div></body></html>
|