1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>gtksourceview.SourceStyleScheme</title><meta name="generator" content="DocBook XSL Stylesheets V1.75.2"><link rel="home" href="index.html" title="Python GtkSourceView Reference Manual"><link rel="up" href="gtksourceview-class-reference.html" title="The GtkSourceView Class Reference"><link rel="prev" href="class-gtksourcemarker.html" title="gtksourceview.SourceMarker"><link rel="next" href="class-gtksourcetag.html" title="gtksourceview.SourceTag"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">gtksourceview.SourceStyleScheme</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gtksourcemarker.html">Prev</a> </td><th width="60%" align="center">The GtkSourceView Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-gtksourcetag.html">Next</a></td></tr></table><hr></div><div class="refentry" title="gtksourceview.SourceStyleScheme"><a name="class-gtksourcestylescheme"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtksourceview.SourceStyleScheme</h2><p>gtksourceview.SourceStyleScheme — StyleScheme object for <a class="link" href="class-gtksourceview.html" title="gtksourceview.SourceView">gtksourceview.SourceView</a></p></div><div class="refsect1" title="Synopsis"><a name="id2596220"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtksourceview.SourceStyleScheme</span></span>(<span class="ooclass"><span class="classname">gobject.GInterface</span></span>):
<code class="constructorsynopsis"> <span class="methodname"><a class="link" href="class-gtksourcestylescheme.html#constructor-gtksourcestylescheme" title="Constructor">gtksourceview.SourceStyleScheme</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code></code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtksourcestylescheme.html#method-gtksourcestylescheme--get-tag-style" title="gtksourceview.SourceStyleScheme.get_tag_style">get_tag_style</a></span>(<span class="methodparam">style_name</span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtksourcestylescheme.html#method-gtksourcestylescheme--get-name" title="gtksourceview.SourceStyleScheme.get_name">get_name</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtksourcestylescheme.html#method-gtksourcestylescheme--get-style-names" title="gtksourceview.SourceStyleScheme.get_style_names">get_style_names</a></span>(<span class="methodparam"></span>)</code><br></pre></td></tr></table><pre class="programlisting">
<span class="bold"><strong>Functions</strong></span>
<code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtksourcestylescheme.html#function-gtksourcestylescheme--get-default" title="gtksourceview.gtk_source_style_scheme_get_default">gtksourceview.gtk_source_style_scheme_get_default</a></span>(<span class="methodparam"></span>)</code></pre></div><div class="refsect1" title="Ancestry"><a name="id2605793"></a><h2>Ancestry</h2><pre class="synopsis">+-- gobject.GInterface
+-- <a class="link" href="class-gtksourcestylescheme.html" title="gtksourceview.SourceStyleScheme">gtksourceview.SourceStyleScheme</a>
</pre></div><div class="refsect1" title="Description"><a name="description-gtksourcestylescheme"></a><h2>Description</h2><p>
</p></div><div class="refsect1" title="Constructor"><a name="constructor-gtksourcestylescheme"></a><h2>Constructor</h2><pre class="programlisting"><code class="constructorsynopsis"> <span class="methodname">gtksourceview.SourceStyleScheme</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code></code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a new <a class="link" href="class-gtksourcestylescheme.html" title="gtksourceview.SourceStyleScheme"><code class="classname">gtksourceview.SourceStyleScheme</code></a>.</td></tr></tbody></table><p>
Creates a new <a class="link" href="class-gtksourcestylescheme.html" title="gtksourceview.SourceStyleScheme"><code class="classname">gtksourceview.SourceStyleScheme</code></a> object.
</p></div><div class="refsect1" title="Methods"><a name="id2600188"></a><h2>Methods</h2><div class="refsect2" title="gtksourceview.SourceStyleScheme.get_tag_style"><a name="method-gtksourcestylescheme--get-tag-style"></a><h3>gtksourceview.SourceStyleScheme.get_tag_style</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_tag_style</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>style_name</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>style_name</code></strong> :</span></p></td><td> the name of a style.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> a <a class="link" href="class-gtksourcetagstyle.html" title="gtksourceview.SourceTagStyle">gtksourceview.SourceTagStyle</a>.</td></tr></tbody></table><p>
The <code class="methodname">get_tag_style</code>() method gets the tag associated with the given <em class="parameter"><code>style_name</code></em> in the style scheme.
</p></div><div class="refsect2" title="gtksourceview.SourceStyleScheme.get_name"><a name="method-gtksourcestylescheme--get-name"></a><h3>gtksourceview.SourceStyleScheme.get_name</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_name</span>(<span class="methodparam"></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> the name of the style scheme.</td></tr></tbody></table><p>
The <code class="methodname">get_name</code>() method gets the name of the style scheme.
</p></div><div class="refsect2" title="gtksourceview.SourceStyleScheme.get_style_names"><a name="method-gtksourcestylescheme--get-style-names"></a><h3>gtksourceview.SourceStyleScheme.get_style_names</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_style_names</span>(<span class="methodparam"></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> a list of style names.</td></tr></tbody></table><p>
The <code class="methodname">get_style_names</code>() method gets a list of style names in the given style scheme.
</p></div></div><div class="refsect1" title="Functions"><a name="id2588724"></a><h2>Functions</h2><div class="refsect2" title="gtksourceview.gtk_source_style_scheme_get_default"><a name="function-gtksourcestylescheme--get-default"></a><h3>gtksourceview.gtk_source_style_scheme_get_default</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">gtksourceview.gtk_source_style_scheme_get_default</span>(<span class="methodparam"></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> a <a class="link" href="class-gtksourcestylescheme.html" title="gtksourceview.SourceStyleScheme">gtksourceview.SourceStyleScheme</a></td></tr></tbody></table><p>
The <code class="methodname">gtk_source_style_scheme_get_default</code>() function gets the default style scheme.
</p></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="class-gtksourcemarker.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="gtksourceview-class-reference.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="class-gtksourcetag.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">gtksourceview.SourceMarker </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> gtksourceview.SourceTag</td></tr></table></div></body></html>
|