Panda3D
|
The ButtonRegistry class maintains all the assigned ButtonHandles in a given system. More...
#include <pandadoc.hpp>
Public Member Functions | |
__init__ (const ButtonRegistry) | |
ButtonHandle | findAsciiButton (char ascii_equivalent) |
Finds a ButtonHandle in the registry matching the indicated ASCII equivalent character. | |
ButtonHandle | findButton (str name) |
Finds a ButtonHandle in the registry matching the indicated name. | |
ButtonHandle | getButton (str name) |
Finds a ButtonHandle in the registry matching the indicated name. | |
write (Ostream out) | |
Static Public Member Functions | |
static ButtonRegistry | ptr () |
Returns the pointer to the global ButtonRegistry object. | |
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.
__init__ | ( | const ButtonRegistry | ) |
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 | ) |