File: classWt_1_1WCssTextRule.html

package info (click to toggle)
witty 3.1.2-3
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 45,512 kB
  • ctags: 35,832
  • sloc: cpp: 69,469; ansic: 66,945; xml: 4,383; sh: 594; perl: 108; makefile: 106
file content (91 lines) | stat: -rw-r--r-- 5,513 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<!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>Wt: Wt::WCssTextRule Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.6 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <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="navpath"><a class="el" href="namespaceWt.html">Wt</a>::<a class="el" href="classWt_1_1WCssTextRule.html">WCssTextRule</a>
  </div>
</div>
<div class="contents">
<h1>Wt::WCssTextRule Class Reference<br>
<small>
[<a class="el" href="group__style.html">Style classes</a>]</small>
</h1><!-- doxytag: class="Wt::WCssTextRule" --><!-- doxytag: inherits="Wt::WCssRule" -->A CSS rule specified directly using CSS declarations.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;Wt/WCssStyleSheet&gt;</code>
<p>
<div class="dynheader">
Inheritance diagram for Wt::WCssTextRule:</div>
<div class="dynsection">
<p><center><img src="classWt_1_1WCssTextRule__inherit__graph.png" border="0" usemap="#Wt_1_1WCssTextRule__inherit__map" alt="Inheritance graph"></center>
<map name="Wt_1_1WCssTextRule__inherit__map">
<area shape="rect" href="classWt_1_1WCssRule.html" title="Abstract rule in a CSS style sheet." alt="" coords="17,5,124,32"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>

<p>
<a href="classWt_1_1WCssTextRule-members.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"><a class="anchor" name="437f6c4f45fd1388728ed37d6aa214c4"></a><!-- doxytag: member="Wt::WCssTextRule::WCssTextRule" ref="437f6c4f45fd1388728ed37d6aa214c4" args="(const std::string &amp;selector, const WString &amp;declarations)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WCssTextRule.html#437f6c4f45fd1388728ed37d6aa214c4">WCssTextRule</a> (const std::string &amp;selector, const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;declarations)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates a CSS rule with a given selector and declarations. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const std::string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WCssTextRule.html#5950660406de9b1e3d17082116718649">declarations</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the declarations.  <a href="#5950660406de9b1e3d17082116718649"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A CSS rule specified directly using CSS declarations. 
<p>
Usage example: <div class="fragment"><pre class="fragment"> <a class="code" href="classWt_1_1WCssTextRule.html" title="A CSS rule specified directly using CSS declarations.">Wt::WCssTextRule</a> *styleRule = <span class="keyword">new</span> <a class="code" href="classWt_1_1WCssTextRule.html" title="A CSS rule specified directly using CSS declarations.">Wt::WCssTextRule</a>(<span class="stringliteral">".MyWidget .item"</span>, <span class="stringliteral">"width: 100px; cursor: pointer;"</span>);
 <a class="code" href="classWt_1_1WApplication.html#38d922da0a0d83395519f3eaab85d0f6" title="Returns the current application instance.">Wt::WApplication::instance</a>()-&gt;styleSheet().addRule(styleRule);
</pre></div><p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WCssStyleSheet.html" title="A CSS style sheet.">WCssStyleSheet</a> </dd></dl>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="5950660406de9b1e3d17082116718649"></a><!-- doxytag: member="Wt::WCssTextRule::declarations" ref="5950660406de9b1e3d17082116718649" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const std::string Wt::WCssTextRule::declarations           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the declarations. 
<p>
This is a semi-colon separated list of CSS declarations. 
<p>Implements <a class="el" href="classWt_1_1WCssRule.html#be99bca6582d1ec43b7135f3a28956b4">Wt::WCssRule</a>.</p>

</div>
</div><p>
</div>
<hr size="1"><address style="align: right;"><small>
Generated on Fri Mar 26 17:12:06 2010 for <a href="http://www.webtoolkit.eu/wt/">Wt</a> by&nbsp;<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6</small></address>
</body>
</html>