blingbling.text_box.html 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413
  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 class="$(kind=='Topics' and '' or 'nowrap'">
  30. <li><a href="../modules/blingbling.calendar.html">blingbling.calendar</a></li>
  31. <li><a href="../modules/blingbling.clock.html">blingbling.clock</a></li>
  32. <li><a href="../modules/blingbling.helpers.html">blingbling.helpers</a></li>
  33. <li><a href="../modules/blingbling.linegraph.html">blingbling.linegraph</a></li>
  34. <li><a href="../modules/blingbling.widget.html">blingbling.widget</a></li>
  35. <li><a href="../modules/blingbling.popups.html">blingbling.popups</a></li>
  36. <li><a href="../modules/blingbling.progress_graph.html">blingbling.progress_graph</a></li>
  37. <li><a href="../modules/blingbling.system.html">blingbling.system</a></li>
  38. <li><a href="../modules/blingbling.tagslist.html">blingbling.tagslist</a></li>
  39. <li><a href="../modules/blingbling.task_warrior.html">blingbling.task_warrior</a></li>
  40. <li><strong>blingbling.text_box</strong></li>
  41. <li><a href="../modules/blingbling.transient.html">blingbling.transient</a></li>
  42. <li><a href="../modules/blingbling.triangular_progress_graph.html">blingbling.triangular_progress_graph</a></li>
  43. <li><a href="../modules/blingbling.udisks_glue.html">blingbling.udisks_glue</a></li>
  44. <li><a href="../modules/blingbling.value_text_box.html">blingbling.value_text_box</a></li>
  45. <li><a href="../modules/blingbling.volume.html">blingbling.volume</a></li>
  46. <li><a href="../modules/blingbling.wlourf_circle_graph.html">blingbling.wlourf_circle_graph</a></li>
  47. </ul>
  48. </div>
  49. <div id="content">
  50. <h1>Module <code>blingbling.text_box</code></h1>
  51. <p>A text box.</p>
  52. <p> </p>
  53. <h2><a href="#Functions">Functions</a></h2>
  54. <table class="function_list">
  55. <tr>
  56. <td class="name" nowrap><a href="#set_background_color">set_background_color (t_box, color)</a></td>
  57. <td class="summary">Fill all the widget with this color (default is transparent).</td>
  58. </tr>
  59. <tr>
  60. <td class="name" nowrap><a href="#set_text_background_color">set_text_background_color (color)</a></td>
  61. <td class="summary">Fill the text area (text height/width + padding) background with this color (default is none).</td>
  62. </tr>
  63. <tr>
  64. <td class="name" nowrap><a href="#set_text_background_border">set_text_background_border (color)</a></td>
  65. <td class="summary">Set a border on the text area background (default is none ).</td>
  66. </tr>
  67. <tr>
  68. <td class="name" nowrap><a href="#set_v_margin">set_v_margin (t_box, margin)</a></td>
  69. <td class="summary">Define the top and bottom margin for the text background .</td>
  70. </tr>
  71. <tr>
  72. <td class="name" nowrap><a href="#set_h_margin">set_h_margin (t_box, margin)</a></td>
  73. <td class="summary">Define the left and right margin for the text background.</td>
  74. </tr>
  75. <tr>
  76. <td class="name" nowrap><a href="#set_rounded_size">set_rounded_size (t_box, rounded_size)</a></td>
  77. <td class="summary">Set rounded corners for background and text background.</td>
  78. </tr>
  79. <tr>
  80. <td class="name" nowrap><a href="#set_text_color">set_text_color (t_box, color)</a></td>
  81. <td class="summary">Define the color of the text.</td>
  82. </tr>
  83. <tr>
  84. <td class="name" nowrap><a href="#set_font_size">set_font_size (t_box, size)</a></td>
  85. <td class="summary">Define the text font size.</td>
  86. </tr>
  87. <tr>
  88. <td class="name" nowrap><a href="#set_height">set_height (height)</a></td>
  89. <td class="summary">Set the t_box height.</td>
  90. </tr>
  91. <tr>
  92. <td class="name" nowrap><a href="#set_width">set_width (width)</a></td>
  93. <td class="summary">Set the t_box width.</td>
  94. </tr>
  95. <tr>
  96. <td class="name" nowrap><a href="#new">new (args)</a></td>
  97. <td class="summary">Create a t_box widget.</td>
  98. </tr>
  99. </table>
  100. <br/>
  101. <br/>
  102. <h2><a name="Functions"></a>Functions</h2>
  103. <dl class="function">
  104. <dt>
  105. <a name = "set_background_color"></a>
  106. <strong>set_background_color (t_box, color)</strong>
  107. </dt>
  108. <dd>
  109. Fill all the widget with this color (default is transparent).
  110. <h3>Parameters:</h3>
  111. <ul>
  112. <li><span class="parameter">t_box</span>
  113. the value text box
  114. </li>
  115. <li><span class="parameter">color</span>
  116. a string "#rrggbbaa" or "#rrggbb"
  117. </li>
  118. </ul>
  119. <h3>Usage:</h3>
  120. <ul>
  121. <pre class="example">myt_box:set_background_color(<span class="global">string</span>) --&gt;<span class="string">"#rrggbbaa"</span></pre>
  122. </ul>
  123. </dd>
  124. <dt>
  125. <a name = "set_text_background_color"></a>
  126. <strong>set_text_background_color (color)</strong>
  127. </dt>
  128. <dd>
  129. Fill the text area (text height/width + padding) background with this color (default is none).
  130. <h3>Parameters:</h3>
  131. <ul>
  132. <li><span class="parameter">color</span>
  133. a string "#rrggbbaa" or "#rrggbb"
  134. </li>
  135. </ul>
  136. <h3>Usage:</h3>
  137. <ul>
  138. <pre class="example">myt_box:set_text_background_color(<span class="global">string</span>) --&gt;<span class="string">"#rrggbbaa"</span></pre>
  139. </ul>
  140. </dd>
  141. <dt>
  142. <a name = "set_text_background_border"></a>
  143. <strong>set_text_background_border (color)</strong>
  144. </dt>
  145. <dd>
  146. Set a border on the text area background (default is none ).
  147. <h3>Parameters:</h3>
  148. <ul>
  149. <li><span class="parameter">color</span>
  150. a string "#rrggbbaa" or "#rrggbb"
  151. </li>
  152. </ul>
  153. <h3>Usage:</h3>
  154. <ul>
  155. <pre class="example">myt_box:set_text_background_border(<span class="global">string</span>) --&gt;<span class="string">"#rrggbbaa"</span></pre>
  156. </ul>
  157. </dd>
  158. <dt>
  159. <a name = "set_v_margin"></a>
  160. <strong>set_v_margin (t_box, margin)</strong>
  161. </dt>
  162. <dd>
  163. Define the top and bottom margin for the text background .
  164. <h3>Parameters:</h3>
  165. <ul>
  166. <li><span class="parameter">t_box</span>
  167. the value text box
  168. </li>
  169. <li><span class="parameter">margin</span>
  170. an integer for top and bottom margin
  171. </li>
  172. </ul>
  173. <h3>Usage:</h3>
  174. <ul>
  175. <pre class="example">myt_box:set_v_margin(integer)</pre>
  176. </ul>
  177. </dd>
  178. <dt>
  179. <a name = "set_h_margin"></a>
  180. <strong>set_h_margin (t_box, margin)</strong>
  181. </dt>
  182. <dd>
  183. Define the left and right margin for the text background.
  184. <h3>Parameters:</h3>
  185. <ul>
  186. <li><span class="parameter">t_box</span>
  187. the value text box
  188. </li>
  189. <li><span class="parameter">margin</span>
  190. an integer for left and right margin
  191. </li>
  192. </ul>
  193. <h3>Usage:</h3>
  194. <ul>
  195. <pre class="example">myt_box:set_h_margin(integer)</pre>
  196. </ul>
  197. </dd>
  198. <dt>
  199. <a name = "set_rounded_size"></a>
  200. <strong>set_rounded_size (t_box, rounded_size)</strong>
  201. </dt>
  202. <dd>
  203. Set rounded corners for background and text background.
  204. <h3>Parameters:</h3>
  205. <ul>
  206. <li><span class="parameter">t_box</span>
  207. the value text box
  208. </li>
  209. <li><span class="parameter">rounded_size</span>
  210. float in [0,1] or a table of 4 float for each corners.
  211. </li>
  212. </ul>
  213. <h3>Usage:</h3>
  214. <ul>
  215. <li><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></li>
  216. <li><pre class="example">myt_box:set_rounded_size(b) -&gt; b = { <span class="number">0.2</span>,<span class="number">0.3</span>,<span class="number">0.4</span>,<span class="number">0.7</span>}</pre></li>
  217. </ul>
  218. </dd>
  219. <dt>
  220. <a name = "set_text_color"></a>
  221. <strong>set_text_color (t_box, color)</strong>
  222. </dt>
  223. <dd>
  224. Define the color of the text.
  225. <h3>Parameters:</h3>
  226. <ul>
  227. <li><span class="parameter">t_box</span>
  228. the value text box
  229. </li>
  230. <li><span class="parameter">color</span>
  231. a string "#rrggbb"
  232. </li>
  233. </ul>
  234. <h3>Usage:</h3>
  235. <ul>
  236. <pre class="example">myt_box:set_text_color(<span class="global">string</span>)</pre>
  237. </ul>
  238. </dd>
  239. <dt>
  240. <a name = "set_font_size"></a>
  241. <strong>set_font_size (t_box, size)</strong>
  242. </dt>
  243. <dd>
  244. Define the text font size.
  245. <h3>Parameters:</h3>
  246. <ul>
  247. <li><span class="parameter">t_box</span>
  248. the value text box
  249. </li>
  250. <li><span class="parameter">size</span>
  251. the font size
  252. </li>
  253. </ul>
  254. <h3>Usage:</h3>
  255. <ul>
  256. <pre class="example">myt_box:set_font_size(integer)</pre>
  257. </ul>
  258. </dd>
  259. <dt>
  260. <a name = "set_height"></a>
  261. <strong>set_height (height)</strong>
  262. </dt>
  263. <dd>
  264. Set the t_box height.
  265. <h3>Parameters:</h3>
  266. <ul>
  267. <li><span class="parameter">height</span>
  268. The height to set.
  269. </li>
  270. </ul>
  271. </dd>
  272. <dt>
  273. <a name = "set_width"></a>
  274. <strong>set_width (width)</strong>
  275. </dt>
  276. <dd>
  277. Set the t_box width.
  278. <h3>Parameters:</h3>
  279. <ul>
  280. <li><span class="parameter">width</span>
  281. The width to set.
  282. </li>
  283. </ul>
  284. </dd>
  285. <dt>
  286. <a name = "new"></a>
  287. <strong>new (args)</strong>
  288. </dt>
  289. <dd>
  290. Create a t_box widget.
  291. <h3>Parameters:</h3>
  292. <ul>
  293. <li><span class="parameter">args</span>
  294. Standard widget() arguments. You should add width and height
  295. key to set t_box geometry.
  296. </li>
  297. </ul>
  298. <h3>Returns:</h3>
  299. <ol>
  300. A t_box widget.
  301. </ol>
  302. </dd>
  303. </dl>
  304. </div> <!-- id="content" -->
  305. </div> <!-- id="main" -->
  306. <div id="about">
  307. <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.3</a></i>
  308. <i style="float:right;">Last updated 2015-08-04 10:16:50 </i>
  309. </div> <!-- id="about" -->
  310. </div> <!-- id="container" -->
  311. </body>
  312. </html>