eu.joaocosta.interim.api
Members list
Type members
Classlikes
Object containing the default components.
Object containing the default components.
By convention, all components are functions in the form def component(id, ...params, skin)(area, value): Value
.
The area parameter can be ommited if there's an area allocator in scope.
Attributes
- Companion
- trait
- Supertypes
- Self type
-
Components.type
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object Componentsobject InterIm
Objects containing all default 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, params..., skins...)(panelRect){area => ...}
panelRect = nextRect
Attributes
Object containing the default primitives.
Object containing the default primitives.
By convention, all components are functions in the form def primitive(area, color, params...): Unit
.
The area parameter can be either a Rect
or a LayoutAllocator
.
Attributes
- Companion
- trait
- Supertypes
- Self type
-
Primitives.type
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object Primitivesobject InterIm