text_box.html 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3. <html>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  5. <head>
  6. <title>Reference</title>
  7. <link rel="stylesheet" href="../ldoc.css" type="text/css" />
  8. </head>
  9. <body>
  10. <div id="container">
  11. <div id="product">
  12. <div id="product_logo"></div>
  13. <div id="product_name"><big><b></b></big></div>
  14. <div id="product_description"></div>
  15. </div> <!-- id="product" -->
  16. <div id="main">
  17. <!-- Menu -->
  18. <div id="navigation">
  19. <br/>
  20. <h1>ldoc</h1>
  21. <ul>
  22. <li><a href="../index.html">Index</a></li>
  23. </ul>
  24. <h2>Contents</h2>
  25. <ul>
  26. <li><a href="#Functions">Functions</a></li>
  27. </ul>
  28. <h2>Modules</h2>
  29. <ul>
  30. <li><a href="../modules/blingbling.clock.html">blingbling.clock</a></li>
  31. <li><a href="../modules/blingbling.linegraph.html">blingbling.linegraph</a></li>
  32. <li><a href="../modules/blingbling.popups.html">blingbling.popups</a></li>
  33. <li><a href="../modules/blingbling.system.html">blingbling.system</a></li>
  34. <li><a href="../modules/blingbling.tagslist.html">blingbling.tagslist</a></li>
  35. <li><a href="../modules/blingbling.task_warrior.html">blingbling.task_warrior</a></li>
  36. <li><a href="../modules/blingbling.triangular_progress_graph.html">blingbling.triangular_progress_graph</a></li>
  37. <li><a href="../modules/blingbling.udisks_glue.html">blingbling.udisks_glue</a></li>
  38. <li><a href="../modules/blingbling.volume.html">blingbling.volume</a></li>
  39. <li><a href="../modules/blingbling.widget.html">blingbling.widget</a></li>
  40. <li><a href="../modules/blingbling.wlourf_circle_graph.html">blingbling.wlourf_circle_graph</a></li>
  41. <li><a href="../modules/config_example.japanese2.theme.html">config_example.japanese2.theme</a></li>
  42. <li><a href="../modules/helpers.html">helpers</a></li>
  43. <li><a href="../modules/superproperties.html">superproperties</a></li>
  44. <li><strong>text_box</strong></li>
  45. <li><a href="../modules/value_text_box.html">value_text_box</a></li>
  46. </ul>
  47. </div>
  48. <div id="content">
  49. <h1>Module <code>text_box</code></h1>
  50. <p>A text box</p>
  51. <p></p>
  52. <h2><a href="#Functions">Functions</a></h2>
  53. <table class="function_list">
  54. <tr>
  55. <td class="name" nowrap><a href="#set_background_color">set_background_color&nbsp;(t_box, color)</a></td>
  56. <td class="summary">Fill all the widget with this color (default is transparent).</td>
  57. </tr>
  58. <tr>
  59. <td class="name" nowrap><a href="#set_text_background_color">set_text_background_color&nbsp;(t_box, color)</a></td>
  60. <td class="summary">Fill the text area (text height/width + padding) background with this color (default is none)</td>
  61. </tr>
  62. <tr>
  63. <td class="name" nowrap><a href="#set_text_background_border">set_text_background_border&nbsp;(color)</a></td>
  64. <td class="summary">Set a border on the text area background (default is none )</td>
  65. </tr>
  66. <tr>
  67. <td class="name" nowrap><a href="#set_v_margin">set_v_margin&nbsp;(t_box, margin)</a></td>
  68. <td class="summary">Define the top and bottom margin for the text background</td>
  69. </tr>
  70. <tr>
  71. <td class="name" nowrap><a href="#set_h_margin">set_h_margin&nbsp;(t_box, margin)</a></td>
  72. <td class="summary">Define the left and right margin for the text background</td>
  73. </tr>
  74. <tr>
  75. <td class="name" nowrap><a href="#set_rounded_size">set_rounded_size&nbsp;(t_box, rounded_size)</a></td>
  76. <td class="summary">Set rounded corners for background and text background</td>
  77. </tr>
  78. <tr>
  79. <td class="name" nowrap><a href="#set_text_color">set_text_color&nbsp;(t_box, color)</a></td>
  80. <td class="summary">Define the color of the text</td>
  81. </tr>
  82. <tr>
  83. <td class="name" nowrap><a href="#set_font_size">set_font_size&nbsp;(t_box, size)</a></td>
  84. <td class="summary">Define the text font size</td>
  85. </tr>
  86. <tr>
  87. <td class="name" nowrap><a href="#text_box:set_height">text_box:set_height&nbsp;(height)</a></td>
  88. <td class="summary">Set the t_box height.</td>
  89. </tr>
  90. <tr>
  91. <td class="name" nowrap><a href="#text_box:set_width">text_box:set_width&nbsp;(width)</a></td>
  92. <td class="summary">Set the t_box width.</td>
  93. </tr>
  94. <tr>
  95. <td class="name" nowrap><a href="#new">new&nbsp;(args)</a></td>
  96. <td class="summary">Create a t_box widget.</td>
  97. </tr>
  98. </table>
  99. <br/>
  100. <br/>
  101. <h2><a name="Functions"></a>Functions</h2>
  102. <dl class="function">
  103. <dt>
  104. <a name = "set_background_color"></a>
  105. <strong>set_background_color&nbsp;(t_box, color)</strong>
  106. </dt>
  107. <dd>
  108. Fill all the widget with this color (default is transparent).
  109. <h3>Parameters:</h3>
  110. <ul>
  111. <li><span class="parameter">t_box</span>
  112. the value text box</li>
  113. <li><span class="parameter">color</span>
  114. a string "#rrggbbaa" or "#rrggbb"</li>
  115. </ul>
  116. <h3>Usage:</h3>
  117. <ul>
  118. <pre class="example">myt_box:set_background_color(<span class="global">string</span>) --&gt;<span class="string">"#rrggbbaa"</span></pre>
  119. </ul>
  120. </dd>
  121. <dt>
  122. <a name = "set_text_background_color"></a>
  123. <strong>set_text_background_color&nbsp;(t_box, color)</strong>
  124. </dt>
  125. <dd>
  126. Fill the text area (text height/width + padding) background with this color (default is none)
  127. <h3>Parameters:</h3>
  128. <ul>
  129. <li><span class="parameter">t_box</span>
  130. the t_box</li>
  131. <li><span class="parameter">color</span>
  132. a string "#rrggbbaa" or "#rrggbb"</li>
  133. </ul>
  134. <h3>Usage:</h3>
  135. <ul>
  136. <pre class="example">myt_box:set_text_background_color(<span class="global">string</span>) --&gt;<span class="string">"#rrggbbaa"</span></pre>
  137. </ul>
  138. </dd>
  139. <dt>
  140. <a name = "set_text_background_border"></a>
  141. <strong>set_text_background_border&nbsp;(color)</strong>
  142. </dt>
  143. <dd>
  144. Set a border on the text area background (default is none )
  145. <h3>Parameters:</h3>
  146. <ul>
  147. <li><span class="parameter">color</span>
  148. a string "#rrggbbaa" or "#rrggbb"</li>
  149. </ul>
  150. <h3>Usage:</h3>
  151. <ul>
  152. <pre class="example">myt_box:set_text_background_border(<span class="global">string</span>) --&gt;<span class="string">"#rrggbbaa"</span></pre>
  153. </ul>
  154. </dd>
  155. <dt>
  156. <a name = "set_v_margin"></a>
  157. <strong>set_v_margin&nbsp;(t_box, margin)</strong>
  158. </dt>
  159. <dd>
  160. Define the top and bottom margin for the text background
  161. <h3>Parameters:</h3>
  162. <ul>
  163. <li><span class="parameter">t_box</span>
  164. the value text box</li>
  165. <li><span class="parameter">margin</span>
  166. an integer for top and bottom margin</li>
  167. </ul>
  168. <h3>Usage:</h3>
  169. <ul>
  170. <pre class="example">myt_box:set_v_margin(integer)</pre>
  171. </ul>
  172. </dd>
  173. <dt>
  174. <a name = "set_h_margin"></a>
  175. <strong>set_h_margin&nbsp;(t_box, margin)</strong>
  176. </dt>
  177. <dd>
  178. Define the left and right margin for the text background
  179. <h3>Parameters:</h3>
  180. <ul>
  181. <li><span class="parameter">t_box</span>
  182. the value text box</li>
  183. <li><span class="parameter">margin</span>
  184. an integer for left and right margin</li>
  185. </ul>
  186. <h3>Usage:</h3>
  187. <ul>
  188. <pre class="example">myt_box:set_h_margin(integer)</pre>
  189. </ul>
  190. </dd>
  191. <dt>
  192. <a name = "set_rounded_size"></a>
  193. <strong>set_rounded_size&nbsp;(t_box, rounded_size)</strong>
  194. </dt>
  195. <dd>
  196. Set rounded corners for background and text background
  197. <h3>Parameters:</h3>
  198. <ul>
  199. <li><span class="parameter">t_box</span>
  200. the value text box</li>
  201. <li><span class="parameter">rounded_size</span>
  202. float in [0,1]</li>
  203. </ul>
  204. <h3>Usage:</h3>
  205. <ul>
  206. <pre class="example">myt_box:set_rounded_size(a) -&gt; a <span class="keyword">in</span> [<span class="number">0</span>,<span class="number">1</span>]</pre>
  207. </ul>
  208. </dd>
  209. <dt>
  210. <a name = "set_text_color"></a>
  211. <strong>set_text_color&nbsp;(t_box, color)</strong>
  212. </dt>
  213. <dd>
  214. Define the color of the text
  215. <h3>Parameters:</h3>
  216. <ul>
  217. <li><span class="parameter">t_box</span>
  218. the value text box</li>
  219. <li><span class="parameter">color</span>
  220. a string "#rrggbb"</li>
  221. </ul>
  222. <h3>Usage:</h3>
  223. <ul>
  224. <pre class="example">myt_box:set_text_color(<span class="global">string</span>)</pre>
  225. </ul>
  226. </dd>
  227. <dt>
  228. <a name = "set_font_size"></a>
  229. <strong>set_font_size&nbsp;(t_box, size)</strong>
  230. </dt>
  231. <dd>
  232. Define the text font size
  233. <h3>Parameters:</h3>
  234. <ul>
  235. <li><span class="parameter">t_box</span>
  236. the value text box</li>
  237. <li><span class="parameter">size</span>
  238. the font size</li>
  239. </ul>
  240. <h3>Usage:</h3>
  241. <ul>
  242. <pre class="example">myt_box:set_font_size(integer)</pre>
  243. </ul>
  244. </dd>
  245. <dt>
  246. <a name = "text_box:set_height"></a>
  247. <strong>text_box:set_height&nbsp;(height)</strong>
  248. </dt>
  249. <dd>
  250. Set the t_box height.
  251. <h3>Parameters:</h3>
  252. <ul>
  253. <li><span class="parameter">height</span>
  254. The height to set.</li>
  255. </ul>
  256. </dd>
  257. <dt>
  258. <a name = "text_box:set_width"></a>
  259. <strong>text_box:set_width&nbsp;(width)</strong>
  260. </dt>
  261. <dd>
  262. Set the t_box width.
  263. <h3>Parameters:</h3>
  264. <ul>
  265. <li><span class="parameter">width</span>
  266. The width to set.</li>
  267. </ul>
  268. </dd>
  269. <dt>
  270. <a name = "new"></a>
  271. <strong>new&nbsp;(args)</strong>
  272. </dt>
  273. <dd>
  274. Create a t_box widget.
  275. <h3>Parameters:</h3>
  276. <ul>
  277. <li><span class="parameter">args</span>
  278. Standard widget() arguments. You should add width and height
  279. key to set t_box geometry.</li>
  280. </ul>
  281. <h3>Returns:</h3>
  282. <ol>
  283. A t_box widget.
  284. </ol>
  285. </dd>
  286. </dl>
  287. </div> <!-- id="content" -->
  288. </div> <!-- id="main" -->
  289. <div id="about">
  290. <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.3.12</a></i>
  291. </div> <!-- id="about" -->
  292. </div> <!-- id="container" -->
  293. </body>
  294. </html>