Module wibox.widget.textbox
Info:
- Release: v3.5.1
- Copyright: 2010, 2011 Uli Schlachter, dodo
- Author: Uli Schlachter,dodo
Functions
textbox:draw (wibox, cr, width, height) | Draw the given textbox on the given cairo context in the given geometry |
textbox:fit (width, height) | Fit the given textbox |
textbox:set_markup (text) | Set a textbox' text. |
textbox:set_text (text) | Set a textbox' text. |
textbox:set_ellipsize (mode) | Set a textbox' ellipsize mode. |
textbox:set_wrap (mode) | Set a textbox' wrap mode. |
textbox:set_valign (mode) | Set a textbox' vertical alignment |
textbox:set_align (mode) | Set a textbox' horizontal alignment |
textbox:set_font (font) | Set a textbox' font |
Functions
- textbox:draw (wibox, cr, width, height)
-
Draw the given textbox on the given cairo context in the given geometry
Parameters:
- wibox
- cr
- width
- height
- textbox:fit (width, height)
-
Fit the given textbox
Parameters:
- width
- height
- textbox:set_markup (text)
-
Set a textbox' text.
Parameters:
- text The text to set. This can contain pango markup (e.g. bold)
- textbox:set_text (text)
-
Set a textbox' text.
Parameters:
- text The text to display. Pango markup is ignored and shown as-is.
- textbox:set_ellipsize (mode)
-
Set a textbox' ellipsize mode.
Parameters:
- mode Where should long lines be shortened? "start", "middle" or "end"
- textbox:set_wrap (mode)
-
Set a textbox' wrap mode.
Parameters:
- mode Where to wrap? After "word", "char" or "word_char"
- textbox:set_valign (mode)
-
Set a textbox' vertical alignment
Parameters:
- mode Where should the textbox be drawn? "top", "center" or "bottom"
- textbox:set_align (mode)
-
Set a textbox' horizontal alignment
Parameters:
- mode Where should the textbox be drawn? "left", "center" or "right"
- textbox:set_font (font)
-
Set a textbox' font
Parameters:
- font The font description as string