|
Panda3D
|
The ButtonRegistry class maintains all the assigned ButtonHandles in a given system. More...
Public Member Functions | |
| ButtonHandle | findAsciiButton (char ascii_equivalent) |
| Finds a ButtonHandle in the registry matching the indicated ASCII equivalent character. | |
| ButtonHandle | getButton (string 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.
| 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 getButton | ( | string | 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 ButtonRegistry ptr | ( | ) | [static] |
Returns the pointer to the global ButtonRegistry object.
| write | ( | ostream | out | ) |
1.7.3