Module wibox.layout.constraint

Info:

  • Release: v3.5.1
  • Copyright: 2012 Lukáš Hrázký
  • Author: Lukáš Hrázký

Functions

constraint:draw (wibox, cr, width, height) Draw a constraint layout
constraint:fit (width, height) Fit a constraint layout into the given space
constraint:set_widget (widget) Set the widget that this layout adds a constraint on.
constraint:set_strategy (val) Set the strategy to use for the constraining.
constraint:set_width (val) Set the maximum width to val.
constraint:set_height (val) Set the maximum height to val.
constraint:reset () Reset this layout.


Functions

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

Parameters:

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

Parameters:

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

Parameters:

  • widget
constraint:set_strategy (val)
Set the strategy to use for the constraining. Valid values are 'max', 'min' or 'exact'. Throws an error on invalid values.

Parameters:

  • val
constraint:set_width (val)
Set the maximum width to val. nil for no width limit.

Parameters:

  • val
constraint:set_height (val)
Set the maximum height to val. nil for no height limit.

Parameters:

  • val
constraint:reset ()
Reset this layout. The widget will be unreferenced, strategy set to "max" and the constraints set to nil.
generated by LDoc 1.3.13