Duckcpp 2.1.0
Duckcpp is a high-performance c++ graphics engine.
Loading...
Searching...
No Matches
IGUIProfiler.hpp
1// This file is part of the "Irrlicht Engine".
2// For conditions of distribution and use, see copyright notice in duckcpp/duckcpp.hpp
3// Written by Michael Zeilfelder
4
5#ifndef DCPP_I_GUI_PROFILER_HPP_INCLUDED
6#define DCPP_I_GUI_PROFILER_HPP_INCLUDED
7
8#include <duckcpp/core/engine/IGUIElement.hpp>
9
10namespace dcpp
11{
12class IProfiler;
13
14namespace gui
15{
16 class IGUIFont;
17
20 {
21 public:
23
24 IGUIProfiler(IGUIEnvironment* environment, IGUIElement* parent, i32 id, nub::rect<i32> rectangle, IProfiler* profiler = NULL)
25 : IGUIElement(EGUIET_PROFILER, environment, parent, id, rectangle)
26 {}
27
29
30 virtual void firstPage(bool includeOverview=true) = 0;
31
33
34 virtual void nextPage(bool includeOverview=true) = 0;
35
37
38 virtual void previousPage(bool includeOverview=true) = 0;
39
41
42 virtual void setShowGroupsTogether(bool groupsTogether) = 0;
43
45 virtual bool getShowGroupsTogether() const = 0;
46
48
50 virtual void setOverrideFont(IGUIFont* font=0) = 0;
51
53
54 virtual IGUIFont* getOverrideFont(void) const = 0;
55
57
59 virtual IGUIFont* getActiveFont() const = 0;
60
62 virtual void setDrawBackground(bool draw) = 0;
63
65
66 virtual bool isDrawBackgroundEnabled() const = 0;
67
69
70 virtual void setFrozen(bool freeze) = 0;
71
73 virtual bool getFrozen() const = 0;
74
76 virtual void setFilters(dcpp::u32 minCalls = 0, dcpp::u32 minTimeSum = 0, dcpp::f32 minTimeAverage = 0.f, dcpp::u32 minTimeMax = 0) = 0;
77 };
78
79} // end namespace gui
80} // end namespace dcpp
81
82#endif
Code-profiler. Please check the example in the Duckcpp examples folder about how to use it.
Definition IProfiler.hpp:105
Base class of all GUI elements.
Definition IGUIElement.hpp:24
virtual void draw()
Draws the element and its children.
Definition IGUIElement.hpp:331
GUI Environment. Used as factory and manager of all other GUI elements.
Definition IGUIEnvironment.hpp:73
Font interface.
Definition IGUIFont.hpp:40
Element to display profiler information.
Definition IGUIProfiler.hpp:20
virtual void setDrawBackground(bool draw)=0
Sets whether to draw the background. By default disabled,.
virtual IGUIFont * getOverrideFont(void) const =0
Gets the override font (if any)
virtual void setOverrideFont(IGUIFont *font=0)=0
Sets another skin independent font.
virtual bool getShowGroupsTogether() const =0
Can several groups be displayed per page?
virtual bool isDrawBackgroundEnabled() const =0
Checks if background drawing is enabled.
virtual IGUIFont * getActiveFont() const =0
Get the font which is used right now for drawing.
virtual void setFilters(dcpp::u32 minCalls=0, dcpp::u32 minTimeSum=0, dcpp::f32 minTimeAverage=0.f, dcpp::u32 minTimeMax=0)=0
Filters prevents data that doesn't achieve the conditions from being displayed.
virtual bool getFrozen() const =0
Are updates currently frozen.
virtual void setFrozen(bool freeze)=0
Allows to freeze updates which makes it easier to read the numbers.
virtual void previousPage(bool includeOverview=true)=0
Show previous page of profile data.
virtual void setShowGroupsTogether(bool groupsTogether)=0
Try to show as many group-pages together as possible instead of showing at most one group per page.
virtual void firstPage(bool includeOverview=true)=0
Show first page of profile data.
IGUIProfiler(IGUIEnvironment *environment, IGUIElement *parent, i32 id, nub::rect< i32 > rectangle, IProfiler *profiler=NULL)
constructor
Definition IGUIProfiler.hpp:24
virtual void nextPage(bool includeOverview=true)=0
Show next page of profile data.
Axis aligned bounding box in 3d dimensional space.
Definition aabbox3d.hpp:22
@ EGUIET_PROFILER
IGUIProfiler.
Definition EGUIElementTypes.hpp:95
As of Duckcpp 1.6, position2d is a synonym for vector2d.
Definition vector3d.hpp:11
signed int i32
32 bit signed variable.
Definition irrTypes.hpp:72
float f32
32 bit floating point variable.
Definition irrTypes.hpp:110
unsigned int u32
32 bit unsigned variable.
Definition irrTypes.hpp:64

Duckcpp    @cppfx.xyz