Module wibox.layout.margin

Info:

  • Author: Uli Schlachter
  • Copyright: 2010 Uli Schlachter
  • Release: v3.5.1

Functions

margin:draw (wibox, cr, width, height) Draw a margin layout
margin:fit (width, height) Fit a margin layout into the given space
margin:set_widget (widget) Set the widget that this layout adds a margin on.
margin:set_margins (val) Set all the margins to val.
margin:reset () Reset this layout.
set_left (layout, margin) Set the left margin that this layout adds to its widget.
set_right (layout, margin) Set the right margin that this layout adds to its widget.
set_top (layout, margin) Set the top margin that this layout adds to its widget.
set_bottom (layout, margin) Set the bottom margin that this layout adds to its widget.


Functions

margin:draw (wibox, cr, width, height)
Draw a margin layout

Parameters:

  • wibox
  • cr
  • width
  • height
margin:fit (width, height)
Fit a margin layout into the given space

Parameters:

  • width
  • height
margin:set_widget (widget)
Set the widget that this layout adds a margin on.

Parameters:

  • widget
margin:set_margins (val)
Set all the margins to val.

Parameters:

  • val
margin:reset ()
Reset this layout. The widget will be unreferenced and the margins set to 0.
set_left (layout, margin)
Set the left margin that this layout adds to its widget.

Parameters:

  • layout The layout you are modifying.
  • margin The new margin to use.
set_right (layout, margin)
Set the right margin that this layout adds to its widget.

Parameters:

  • layout The layout you are modifying.
  • margin The new margin to use.
set_top (layout, margin)
Set the top margin that this layout adds to its widget.

Parameters:

  • layout The layout you are modifying.
  • margin The new margin to use.
set_bottom (layout, margin)
Set the bottom margin that this layout adds to its widget.

Parameters:

  • layout The layout you are modifying.
  • margin The new margin to use.
generated by LDoc 1.3.13