Panda3D
|
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. More...
Public Member Functions | |
ButtonHandle | findAsciiButton (char ascii_equivalent) |
Finds a ButtonHandle in the registry matching the indicated ASCII equivalent character. If there is no such ButtonHandle, returns ButtonHandle::none(). More... | |
ButtonHandle | findButton (str name) |
Finds a ButtonHandle in the registry matching the indicated name. If there is no such ButtonHandle, returns ButtonHandle::none(). More... | |
ButtonHandle | getButton (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. More... | |
write (Ostream out) | |
Static Public Member Functions | |
static ButtonRegistry | ptr () |
Returns the pointer to the global ButtonRegistry object. More... | |
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.
ButtonHandle findAsciiButton | ( | char | ascii_equivalent | ) |
Finds a ButtonHandle in the registry matching the indicated ASCII equivalent character. If there is no such ButtonHandle, returns ButtonHandle::none().
ButtonHandle findButton | ( | str | name | ) |
Finds a ButtonHandle in the registry matching the indicated name. If there is no such ButtonHandle, returns ButtonHandle::none().
ButtonHandle getButton | ( | 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.
|
static |
Returns the pointer to the global ButtonRegistry object.
write | ( | Ostream | out | ) |