Panels

eu.joaocosta.interim.api.Panels$
See thePanels companion trait
object Panels extends Panels

Objects containing all default panels.

Panels are a mix of a component and a layout. They perform rendering operations, but also provide a draw area.

By convention, all panels are of the form def panel(id, area, params..., skin)(body): (Option[Value], PanelState[Rect]). The returned value is the value returned by the body. Panels also return a rect, which is the area the panel must be called with in the next frame (e.g. for movable panels).

As such, panels should be called like:

val (value, nextRect) = panel(id, panelRect, ...) {area => ...}
panelRect = nextRect

Attributes

Companion
trait
Graph
Supertypes
trait Panels
class Object
trait Matchable
class Any
Self type
Panels.type

Members list

Value members

Inherited methods

final def window[T](id: ItemId, area: Rect | PanelState[Rect] | Ref[PanelState[Rect]], title: String, closable: Boolean, movable: Boolean, skin: WindowSkin, handleSkin: HandleSkin)(body: Rect => T): () ?=> (Option[T], PanelState[Rect])

Window with a title.

Window with a title.

Value parameters

closable

if true, the window will include a closable handle in the title bar

movable

if true, the window will include a move handle in the title bar

title

of this window

Attributes

Inherited from:
Panels