|
wavelength 1.0.0
|
Selectable widget, as a mesh and a text with a material and a font for each state. More...
#include <rndbutton.h>


Public Member Functions | |
| RndButton (const char *pszName) | |
| Construct a button in state 0 without targets and with four empty entries in each palette. | |
| ~RndButton () override | |
| Drop the references on the targets and on every palette entry. | |
| void * | operator new (size_t nSize) |
| Allocate a button, billed to the class name. | |
| void | operator delete (void *pBlock) |
| Release a button. | |
| void | DumpText (PrnStream &stream) override |
| Write a description of the button and its base. | |
| void | Save (BinStream &stream) override |
| Write the version, the state, the names of the targets, and the palettes. | |
| void | Replace (RndObject *pFrom, RndObject *pTo) override |
| Replace a target or a palette entry with another object. | |
| const char * | ClassName () const override |
| Report the class name. | |
| void | Copy (const RndObject *pSource, int nFlags) override |
| Copy the state and the palettes of another button. | |
| void | Load (BinStream &stream) override |
| Read what Save() wrote. | |
| Public Member Functions inherited from RndObject | |
| RndObject (const char *pszName) | |
| Construct an object and register it under a name. | |
| virtual | ~RndObject () |
| Notify every referrer, then erase the registration. | |
| void | SetName (const char *pszName) |
| Register the object under a different name. | |
| void | AddRef (RndObject *pReferrer) |
| Register an object as a store of a pointer to this one. | |
| void | RemoveRef (RndObject *pReferrer) |
| Drop the first registration AddRef() made for a referrer. | |
| const char * | GetName () const |
| const std::list< RndObject * > & | GetRefs () const |
| int | GetInternal () const |
| void | SetInternal (int nInternal) |
Static Public Member Functions | |
| static RndObject * | New (const char *pszName) |
| Create a button. | |
Static Public Attributes | |
| static constexpr int | kStateCount = 4 |
| The number of entries each palette starts with. | |
| static const char * | sClassName |
| The class name a .rnd file writes, Button. | |
| static int | sRev |
| The format version Save() writes and Load() accepts. | |
| static int | sLoadRev |
| The version Load() read last. | |
| Static Public Attributes inherited from RndObject | |
| static constexpr int | kCopyChildLists = 0x200 |
| The bit of the Copy() flags that copies the child lists of the mix-ins. | |
Protected Member Functions | |
| void | ReleaseRefs () |
| Drop the references on the targets and on every palette entry. | |
| void | AcquireRefs () |
| Take a reference on the targets and on every palette entry. | |
Additional Inherited Members | |
| Protected Attributes inherited from RndObject | |
| std::list< RndObject * > | mRefs |
| String | mName |
Selectable widget, as a mesh and a text with a material and a font for each state.
The RTTI includes the class name and records RndObject as the one base, non-virtual. The class draws nothing. The front end reads the state and the palettes.
|
explicit |
Construct a button in state 0 without targets and with four empty entries in each palette.
| pszName | The registry key. |
|
override |
Drop the references on the targets and on every palette entry.
|
inline |
Allocate a button, billed to the class name.
| nSize | The object size the compiler supplies. |
|
inline |
Release a button.
| pBlock | The block. |
|
overridevirtual |
Write a description of the button and its base.
| stream | The stream to write to. |
Reimplemented from RndObject.
|
overridevirtual |
Write the version, the state, the names of the targets, and the palettes.
The base writes nothing.
| stream | The stream to write to. |
Implements RndObject.
Replace a target or a palette entry with another object.
A replacement of another class, or null, clears the target or the entry.
| pFrom | The object being replaced. |
| pTo | The replacement, or null. |
Implements RndObject.
|
inlineoverridevirtual |
Report the class name.
Implements RndObject.
|
overridevirtual |
Copy the state and the palettes of another button.
The targets are cleared rather than copied.
| pSource | The button to copy from. |
| nFlags | The set of fields to copy. The routine ignores it. |
Implements RndObject.
|
overridevirtual |
|
inlinestatic |
Create a button.
| pszName | The registry key. |
|
protected |
Drop the references on the targets and on every palette entry.
The name is inferred.
|
protected |
Take a reference on the targets and on every palette entry.
The name is inferred.
|
staticconstexpr |
The number of entries each palette starts with.
|
static |
The class name a .rnd file writes, Button.
|
static |
|
static |
The version Load() read last.