Classes |
Public Types |
Public Member Functions |
Protected Member Functions |
Protected Attributes |
Friends |
List of all members
Graphics::Control Class Referenceabstract
Basic interactive button on screen. More...
#include <Control.h>
Inheritance diagram for Graphics::Control:
Collaboration diagram for Graphics::Control:
Classes | |
class | List |
Public Types | |
enum class | Flag { enabled , active , selected , dirty } |
enum class | Element { border , back , text } |
![]() | |
enum class | Kind { XX } |
using | List = LinkedObjectListTemplate< Object > |
using | OwnedList = OwnedLinkedObjectListTemplate< Object > |
![]() | |
using | Iterator = IteratorTemplate< Object, Object *, Object & > |
using | ConstIterator = IteratorTemplate< const Object, const Object *, const Object & > |
Public Member Functions | |
Control () | |
Control (const Rect &bounds) | |
Control (const Rect &bounds, const String &caption) | |
Renderer * | createRenderer (const Location &location) const override |
Create a software renderer for this object. More... | |
virtual void | draw (SceneObject &scene) const =0 |
void | write (MetaWriter &meta) const override |
String | getCaption () const |
void | setCaption (const String &value) |
void | enable (bool state) |
void | select (bool state) |
void | setPos (Point pos) |
void | resize (Size size) |
void | setBounds (const Rect &r) |
Rect | getBounds () const |
bool | isEnabled () const |
bool | isSelected () const |
bool | isDirty () const |
void | setDirty () |
virtual const Font * | getFont () const |
virtual Color | getColor (Element element) const |
virtual Align | getTextAlign () const |
![]() | |
Kind | kind () const override |
![]() | |
bool | operator== (const Object &other) const |
virtual String | getTypeStr () const |
![]() | |
Object * | getNext () const |
bool | insertAfter (Object *object) |
Iterator | begin () const |
Iterator | end () const |
Iterator | cbegin () const |
Iterator | cend () const |
![]() | |
virtual | ~LinkedObject () |
virtual LinkedObject * | next () const |
bool | insertAfter (LinkedObject *object) |
bool | operator== (const LinkedObject &other) const |
bool | operator!= (const LinkedObject &other) const |
Protected Member Functions | |
void | setFlag (Flag flag, bool state) |
Protected Attributes | |
Rect | bounds |
CString | caption |
BitSet< uint8_t, Flag > | flags |
Friends | |
class | Screen |
Detailed Description
Basic interactive button on screen.
Responsible for drawing area within designated rectangle
Member Enumeration Documentation
◆ Element
|
strong |
◆ Flag
|
strong |
Constructor & Destructor Documentation
◆ Control() [1/3]
|
inline |
◆ Control() [2/3]
|
inline |
◆ Control() [3/3]
Member Function Documentation
◆ createRenderer()
Create a software renderer for this object.
- Parameters
-
location
- Return values
-
renderer Returned renderer object
Return nullptr if object cannot/should not be rendered
Implements Graphics::Object.
◆ draw()
|
pure virtual |
Implemented in Graphics::TimeClock, Graphics::Label, and Graphics::Button.
◆ enable()
|
inline |
◆ getBounds()
|
inline |
◆ getCaption()
|
inline |
◆ getColor()
Reimplemented in Graphics::Label.
◆ getFont()
|
inlinevirtual |
◆ getTextAlign()
|
inlinevirtual |
◆ isDirty()
|
inline |
◆ isEnabled()
|
inline |
◆ isSelected()
|
inline |
◆ resize()
|
inline |
◆ select()
|
inline |
◆ setBounds()
|
inline |
◆ setCaption()
|
inline |
◆ setDirty()
|
inline |
◆ setFlag()
|
inlineprotected |
◆ setPos()
|
inline |
◆ write()
|
inlineoverridevirtual |
Implements Graphics::Object.
Friends And Related Function Documentation
◆ Screen
|
friend |
Member Data Documentation
◆ bounds
|
protected |
◆ caption
|
protected |
◆ flags
The documentation for this class was generated from the following file: