Kanzi Engine API
kanzi::GraphicsOutput Class Referenceabstract

GraphicsOutput class. More...

#include <kanzi/core.ui/graphics/graphics_output.hpp>

Inheritance diagram for kanzi::GraphicsOutput:
[legend]

Public Member Functions

unsigned int getHeight () const
 Returns the height of the rendering area. More...
 
enum KzsDisplayOrientationAngle getOrientationAngle () const
 Returns the orientations of the rendering area. More...
 
unsigned int getWidth () const
 Returns the width of the rendering area. More...
 
 GraphicsOutput ()
 Constructor. More...
 
virtual void handleEvents (EventQueue &eventQueue)=0
 Handles appropriate events. More...
 
virtual void present ()=0
 Posts rendering results. More...
 
virtual ~GraphicsOutput ()
 Destructor. More...
 

Protected Member Functions

void updateSize (unsigned int width, unsigned int height)
 Updates the rendering area size. More...
 

Detailed Description

GraphicsOutput class.

Base class for graphics outputs. Allows layouting of contents to a specific width and height.

Constructor & Destructor Documentation

kanzi::GraphicsOutput::GraphicsOutput ( )
explicit

Constructor.

virtual kanzi::GraphicsOutput::~GraphicsOutput ( )
inlinevirtual

Destructor.

Member Function Documentation

virtual void kanzi::GraphicsOutput::present ( )
pure virtual

Posts rendering results.

Implicitly flushes the rendering pipeline and executes all received rendering commands before posting.

Implemented in kanzi::DefaultGlGraphicsOutput, and kanzi::NullGraphicsOutput.

unsigned int kanzi::GraphicsOutput::getWidth ( ) const
inline

Returns the width of the rendering area.

Returns
Rendering area width in pixels.
unsigned int kanzi::GraphicsOutput::getHeight ( ) const
inline

Returns the height of the rendering area.

Returns
Rendering area height in pixels.
enum KzsDisplayOrientationAngle kanzi::GraphicsOutput::getOrientationAngle ( ) const
inline

Returns the orientations of the rendering area.

Returns
Rendering area orientation.
virtual void kanzi::GraphicsOutput::handleEvents ( EventQueue eventQueue)
pure virtual

Handles appropriate events.

Parameters
eventQueueQueue holding the events to handle.

Implemented in kanzi::DefaultGlGraphicsOutput, and kanzi::NullGraphicsOutput.

void kanzi::GraphicsOutput::updateSize ( unsigned int  width,
unsigned int  height 
)
inlineprotected

Updates the rendering area size.


The documentation for this class was generated from the following file: