Class wibox.container.margin

Info:

  • Copyright: 2010 Uli Schlachter
  • Author: Uli Schlachter

Functions

margin:reset () Reset this layout.
wibox.container.margin ([widget[, left[, right[, top[, bottom[, color[, draw_empty]]]]]]]) Returns a new margin container.

Object properties

wibox.container.margin.widget The widget to be wrapped the the margins.
wibox.container.margin.margins Set all the margins to val.
wibox.container.margin.color Set the margins color to create a border.
wibox.container.margin.left Set the left margin that this layout adds to its widget.
wibox.container.margin.right Set the right margin that this layout adds to its widget.
wibox.container.margin.top Set the top margin that this layout adds to its widget.
wibox.container.margin.bottom Set the bottom margin that this layout adds to its widget.

Methods

wibox.container.margin:draw_empty (draw_empty) Draw the margin even if the content size is 0x0 (default: true)


Functions

margin:reset ()
Reset this layout. The widget will be unreferenced, the margins set to 0 and the color erased
wibox.container.margin ([widget[, left[, right[, top[, bottom[, color[, draw_empty]]]]]]])
Returns a new margin container.
  • widget A widget to use.
  • left A margin to use on the left side of the widget.
  • right A margin to use on the right side of the widget.
  • top A margin to use on the top side of the widget.
  • bottom A margin to use on the bottom side of the widget.
  • color A color for the margins.
  • draw_empty whether or not to draw the margin when the content is empty

Returns:

    table A new margin container

Object properties

wibox.container.margin.widget
The widget to be wrapped the the margins.

Type:

wibox.container.margin.margins
Set all the margins to val.

Type:

  • val number The margin value
wibox.container.margin.color
Set the margins color to create a border.

Type:

  • color A color used to fill the margin.
wibox.container.margin.left
Set the left margin that this layout adds to its widget.

Type:

  • margin The new margin to use.
wibox.container.margin.right
Set the right margin that this layout adds to its widget.

Type:

  • margin The new margin to use.
wibox.container.margin.top
Set the top margin that this layout adds to its widget.

Type:

  • margin The new margin to use.
wibox.container.margin.bottom
Set the bottom margin that this layout adds to its widget.

Type:

  • margin The new margin to use.

Methods

wibox.container.margin:draw_empty (draw_empty)
Draw the margin even if the content size is 0x0 (default: true)
  • draw_empty boolean Draw nothing is content is 0x0 or draw the margin anyway
generated by LDoc 1.4.2