Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > by-pkgid > 3c9265ee0944a35fbede43df6ed55872 > files > 60

lib64scim-devel-1.4.7-10mdv2008.1.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>scim: scim::Attribute Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.0 -->
<div class="tabs">
  <ul>
    <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="modules.html"><span>Modules</span></a></li>
    <li><a href="namespaces.html"><span>Namespaces</span></a></li>
    <li id="current"><a href="classes.html"><span>Classes</span></a></li>
    <li><a href="files.html"><span>Files</span></a></li>
  </ul></div>
<div class="tabs">
  <ul>
    <li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
    <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
    <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
    <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
  </ul></div>
<div class="nav">
<a class="el" href="a00157.html">scim</a>::<a class="el" href="a00001.html">Attribute</a></div>
<h1>scim::Attribute Class Reference<br>
<small>
[<a class="el" href="a00158.html">Accessories</a>]</small>
</h1><!-- doxytag: class="scim::Attribute" -->Class to store the string attributes.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;scim_attribute.h&gt;</code>
<p>
<a href="a00236.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00001.html#789c1fb1455734a4868a77a849adee90">Attribute</a> (unsigned int start=0, unsigned int length=0, <a class="el" href="a00158.html#gc9561a01d6d8ccee2697d02c223090cb">AttributeType</a> type=SCIM_ATTR_NONE, unsigned int value=0)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor.  <a href="#789c1fb1455734a4868a77a849adee90"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="a00158.html#gc9561a01d6d8ccee2697d02c223090cb">AttributeType</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00001.html#e340bc1160a461d7d6b469ae5805db03">get_type</a> () const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the type of this attribute.  <a href="#e340bc1160a461d7d6b469ae5805db03"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00001.html#3709d8f6250b5904c8d7acd3d7e82434">get_value</a> () const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the value of this attribute.  <a href="#3709d8f6250b5904c8d7acd3d7e82434"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00001.html#fdd2557803ed8a4cae90a93a682e1050">get_start</a> () const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the start position of this attribute.  <a href="#fdd2557803ed8a4cae90a93a682e1050"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00001.html#f6b9de9f753655d5b4a21743a0d32985">get_length</a> () const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the length of this attribute.  <a href="#f6b9de9f753655d5b4a21743a0d32985"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00001.html#5e5eadb1906ff8fc8e8c2e2288d32ad7">get_end</a> () const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the end position of this attribute.  <a href="#5e5eadb1906ff8fc8e8c2e2288d32ad7"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00001.html#9d22b60c5a638c7c7645c19b1297ba81">set_type</a> (<a class="el" href="a00158.html#gc9561a01d6d8ccee2697d02c223090cb">AttributeType</a> type)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the type of this attribute.  <a href="#9d22b60c5a638c7c7645c19b1297ba81"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00001.html#843db3883c46b1cbc1c7d823b401f856">set_value</a> (unsigned int value)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the value of this attribute.  <a href="#843db3883c46b1cbc1c7d823b401f856"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00001.html#d3a5b3646cdd88559eca02fa5c0906c1">set_start</a> (unsigned int start)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the start position of this attribute.  <a href="#d3a5b3646cdd88559eca02fa5c0906c1"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00001.html#4c45eac92d7aca5d5d0e7ae71d6dfa82">set_length</a> (unsigned int length)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the length of this attribute.  <a href="#4c45eac92d7aca5d5d0e7ae71d6dfa82"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Class to store the string attributes. 
<p>
The string attributes control the effect of the string drawn by FrontEnds. There are currently four valid types.<p>
A attribute could be one of the following types:<ul>
<li>SCIM_ATTR_NONE No attribute</li><li>SCIM_ATTR_DECORATE Decorate attribute, eg. underline, highlight etc.</li><li>SCIM_ATTR_FOREGROUND Foreground color attribute, in RGB format.</li><li>SCIM_ATTR_BACKGROUND Background color attribute, in RGB format.</li></ul>
<p>
For a DECORATE attribute, it can be one of the following values:<ul>
<li>SCIM_ATTR_DECORATE_NONE No decorate</li><li>SCIM_ATTR_DECORATE_UNDERLINE Underline</li><li>SCIM_ATTR_DECORATE_HIGHLIGHT Highlight</li><li>SCIM_ATTR_DECORATE_REVERSE Reverse</li></ul>
<p>
For a FOREGROUND or BACKGROUND attribute, it's a RGB color value generated with SCIM_RGB_COLOR (red,green,blue) macro. You may use SCIM_RGB_COLOR_RED, SCIM_RGB_COLOR_GREEN and SCIM_RGB_COLOR_BLUE to extract the RGB color later. 
<p>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="789c1fb1455734a4868a77a849adee90"></a><!-- doxytag: member="scim::Attribute::Attribute" ref="789c1fb1455734a4868a77a849adee90" args="(unsigned int start=0, unsigned int length=0, AttributeType type=SCIM_ATTR_NONE, unsigned int value=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">scim::Attribute::Attribute           </td>
          <td>(</td>
          <td class="paramtype">unsigned int&nbsp;</td>
          <td class="paramname"> <em>start</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&nbsp;</td>
          <td class="paramname"> <em>length</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00158.html#gc9561a01d6d8ccee2697d02c223090cb">AttributeType</a>&nbsp;</td>
          <td class="paramname"> <em>type</em> = <code>SCIM_ATTR_NONE</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&nbsp;</td>
          <td class="paramname"> <em>value</em> = <code>0</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Constructor. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>start</em>&nbsp;</td><td>- the start position in the string of this attribute. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>length</em>&nbsp;</td><td>- the length of this attribute, the range is [start,start+length). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>type</em>&nbsp;</td><td>- the type of this attribute. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>value</em>&nbsp;</td><td>- the value of this attribute. </td></tr>
  </table>
</dl>

</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="e340bc1160a461d7d6b469ae5805db03"></a><!-- doxytag: member="scim::Attribute::get_type" ref="e340bc1160a461d7d6b469ae5805db03" args="() const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00158.html#gc9561a01d6d8ccee2697d02c223090cb">AttributeType</a> scim::Attribute::get_type           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get the type of this attribute. 
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The type of this attribute. </dd></dl>

</div>
</div><p>
<a class="anchor" name="3709d8f6250b5904c8d7acd3d7e82434"></a><!-- doxytag: member="scim::Attribute::get_value" ref="3709d8f6250b5904c8d7acd3d7e82434" args="() const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int scim::Attribute::get_value           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get the value of this attribute. 
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The value of this attribute. </dd></dl>

</div>
</div><p>
<a class="anchor" name="fdd2557803ed8a4cae90a93a682e1050"></a><!-- doxytag: member="scim::Attribute::get_start" ref="fdd2557803ed8a4cae90a93a682e1050" args="() const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int scim::Attribute::get_start           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get the start position of this attribute. 
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The start position of this attribute in the string. </dd></dl>

</div>
</div><p>
<a class="anchor" name="f6b9de9f753655d5b4a21743a0d32985"></a><!-- doxytag: member="scim::Attribute::get_length" ref="f6b9de9f753655d5b4a21743a0d32985" args="() const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int scim::Attribute::get_length           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get the length of this attribute. 
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The length of this attribute in the string. </dd></dl>

</div>
</div><p>
<a class="anchor" name="5e5eadb1906ff8fc8e8c2e2288d32ad7"></a><!-- doxytag: member="scim::Attribute::get_end" ref="5e5eadb1906ff8fc8e8c2e2288d32ad7" args="() const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int scim::Attribute::get_end           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get the end position of this attribute. 
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The end position of this attribute. </dd></dl>

</div>
</div><p>
<a class="anchor" name="9d22b60c5a638c7c7645c19b1297ba81"></a><!-- doxytag: member="scim::Attribute::set_type" ref="9d22b60c5a638c7c7645c19b1297ba81" args="(AttributeType type)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void scim::Attribute::set_type           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00158.html#gc9561a01d6d8ccee2697d02c223090cb">AttributeType</a>&nbsp;</td>
          <td class="paramname"> <em>type</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Set the type of this attribute. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>type</em>&nbsp;</td><td>- the new attribute type to be set. </td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="843db3883c46b1cbc1c7d823b401f856"></a><!-- doxytag: member="scim::Attribute::set_value" ref="843db3883c46b1cbc1c7d823b401f856" args="(unsigned int value)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void scim::Attribute::set_value           </td>
          <td>(</td>
          <td class="paramtype">unsigned int&nbsp;</td>
          <td class="paramname"> <em>value</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Set the value of this attribute. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>value</em>&nbsp;</td><td>- the new attribute value to be set. </td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="d3a5b3646cdd88559eca02fa5c0906c1"></a><!-- doxytag: member="scim::Attribute::set_start" ref="d3a5b3646cdd88559eca02fa5c0906c1" args="(unsigned int start)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void scim::Attribute::set_start           </td>
          <td>(</td>
          <td class="paramtype">unsigned int&nbsp;</td>
          <td class="paramname"> <em>start</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Set the start position of this attribute. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>start</em>&nbsp;</td><td>- the new start position in the string. </td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="4c45eac92d7aca5d5d0e7ae71d6dfa82"></a><!-- doxytag: member="scim::Attribute::set_length" ref="4c45eac92d7aca5d5d0e7ae71d6dfa82" args="(unsigned int length)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void scim::Attribute::set_length           </td>
          <td>(</td>
          <td class="paramtype">unsigned int&nbsp;</td>
          <td class="paramname"> <em>length</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Set the length of this attribute. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>length</em>&nbsp;</td><td>- the new length of this attribute. </td></tr>
  </table>
</dl>

</div>
</div><p>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="a00113.html">scim_attribute.h</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Thu Jun 28 14:12:35 2007 for scim by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.0 </small></address>
</body>
</html>