<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>GtkSourceStyle: GtkSourceView 3 Reference Manual</title> <meta name="generator" content="DocBook XSL Stylesheets V1.78.1"> <link rel="home" href="index.html" title="GtkSourceView 3 Reference Manual"> <link rel="up" href="ch02.html" title="Syntax Highlighting"> <link rel="prev" href="GtkSourceLanguageManager.html" title="GtkSourceLanguageManager"> <link rel="next" href="GtkSourceStyleScheme.html" title="GtkSourceStyleScheme"> <meta name="generator" content="GTK-Doc V1.21.1 (XML mode)"> <link rel="stylesheet" href="style.css" type="text/css"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle"> <td width="100%" align="left" class="shortcuts"> <a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span> <a href="#GtkSourceStyle.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span> <a href="#GtkSourceStyle.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_properties"> <span class="dim">|</span> <a href="#GtkSourceStyle.properties" class="shortcut">Properties</a></span> </td> <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td> <td><a accesskey="u" href="ch02.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td> <td><a accesskey="p" href="GtkSourceLanguageManager.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td> <td><a accesskey="n" href="GtkSourceStyleScheme.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td> </tr></table> <div class="refentry"> <a name="GtkSourceStyle"></a><div class="titlepage"></div> <div class="refnamediv"><table width="100%"><tr> <td valign="top"> <h2><span class="refentrytitle"><a name="GtkSourceStyle.top_of_page"></a>GtkSourceStyle</span></h2> <p>GtkSourceStyle — Represents a style</p> </td> <td class="gallery_image" valign="top" align="right"></td> </tr></table></div> <div class="refsect1"> <a name="GtkSourceStyle.functions"></a><h2>Functions</h2> <div class="informaltable"><table width="100%" border="0"> <colgroup> <col width="150px" class="functions_return"> <col class="functions_name"> </colgroup> <tbody><tr> <td class="function_type"> <a class="link" href="GtkSourceStyle.html" title="GtkSourceStyle"><span class="returnvalue">GtkSourceStyle</span></a> * </td> <td class="function_name"> <a class="link" href="GtkSourceStyle.html#gtk-source-style-copy" title="gtk_source_style_copy ()">gtk_source_style_copy</a> <span class="c_punctuation">()</span> </td> </tr></tbody> </table></div> </div> <div class="refsect1"> <a name="GtkSourceStyle.properties"></a><h2>Properties</h2> <div class="informaltable"><table border="0"> <colgroup> <col width="150px" class="properties_type"> <col width="300px" class="properties_name"> <col width="200px" class="properties_flags"> </colgroup> <tbody> <tr> <td class="property_type"> <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</td> <td class="property_name"><a class="link" href="GtkSourceStyle.html#GtkSourceStyle--background" title="The “background” property">background</a></td> <td class="property_flags">Read / Write / Construct Only</td> </tr> <tr> <td class="property_type"><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></td> <td class="property_name"><a class="link" href="GtkSourceStyle.html#GtkSourceStyle--background-set" title="The “background-set” property">background-set</a></td> <td class="property_flags">Read / Write / Construct Only</td> </tr> <tr> <td class="property_type"><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></td> <td class="property_name"><a class="link" href="GtkSourceStyle.html#GtkSourceStyle--bold" title="The “bold” property">bold</a></td> <td class="property_flags">Read / Write / Construct Only</td> </tr> <tr> <td class="property_type"><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></td> <td class="property_name"><a class="link" href="GtkSourceStyle.html#GtkSourceStyle--bold-set" title="The “bold-set” property">bold-set</a></td> <td class="property_flags">Read / Write / Construct Only</td> </tr> <tr> <td class="property_type"> <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</td> <td class="property_name"><a class="link" href="GtkSourceStyle.html#GtkSourceStyle--foreground" title="The “foreground” property">foreground</a></td> <td class="property_flags">Read / Write / Construct Only</td> </tr> <tr> <td class="property_type"><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></td> <td class="property_name"><a class="link" href="GtkSourceStyle.html#GtkSourceStyle--foreground-set" title="The “foreground-set” property">foreground-set</a></td> <td class="property_flags">Read / Write / Construct Only</td> </tr> <tr> <td class="property_type"><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></td> <td class="property_name"><a class="link" href="GtkSourceStyle.html#GtkSourceStyle--italic" title="The “italic” property">italic</a></td> <td class="property_flags">Read / Write / Construct Only</td> </tr> <tr> <td class="property_type"><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></td> <td class="property_name"><a class="link" href="GtkSourceStyle.html#GtkSourceStyle--italic-set" title="The “italic-set” property">italic-set</a></td> <td class="property_flags">Read / Write / Construct Only</td> </tr> <tr> <td class="property_type"> <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</td> <td class="property_name"><a class="link" href="GtkSourceStyle.html#GtkSourceStyle--line-background" title="The “line-background” property">line-background</a></td> <td class="property_flags">Read / Write / Construct Only</td> </tr> <tr> <td class="property_type"><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></td> <td class="property_name"><a class="link" href="GtkSourceStyle.html#GtkSourceStyle--line-background-set" title="The “line-background-set” property">line-background-set</a></td> <td class="property_flags">Read / Write / Construct Only</td> </tr> <tr> <td class="property_type"> <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</td> <td class="property_name"><a class="link" href="GtkSourceStyle.html#GtkSourceStyle--scale" title="The “scale” property">scale</a></td> <td class="property_flags">Read / Write / Construct Only</td> </tr> <tr> <td class="property_type"><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></td> <td class="property_name"><a class="link" href="GtkSourceStyle.html#GtkSourceStyle--scale-set" title="The “scale-set” property">scale-set</a></td> <td class="property_flags">Read / Write / Construct Only</td> </tr> <tr> <td class="property_type"><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></td> <td class="property_name"><a class="link" href="GtkSourceStyle.html#GtkSourceStyle--strikethrough" title="The “strikethrough” property">strikethrough</a></td> <td class="property_flags">Read / Write / Construct Only</td> </tr> <tr> <td class="property_type"><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></td> <td class="property_name"><a class="link" href="GtkSourceStyle.html#GtkSourceStyle--strikethrough-set" title="The “strikethrough-set” property">strikethrough-set</a></td> <td class="property_flags">Read / Write / Construct Only</td> </tr> <tr> <td class="property_type"><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></td> <td class="property_name"><a class="link" href="GtkSourceStyle.html#GtkSourceStyle--underline" title="The “underline” property">underline</a></td> <td class="property_flags">Read / Write / Construct Only</td> </tr> <tr> <td class="property_type"><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></td> <td class="property_name"><a class="link" href="GtkSourceStyle.html#GtkSourceStyle--underline-set" title="The “underline-set” property">underline-set</a></td> <td class="property_flags">Read / Write / Construct Only</td> </tr> </tbody> </table></div> </div> <div class="refsect1"> <a name="GtkSourceStyle.other"></a><h2>Types and Values</h2> <div class="informaltable"><table width="100%" border="0"> <colgroup> <col width="150px" class="name"> <col class="description"> </colgroup> <tbody><tr> <td class="datatype_keyword"> </td> <td class="function_name"><a class="link" href="GtkSourceStyle.html#GtkSourceStyle-struct" title="GtkSourceStyle">GtkSourceStyle</a></td> </tr></tbody> </table></div> </div> <div class="refsect1"> <a name="GtkSourceStyle.object-hierarchy"></a><h2>Object Hierarchy</h2> <pre class="screen"> <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject">GObject</a> <span class="lineart">╰──</span> GtkSourceStyle </pre> </div> <div class="refsect1"> <a name="GtkSourceStyle.includes"></a><h2>Includes</h2> <pre class="synopsis">#include <gtksourceview/gtksource.h> </pre> </div> <div class="refsect1"> <a name="GtkSourceStyle.description"></a><h2>Description</h2> <p>The <a class="link" href="GtkSourceStyle.html" title="GtkSourceStyle"><span class="type">GtkSourceStyle</span></a> structure is used to describe text attributes which are set when given style is used.</p> </div> <div class="refsect1"> <a name="GtkSourceStyle.functions_details"></a><h2>Functions</h2> <div class="refsect2"> <a name="gtk-source-style-copy"></a><h3>gtk_source_style_copy ()</h3> <pre class="programlisting"><a class="link" href="GtkSourceStyle.html" title="GtkSourceStyle"><span class="returnvalue">GtkSourceStyle</span></a> * gtk_source_style_copy (<em class="parameter"><code>const <a class="link" href="GtkSourceStyle.html" title="GtkSourceStyle"><span class="type">GtkSourceStyle</span></a> *style</code></em>);</pre> <p>Creates a copy of <em class="parameter"><code>style</code></em> , that is a new <a class="link" href="GtkSourceStyle.html" title="GtkSourceStyle"><span class="type">GtkSourceStyle</span></a> instance which has the same attributes set.</p> <div class="refsect3"> <a name="id-1.2.3.4.9.2.5"></a><h4>Parameters</h4> <div class="informaltable"><table width="100%" border="0"> <colgroup> <col width="150px" class="parameters_name"> <col class="parameters_description"> <col width="200px" class="parameters_annotations"> </colgroup> <tbody><tr> <td class="parameter_name"><p>style</p></td> <td class="parameter_description"><p>a <a class="link" href="GtkSourceStyle.html" title="GtkSourceStyle"><span class="type">GtkSourceStyle</span></a> structure to copy.</p></td> <td class="parameter_annotations"> </td> </tr></tbody> </table></div> </div> <div class="refsect3"> <a name="id-1.2.3.4.9.2.6"></a><h4>Returns</h4> <p> copy of <em class="parameter"><code>style</code></em> , call <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a> when you are done with it. </p> <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p> </div> <p class="since">Since 2.0</p> </div> </div> <div class="refsect1"> <a name="GtkSourceStyle.other_details"></a><h2>Types and Values</h2> <div class="refsect2"> <a name="GtkSourceStyle-struct"></a><h3>GtkSourceStyle</h3> <pre class="programlisting">typedef struct _GtkSourceStyle GtkSourceStyle;</pre> </div> </div> <div class="refsect1"> <a name="GtkSourceStyle.property-details"></a><h2>Property Details</h2> <div class="refsect2"> <a name="GtkSourceStyle--background"></a><h3>The <code class="literal">“background”</code> property</h3> <pre class="programlisting"> “background” <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</pre> <p>Background color.</p> <p>Flags: Read / Write / Construct Only</p> <p>Default value: NULL</p> </div> <hr> <div class="refsect2"> <a name="GtkSourceStyle--background-set"></a><h3>The <code class="literal">“background-set”</code> property</h3> <pre class="programlisting"> “background-set” <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></pre> <p>Whether background color is set.</p> <p>Flags: Read / Write / Construct Only</p> <p>Default value: FALSE</p> </div> <hr> <div class="refsect2"> <a name="GtkSourceStyle--bold"></a><h3>The <code class="literal">“bold”</code> property</h3> <pre class="programlisting"> “bold” <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></pre> <p>Bold.</p> <p>Flags: Read / Write / Construct Only</p> <p>Default value: FALSE</p> </div> <hr> <div class="refsect2"> <a name="GtkSourceStyle--bold-set"></a><h3>The <code class="literal">“bold-set”</code> property</h3> <pre class="programlisting"> “bold-set” <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></pre> <p>Whether bold attribute is set.</p> <p>Flags: Read / Write / Construct Only</p> <p>Default value: FALSE</p> </div> <hr> <div class="refsect2"> <a name="GtkSourceStyle--foreground"></a><h3>The <code class="literal">“foreground”</code> property</h3> <pre class="programlisting"> “foreground” <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</pre> <p>Foreground color.</p> <p>Flags: Read / Write / Construct Only</p> <p>Default value: NULL</p> </div> <hr> <div class="refsect2"> <a name="GtkSourceStyle--foreground-set"></a><h3>The <code class="literal">“foreground-set”</code> property</h3> <pre class="programlisting"> “foreground-set” <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></pre> <p>Whether foreground color is set.</p> <p>Flags: Read / Write / Construct Only</p> <p>Default value: FALSE</p> </div> <hr> <div class="refsect2"> <a name="GtkSourceStyle--italic"></a><h3>The <code class="literal">“italic”</code> property</h3> <pre class="programlisting"> “italic” <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></pre> <p>Italic.</p> <p>Flags: Read / Write / Construct Only</p> <p>Default value: FALSE</p> </div> <hr> <div class="refsect2"> <a name="GtkSourceStyle--italic-set"></a><h3>The <code class="literal">“italic-set”</code> property</h3> <pre class="programlisting"> “italic-set” <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></pre> <p>Whether italic attribute is set.</p> <p>Flags: Read / Write / Construct Only</p> <p>Default value: FALSE</p> </div> <hr> <div class="refsect2"> <a name="GtkSourceStyle--line-background"></a><h3>The <code class="literal">“line-background”</code> property</h3> <pre class="programlisting"> “line-background” <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</pre> <p>Line background color.</p> <p>Flags: Read / Write / Construct Only</p> <p>Default value: NULL</p> </div> <hr> <div class="refsect2"> <a name="GtkSourceStyle--line-background-set"></a><h3>The <code class="literal">“line-background-set”</code> property</h3> <pre class="programlisting"> “line-background-set” <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></pre> <p>Whether line background color is set.</p> <p>Flags: Read / Write / Construct Only</p> <p>Default value: FALSE</p> </div> <hr> <div class="refsect2"> <a name="GtkSourceStyle--scale"></a><h3>The <code class="literal">“scale”</code> property</h3> <pre class="programlisting"> “scale” <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</pre> <p>Text scale factor.</p> <p>Flags: Read / Write / Construct Only</p> <p>Default value: NULL</p> </div> <hr> <div class="refsect2"> <a name="GtkSourceStyle--scale-set"></a><h3>The <code class="literal">“scale-set”</code> property</h3> <pre class="programlisting"> “scale-set” <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></pre> <p>Whether scale attribute is set.</p> <p>Flags: Read / Write / Construct Only</p> <p>Default value: FALSE</p> </div> <hr> <div class="refsect2"> <a name="GtkSourceStyle--strikethrough"></a><h3>The <code class="literal">“strikethrough”</code> property</h3> <pre class="programlisting"> “strikethrough” <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></pre> <p>Strikethrough.</p> <p>Flags: Read / Write / Construct Only</p> <p>Default value: FALSE</p> </div> <hr> <div class="refsect2"> <a name="GtkSourceStyle--strikethrough-set"></a><h3>The <code class="literal">“strikethrough-set”</code> property</h3> <pre class="programlisting"> “strikethrough-set” <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></pre> <p>Whether strikethrough attribute is set.</p> <p>Flags: Read / Write / Construct Only</p> <p>Default value: FALSE</p> </div> <hr> <div class="refsect2"> <a name="GtkSourceStyle--underline"></a><h3>The <code class="literal">“underline”</code> property</h3> <pre class="programlisting"> “underline” <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></pre> <p>Underline.</p> <p>Flags: Read / Write / Construct Only</p> <p>Default value: FALSE</p> </div> <hr> <div class="refsect2"> <a name="GtkSourceStyle--underline-set"></a><h3>The <code class="literal">“underline-set”</code> property</h3> <pre class="programlisting"> “underline-set” <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></pre> <p>Whether underline attribute is set.</p> <p>Flags: Read / Write / Construct Only</p> <p>Default value: FALSE</p> </div> </div> <div class="refsect1"> <a name="GtkSourceStyle.see-also"></a><h2>See Also</h2> <p><a class="link" href="GtkSourceStyleScheme.html" title="GtkSourceStyleScheme"><span class="type">GtkSourceStyleScheme</span></a>, <a class="link" href="GtkSourceStyleSchemeManager.html" title="GtkSourceStyleSchemeManager"><span class="type">GtkSourceStyleSchemeManager</span></a></p> </div> </div> <div class="footer"> <hr> Generated by GTK-Doc V1.21.1</div> </body> </html>