Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > e3918135d52936bad0ecc8654eedea12 > files > 344

Falcon-doc-0.9.6.8-1.fc15.noarch.rpm

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html
     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" >
<head><meta content="text/html;charset=&amp;quot;utf-8&amp;quot;" http-equiv="Content-type"/><link href="faldoc.css" rel="stylesheet" type="text/css"/><title> - Class GtkTextTag</title></head><body class="faldoc"><ul class="navi_top"><li class="top"><a href="index.html">Top: Table of contents</a></li>
         <li class="up"><a href="gtk.html">Up: The Falcon GTK Binding module</a></li>
         <li class="prev"><a href="gtk_GtkTextMark.html">Previous: Class GtkTextMark</a></li>
         <li class="next"><a href="gtk_GtkTextTagTable.html">Next: Class GtkTextTagTable</a></li>
         <li class="clear"></li>
         </ul><div id="page_body"><h1><span class="toc_number">10.117</span>Class GtkTextTag</h1><p class="brief">A tag that can be applied to text in a GtkTextBuffer </p>
         <pre class="prototype">Class GtkTextTag( [name] )</pre>
         <table class="prototype">
         <tbody><tr class="optparam"><td class="name">name</td><td class="content"> tag name </td></tr>
               </tbody>
            </table>
         <p>You may wish to begin by reading the text widget conceptual overview which gives an overview of all the objects and data types related to the text widget and how they work together. </p>
<p>Tags should be in the GtkTextTagTable for a given GtkTextBuffer before using them with that buffer. </p>
<p>gtk_text_buffer_create_tag() is the best way to create tags. See gtk-demo for numerous examples. </p>
<table class="members">
         <tbody><tr class="member_type"><td class="member_type" colspan="2">Methods</td></tr>
               <tr><td><a href="#get_priority">get_priority</a></td><td>Get the tag priority. </td></tr>
               <tr><td><a href="#set_priority">set_priority</a></td><td>Sets the priority of a GtkTextTag. </td></tr>
               </tbody>
            </table>
         <h2>Methods</h2><h3><a name="get_priority">get_priority</a></h3><p class="brief">Get the tag priority. </p>
         <pre class="prototype">GtkTextTag.get_priority()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">The tag's priority. </td></tr>
               </tbody>
            </table>
         <h3><a name="set_priority">set_priority</a></h3><p class="brief">Sets the priority of a GtkTextTag. </p>
         <pre class="prototype">GtkTextTag.set_priority( priority )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">priority</td><td class="content"> the new priority </td></tr>
               </tbody>
            </table>
         <p>Valid priorities are start at 0 and go to one less than gtk_text_tag_table_get_size(). Each tag in a table has a unique priority; setting the priority of one tag shifts the priorities of all the other tags in the table to maintain a unique priority for each tag. Higher priority tags "win" if two tags both set the same text attribute. When adding a tag to a tag table, it will be assigned the highest priority in the table by default; so normally the precedence of a set of tags is the order in which they were added to the table, or created with gtk_text_buffer_create_tag(), which adds the tag to the buffer's table automatically. </p>
</div><ul class="navi_bottom"><li class="top"><a href="index.html">Top: Table of contents</a></li>
         <li class="up"><a href="gtk.html">Up: The Falcon GTK Binding module</a></li>
         <li class="prev"><a href="gtk_GtkTextMark.html">Previous: Class GtkTextMark</a></li>
         <li class="next"><a href="gtk_GtkTextTagTable.html">Next: Class GtkTextTagTable</a></li>
         <li class="clear"></li>
         </ul><div class="signature">Made with <a href="faldoc 3.0">http://www.falconpl.org</a></div></body></html>