ExMujoco.Types.Item (ExMujoco v0.2.3)

Copy Markdown View Source

mjtItem — UI item type. From MuJoCo's headers, as numbers. All 17 values carry a number in the header.

Summary

Functions

mjITEM_BUTTON is 2 — button.

mjITEM_CHECKBYTE is 4 — check box, mjtByte value.

mjITEM_CHECKINT is 3 — check box, int value.

mjITEM_EDITFLOAT is 12 — editable array, float values.

mjITEM_EDITINT is 10 — editable array, int values.

mjITEM_EDITNUM is 11 — editable array, mjtNum values.

mjITEM_EDITTXT is 13 — editable text.

mjITEM_END is -2 — end of definition list (not an item).

mjNITEM is 14 — number of item types.

mjITEM_RADIO is 5 — radio group.

mjITEM_RADIOLINE is 6 — radio group, single line.

mjITEM_SECTION is -1 — section (not an item).

mjITEM_SELECT is 7 — selection box.

mjITEM_SEPARATOR is 0 — separator.

mjITEM_SLIDERINT is 8 — slider, int value.

mjITEM_SLIDERNUM is 9 — slider, mjtNum value.

mjITEM_STATIC is 1 — static text.

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

button()

@spec button() :: 2

mjITEM_BUTTON is 2 — button.

checkbyte()

@spec checkbyte() :: 4

mjITEM_CHECKBYTE is 4 — check box, mjtByte value.

checkint()

@spec checkint() :: 3

mjITEM_CHECKINT is 3 — check box, int value.

editfloat()

@spec editfloat() :: 12

mjITEM_EDITFLOAT is 12 — editable array, float values.

editint()

@spec editint() :: 10

mjITEM_EDITINT is 10 — editable array, int values.

editnum()

@spec editnum() :: 11

mjITEM_EDITNUM is 11 — editable array, mjtNum values.

edittxt()

@spec edittxt() :: 13

mjITEM_EDITTXT is 13 — editable text.

end_()

@spec end_() :: -2

mjITEM_END is -2 — end of definition list (not an item).

mjnitem()

@spec mjnitem() :: 14

mjNITEM is 14 — number of item types.

radio()

@spec radio() :: 5

mjITEM_RADIO is 5 — radio group.

radioline()

@spec radioline() :: 6

mjITEM_RADIOLINE is 6 — radio group, single line.

section()

@spec section() :: -1

mjITEM_SECTION is -1 — section (not an item).

select()

@spec select() :: 7

mjITEM_SELECT is 7 — selection box.

separator()

@spec separator() :: 0

mjITEM_SEPARATOR is 0 — separator.

sliderint()

@spec sliderint() :: 8

mjITEM_SLIDERINT is 8 — slider, int value.

slidernum()

@spec slidernum() :: 9

mjITEM_SLIDERNUM is 9 — slider, mjtNum value.

static()

@spec static() :: 1

mjITEM_STATIC is 1 — static text.

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.