Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 404d46ca9bb341d7a0e7e04bc69da9df > files > 788

ghc-gtk-devel-0.12.0-4.fc15.i686.rpm

<!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.General.Style</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Graphics-UI-Gtk-General-Style.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Graphics-UI-Gtk-General-Style.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">gtk-0.12.0: Binding to the Gtk+ graphical user interface library.</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Portability</th><td>portable (depends on GHC)</td></tr><tr><th>Stability</th><td>provisional</td></tr><tr><th>Maintainer</th><td>gtk2hs-users@lists.sourceforge.net</td></tr></table><p class="caption">Graphics.UI.Gtk.General.Style</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Description
</a></li><li><a href="#g:2">Types
</a></li><li><a href="#g:3">Methods
</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Customization of widgets.
</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:Style">Style</a> </li><li class="src short"><span class="keyword">class</span> <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> o =&gt; <a href="#t:StyleClass">StyleClass</a> o </li><li class="src short"><a href="#v:castToStyle">castToStyle</a> :: <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> obj =&gt; obj -&gt; <a href="Graphics-UI-Gtk-General-Style.html#t:Style">Style</a></li><li class="src short"><a href="#v:gTypeStyle">gTypeStyle</a> :: <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:GType">GType</a></li><li class="src short"><a href="#v:toStyle">toStyle</a> :: <a href="Graphics-UI-Gtk-General-Style.html#t:StyleClass">StyleClass</a> o =&gt; o -&gt; <a href="Graphics-UI-Gtk-General-Style.html#t:Style">Style</a></li><li class="src short"><a href="#v:styleGetForeground">styleGetForeground</a> :: <a href="Graphics-UI-Gtk-General-Style.html#t:Style">Style</a> -&gt; <a href="Graphics-UI-Gtk-General-Enums.html#t:StateType">StateType</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Gdk-GC.html#t:Color">Color</a></li><li class="src short"><a href="#v:styleGetBackground">styleGetBackground</a> :: <a href="Graphics-UI-Gtk-General-Style.html#t:Style">Style</a> -&gt; <a href="Graphics-UI-Gtk-General-Enums.html#t:StateType">StateType</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Gdk-GC.html#t:Color">Color</a></li><li class="src short"><a href="#v:styleGetLight">styleGetLight</a> :: <a href="Graphics-UI-Gtk-General-Style.html#t:Style">Style</a> -&gt; <a href="Graphics-UI-Gtk-General-Enums.html#t:StateType">StateType</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Gdk-GC.html#t:Color">Color</a></li><li class="src short"><a href="#v:styleGetMiddle">styleGetMiddle</a> :: <a href="Graphics-UI-Gtk-General-Style.html#t:Style">Style</a> -&gt; <a href="Graphics-UI-Gtk-General-Enums.html#t:StateType">StateType</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Gdk-GC.html#t:Color">Color</a></li><li class="src short"><a href="#v:styleGetDark">styleGetDark</a> :: <a href="Graphics-UI-Gtk-General-Style.html#t:Style">Style</a> -&gt; <a href="Graphics-UI-Gtk-General-Enums.html#t:StateType">StateType</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Gdk-GC.html#t:Color">Color</a></li><li class="src short"><a href="#v:styleGetText">styleGetText</a> :: <a href="Graphics-UI-Gtk-General-Style.html#t:Style">Style</a> -&gt; <a href="Graphics-UI-Gtk-General-Enums.html#t:StateType">StateType</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Gdk-GC.html#t:Color">Color</a></li><li class="src short"><a href="#v:styleGetBase">styleGetBase</a> :: <a href="Graphics-UI-Gtk-General-Style.html#t:Style">Style</a> -&gt; <a href="Graphics-UI-Gtk-General-Enums.html#t:StateType">StateType</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Gdk-GC.html#t:Color">Color</a></li><li class="src short"><a href="#v:styleGetAntiAliasing">styleGetAntiAliasing</a> :: <a href="Graphics-UI-Gtk-General-Style.html#t:Style">Style</a> -&gt; <a href="Graphics-UI-Gtk-General-Enums.html#t:StateType">StateType</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Gdk-GC.html#t:Color">Color</a></li></ul></div><div id="interface"><h1 id="g:1">Description
</h1><div class="doc"><p>Styles are attached to widgets and determine how particular parts are
 drawn and with what color. Thus they are should be seen as mandatory when
 one implements a new custom widgets via <code><a href="Graphics-UI-Gtk-Misc-DrawingArea.html#t:DrawingArea">DrawingArea</a></code>. Although the
 parameterized drawing function don't have to be used, it is strongly
 advisable (and more robust) to make use of the predefined graphics contexts
 for the different states of a widget (retrieved by
 <code>Graphics.UI.Gtk.Abstract.Widget.widgetGetState</code>).
</p></div><h1 id="g:2">Types
</h1><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:Style" class="def">Style</a>  <a href="src/Graphics-UI-Gtk-Types.html#Style" class="link">Source</a></p><div class="subs instances"><p id="control.i:Style" class="caption collapser" onclick="toggleSection('i:Style')">Instances</p><div id="section.i:Style" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Eq.html#t:Eq">Eq</a> <a href="Graphics-UI-Gtk-General-Style.html#t:Style">Style</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Ord.html#t:Ord">Ord</a> <a href="Graphics-UI-Gtk-General-Style.html#t:Style">Style</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> <a href="Graphics-UI-Gtk-General-Style.html#t:Style">Style</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-General-Style.html#t:StyleClass">StyleClass</a> <a href="Graphics-UI-Gtk-General-Style.html#t:Style">Style</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> o =&gt; <a name="t:StyleClass" class="def">StyleClass</a> o <a href="src/Graphics-UI-Gtk-Types.html#StyleClass" class="link">Source</a></p><div class="subs instances"><p id="control.i:StyleClass" class="caption collapser" onclick="toggleSection('i:StyleClass')">Instances</p><div id="section.i:StyleClass" class="show"><table><tr><td class="src"><a href="Graphics-UI-Gtk-General-Style.html#t:StyleClass">StyleClass</a> <a href="Graphics-UI-Gtk-General-Style.html#t:Style">Style</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:castToStyle" class="def">castToStyle</a> :: <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> obj =&gt; obj -&gt; <a href="Graphics-UI-Gtk-General-Style.html#t:Style">Style</a><a href="src/Graphics-UI-Gtk-Types.html#castToStyle" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:gTypeStyle" class="def">gTypeStyle</a> :: <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:GType">GType</a><a href="src/Graphics-UI-Gtk-Types.html#gTypeStyle" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:toStyle" class="def">toStyle</a> :: <a href="Graphics-UI-Gtk-General-Style.html#t:StyleClass">StyleClass</a> o =&gt; o -&gt; <a href="Graphics-UI-Gtk-General-Style.html#t:Style">Style</a><a href="src/Graphics-UI-Gtk-Types.html#toStyle" class="link">Source</a></p></div><h1 id="g:3">Methods
</h1><div class="top"><p class="src"><a name="v:styleGetForeground" class="def">styleGetForeground</a> :: <a href="Graphics-UI-Gtk-General-Style.html#t:Style">Style</a> -&gt; <a href="Graphics-UI-Gtk-General-Enums.html#t:StateType">StateType</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Gdk-GC.html#t:Color">Color</a><a href="src/Graphics-UI-Gtk-General-Structs.html#styleGetForeground" class="link">Source</a></p><div class="doc"><p>Retrieve the the foreground color.
</p><ul><li> The parameter <code>state</code> determines for which widget
   state (one of <code><a href="Graphics-UI-Gtk-General-Enums.html#t:StateType">StateType</a></code>) the <code><a href="Graphics-UI-Gtk-Gdk-GC.html#t:Color">Color</a></code> should be retrieved.
   Use <code><a href="Graphics-UI-Gtk-Abstract-Widget.html#v:widgetGetState">widgetGetState</a></code> to determine the current state of the
   widget.
</li></ul></div></div><div class="top"><p class="src"><a name="v:styleGetBackground" class="def">styleGetBackground</a> :: <a href="Graphics-UI-Gtk-General-Style.html#t:Style">Style</a> -&gt; <a href="Graphics-UI-Gtk-General-Enums.html#t:StateType">StateType</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Gdk-GC.html#t:Color">Color</a><a href="src/Graphics-UI-Gtk-General-Structs.html#styleGetBackground" class="link">Source</a></p><div class="doc"><p>Retrieve the background color.
</p><ul><li> The parameter <code>state</code> determines for which widget
   state (one of <code><a href="Graphics-UI-Gtk-General-Enums.html#t:StateType">StateType</a></code>) the <code><a href="Graphics-UI-Gtk-Gdk-GC.html#t:Color">Color</a></code> should be retrieved.
   Use <code><a href="Graphics-UI-Gtk-Abstract-Widget.html#v:widgetGetState">widgetGetState</a></code> to determine the current state of the
   widget.
</li></ul></div></div><div class="top"><p class="src"><a name="v:styleGetLight" class="def">styleGetLight</a> :: <a href="Graphics-UI-Gtk-General-Style.html#t:Style">Style</a> -&gt; <a href="Graphics-UI-Gtk-General-Enums.html#t:StateType">StateType</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Gdk-GC.html#t:Color">Color</a><a href="src/Graphics-UI-Gtk-General-Structs.html#styleGetLight" class="link">Source</a></p><div class="doc"><p>Retrieve a light color.
</p><ul><li> The parameter <code>state</code> determines for which widget
   state (one of <code><a href="Graphics-UI-Gtk-General-Enums.html#t:StateType">StateType</a></code>) the <code><a href="Graphics-UI-Gtk-Gdk-GC.html#t:Color">Color</a></code> should be retrieved.
   Use <code><a href="Graphics-UI-Gtk-Abstract-Widget.html#v:widgetGetState">widgetGetState</a></code> to determine the current state of the
   widget.
</li></ul></div></div><div class="top"><p class="src"><a name="v:styleGetMiddle" class="def">styleGetMiddle</a> :: <a href="Graphics-UI-Gtk-General-Style.html#t:Style">Style</a> -&gt; <a href="Graphics-UI-Gtk-General-Enums.html#t:StateType">StateType</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Gdk-GC.html#t:Color">Color</a><a href="src/Graphics-UI-Gtk-General-Structs.html#styleGetMiddle" class="link">Source</a></p><div class="doc"><p>Retrieve a middle color.
</p><ul><li> The parameter <code>state</code> determines for which widget
   state (one of <code><a href="Graphics-UI-Gtk-General-Enums.html#t:StateType">StateType</a></code>) the <code><a href="Graphics-UI-Gtk-Gdk-GC.html#t:Color">Color</a></code> should be retrieved.
   Use <code><a href="Graphics-UI-Gtk-Abstract-Widget.html#v:widgetGetState">widgetGetState</a></code> to determine the current state of the
   widget.
</li></ul></div></div><div class="top"><p class="src"><a name="v:styleGetDark" class="def">styleGetDark</a> :: <a href="Graphics-UI-Gtk-General-Style.html#t:Style">Style</a> -&gt; <a href="Graphics-UI-Gtk-General-Enums.html#t:StateType">StateType</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Gdk-GC.html#t:Color">Color</a><a href="src/Graphics-UI-Gtk-General-Structs.html#styleGetDark" class="link">Source</a></p><div class="doc"><p>Retrieve a dark color.
</p><ul><li> The parameter <code>state</code> determines for which widget
   state (one of <code><a href="Graphics-UI-Gtk-General-Enums.html#t:StateType">StateType</a></code>) the <code><a href="Graphics-UI-Gtk-Gdk-GC.html#t:Color">Color</a></code> should be retrieved.
   Use <code><a href="Graphics-UI-Gtk-Abstract-Widget.html#v:widgetGetState">widgetGetState</a></code> to determine the current state of the
   widget.
</li></ul></div></div><div class="top"><p class="src"><a name="v:styleGetText" class="def">styleGetText</a> :: <a href="Graphics-UI-Gtk-General-Style.html#t:Style">Style</a> -&gt; <a href="Graphics-UI-Gtk-General-Enums.html#t:StateType">StateType</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Gdk-GC.html#t:Color">Color</a><a href="src/Graphics-UI-Gtk-General-Structs.html#styleGetText" class="link">Source</a></p><div class="doc"><p>Retrieve the text color.
</p><ul><li> The parameter <code>state</code> determines for which widget
   state (one of <code><a href="Graphics-UI-Gtk-General-Enums.html#t:StateType">StateType</a></code>) the <code><a href="Graphics-UI-Gtk-Gdk-GC.html#t:Color">Color</a></code> should be retrieved.
   Use <code><a href="Graphics-UI-Gtk-Abstract-Widget.html#v:widgetGetState">widgetGetState</a></code> to determine the current state of the
   widget.
</li></ul></div></div><div class="top"><p class="src"><a name="v:styleGetBase" class="def">styleGetBase</a> :: <a href="Graphics-UI-Gtk-General-Style.html#t:Style">Style</a> -&gt; <a href="Graphics-UI-Gtk-General-Enums.html#t:StateType">StateType</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Gdk-GC.html#t:Color">Color</a><a href="src/Graphics-UI-Gtk-General-Structs.html#styleGetBase" class="link">Source</a></p><div class="doc"><p>Retrieve the base color.
</p><ul><li> The base color is the standard text background of a widget.
</li><li> The parameter <code>state</code> determines for which widget
   state (one of <code><a href="Graphics-UI-Gtk-General-Enums.html#t:StateType">StateType</a></code>) the <code><a href="Graphics-UI-Gtk-Gdk-GC.html#t:Color">Color</a></code> should be retrieved.
   Use <code><a href="Graphics-UI-Gtk-Abstract-Widget.html#v:widgetGetState">widgetGetState</a></code> to determine the current state of the
   widget.
</li></ul></div></div><div class="top"><p class="src"><a name="v:styleGetAntiAliasing" class="def">styleGetAntiAliasing</a> :: <a href="Graphics-UI-Gtk-General-Style.html#t:Style">Style</a> -&gt; <a href="Graphics-UI-Gtk-General-Enums.html#t:StateType">StateType</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Gdk-GC.html#t:Color">Color</a><a href="src/Graphics-UI-Gtk-General-Structs.html#styleGetAntiAliasing" class="link">Source</a></p><div class="doc"><p>Retrieve the color for drawing anti-aliased text.
</p><ul><li> The anti-aliasing color is the color which is used when the rendering
   of a character does not make it clear if a certain pixel shoud be set
   or not. This color is between the text and the base color.
</li><li> The parameter <code>state</code> determines for which widget
   state (one of <code><a href="Graphics-UI-Gtk-General-Enums.html#t:StateType">StateType</a></code>) the <code><a href="Graphics-UI-Gtk-Gdk-GC.html#t:Color">Color</a></code> should be retrieved.
   Use <code><a href="Graphics-UI-Gtk-Abstract-Widget.html#v:widgetGetState">widgetGetState</a></code> to determine the current state of the
   widget.
</li></ul></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.9.2</p></div></body></html>