ExMujoco.Types.Section (ExMujoco v0.2.2)

Copy Markdown View Source

mjtSection — UI section state. From MuJoCo's headers, as numbers. All 3 values carry a number in the header.

Summary

Functions

mjSECT_CLOSED is 0 — closed state (regular section).

mjSECT_FIXED is 2 — fixed section: always open, no title.

mjSECT_OPEN is 1 — open state (regular section).

The name behind an integer. An atom is already one.

The integer behind a name. An integer is already one.

Every value, as {name, integer}, in the order the header lists them.

Types

t()

@type t() :: integer()

Functions

closed()

@spec closed() :: 0

mjSECT_CLOSED is 0 — closed state (regular section).

fixed()

@spec fixed() :: 2

mjSECT_FIXED is 2 — fixed section: always open, no title.

open()

@spec open() :: 1

mjSECT_OPEN is 1 — open state (regular section).

to_atom(value)

@spec to_atom(integer() | atom()) :: atom() | nil

The name behind an integer. An atom is already one.

to_integer(value)

@spec to_integer(t() | atom()) :: integer() | nil

The integer behind a name. An integer is already one.

values()

@spec values() :: [{atom(), integer()}]

Every value, as {name, integer}, in the order the header lists them.