panda3d.core.ConfigVariableInt

from panda3d.core import ConfigVariableInt
class ConfigVariableInt

Bases: ConfigVariable

This is a convenience class to specialize ConfigVariable as an integer type.

Inheritance diagram

Inheritance diagram of ConfigVariableInt

__init__(param0: ConfigVariableInt) → None
__init__(name: str) → None
__init__(name: str, default_value: int, description: str, flags: int) → None
__init__(name: str, default_value: str, description: str, flags: int) → None
assign(value: int) → ConfigVariableInt
Return type

ConfigVariableInt

size() → size_t

Returns the number of unique words in the variable.

Return type

size_t

setValue(value: int) → None

Reassigns the variable’s local value.

getValue() → int

Returns the variable’s value.

getDefaultValue() → int

Returns the variable’s default value.

getWord(n: size_t) → int

Returns the variable’s nth value.

setWord(n: size_t, value: int) → None

Reassigns the variable’s nth value. This makes a local copy of the variable’s overall value.

property value
Getter

Returns the variable’s value.

Setter

Reassigns the variable’s local value.

Return type

int

property default_value

Returns the variable’s default value.

Return type

int