eu.joaocosta.interim.api

Members list

Type members

Classlikes

object Components extends Components

Object containing the default components.

Object containing the default components.

By convention, all components are functions in the form def component(id, area, ...params, skin)(value): Value.

Attributes

Companion
trait
Supertypes
trait Components
class Object
trait Matchable
class Any
Self type
Components.type
trait Components

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Components.type
object InterIm.type
object Constants extends Constants

Object containing some aliases for some constants.

Object containing some aliases for some constants.

Attributes

Companion
trait
Supertypes
trait Constants
class Object
trait Matchable
class Any
Self type
Constants.type
trait Constants

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Constants.type
object InterIm.type
object Layouts extends Layouts

Objects containing all default layouts.

Objects containing all default layouts.

By convention, all layouts are of the form def layout(area, params...)(body): Value.

Attributes

Companion
trait
Supertypes
trait Layouts
class Object
trait Matchable
class Any
Self type
Layouts.type
trait Layouts

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Layouts.type
object InterIm.type
object Panels extends Panels

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, panelRect, ...) {area => ...}
panelRect = nextRect

Attributes

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

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Panels.type
object InterIm.type
object Primitives extends Primitives

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.

Attributes

Companion
trait
Supertypes
trait Primitives
class Object
trait Matchable
class Any
Self type
Primitives.type
trait Primitives

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Primitives.type
object InterIm.type