The flex container of Lumen (lumen_view), the panel behind the view and spacer elements. It lays its children out with Lumen.Layout from its resolved style, draws the background and the border the style asks for, and fires the on_press and on_right_press props. Derives from EditablePanel.

Summary

Methods

Measures the size the children need, for a view whose size is auto.
Fires the press handlers of the element.
Draws the background and the border of the style.
Lays the children out as a flex container.

Methods

PANEL:lumen_measure(max_w, max_h)

client packages/lumen/views/cl_view.lua:21

Measures the size the children need, for a view whose size is auto.

Parameters

  • max_w Number width available, nil if unconstrained
  • max_h Number height available, nil if unconstrained

Returns

  • Number width
  • Number height

PANEL:OnMousePressed(code)

client packages/lumen/views/cl_view.lua:36

Fires the press handlers of the element.

Parameters

  • code Number mouse button

PANEL:Paint(w, h)

client packages/lumen/views/cl_view.lua:30

Draws the background and the border of the style.

Parameters

  • w Number panel width
  • h Number panel height

PANEL:PerformLayout(w, h)

client packages/lumen/views/cl_view.lua:11

Lays the children out as a flex container.

Parameters

  • w Number panel width
  • h Number panel height

Defined in