|
QSDK 1.1 Documentation |
#include <Q/q.h>
Inheritance diagram for Q::StatsLayer:

Public Types | |
| enum | Category { Fps = 0x0001, General = 0x0002, Loading = 0x0004, Memory = 0x0008, Objects = 0x0010, Instances = 0x0020, Draw = 0x0040, Times = 0x0080, Sounds = 0x0100, Clumps = 0x0200 } |
Public Member Functions | |
| StatsLayer () | |
| ~StatsLayer () | |
| unsigned int | categories () const |
| unsigned int | pointSize () const |
| Maths::Color4b | color () const |
| Maths::Color4b | shadowColor () const |
| bool | compactMode () const |
| bool | historyEnabled () const |
| Utils::Result | setCategories (unsigned int) |
| Utils::Result | setPointSize (unsigned int) |
| Utils::Result | setColor (const Maths::Color4b &color) |
| Utils::Result | setShadowColor (const Maths::Color4b &color) |
| Utils::Result | setCompactMode (bool) |
| Utils::Result | setHistoryEnabled (bool) |
| Utils::Result | resetHistory () |
Static Public Member Functions | |
| StatsLayer | create (const Screen &screen, const Font &font, unsigned int pointSize, float margin, const Maths::Vec2f ¢er, const Maths::Vec2f &alignment, const Maths::Color4b &color, const Maths::Color4b &shadowColor, bool isAlwaysTop=false) |
| ClassType | classType () |
| StatsLayer | cast (const ObjectBase &obj) |
A StatsLayer is a layer that displays application statistics. Those statistics are categorized.
|
|
The categories of statistics the StatsLayer displays.
|
|
|
Create a null StatsLayer handle. |
|
|
Destroy the layer, removing it from its parent screen. |
|
|
If the object referenced by |
|
|
Return the display categories. The StatsLayer only displays the statistics associated with the specified categories. |
|
|
Return the type of this class. |
|
|
Return the color of the layer. |
|
|
Indicates whether the display mode is compact or not. If true, only the frame rate is displayed in the top-right corner. If false, all the selected categories are displayed. By default, the compact mode is false. |
|
||||||||||||||||||||||||||||||||||||||||
|
Create a StatsLayer with the given dimensions and position. The specified
|
|
|
Indicates whether historical data (e.g. minimum frame rate, maximum times) is computed or not. Disabling it allows the user to prevent spurious data from adding noise to those figures in some cases. |
|
|
Return the point size of the text. |
|
|
Reset all historical data (e.g. minimum frame rate, maximum times). |
|
|
Set the display categories. The StatsLayer only displays the statistics associated with the specified categories. |
|
|
Set the color of the layer. |
|
|
Set the compact mode. If true, only the frame rate is displayed in the top-right corner. If false, all the selected categories are displayed. By default, the compact mode is false. |
|
|
Indicate whether historical data (e.g. minimum frame rate, maximum times) is computed or not. Disabling it allows the user to prevent spurious data from adding noise to those figures in some cases. |
|
|
Set the point size of the text. |
|
|
Set the dropped shadow color of the layer. |
|
|
Return the dropped shadow color of the layer. |
|
|
|
Qube Software Limited © 2000-2004
|
|