ButtonRegistry
from panda3d.core import ButtonRegistry
- class ButtonRegistry
Bases:
DTOOL_SUPER_BASE
The ButtonRegistry class maintains all the assigned ButtonHandles in a given system. There should be only one ButtonRegistry class during the lifetime of the application.
Inheritance diagram
- __init__(*args, **kwargs)
- findAsciiButton()
C++ Interface: find_ascii_button(ButtonRegistry self, char ascii_equivalent)
- /**
Finds a ButtonHandle in the registry matching the indicated ASCII
equivalent character. If there is no such ButtonHandle, returns
ButtonHandle::none().
*/
- findButton()
C++ Interface: find_button(const ButtonRegistry self, str name)
- /**
Finds a ButtonHandle in the registry matching the indicated name. If there
is no such ButtonHandle, returns ButtonHandle::none().
*/
- find_ascii_button()
C++ Interface: find_ascii_button(ButtonRegistry self, char ascii_equivalent)
- /**
Finds a ButtonHandle in the registry matching the indicated ASCII
equivalent character. If there is no such ButtonHandle, returns
ButtonHandle::none().
*/
- find_button()
C++ Interface: find_button(const ButtonRegistry self, str name)
- /**
Finds a ButtonHandle in the registry matching the indicated name. If there
is no such ButtonHandle, returns ButtonHandle::none().
*/
- getButton()
C++ Interface: get_button(const ButtonRegistry self, str name)
- /**
Finds a ButtonHandle in the registry matching the indicated name. If there
is no such ButtonHandle, registers a new one and returns it.
*/
- get_button()
C++ Interface: get_button(const ButtonRegistry self, str name)
- /**
Finds a ButtonHandle in the registry matching the indicated name. If there
is no such ButtonHandle, registers a new one and returns it.
*/