kanzi::GraphicsOutput Class Referenceabstract

GraphicsOutput class. More...

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

Inheritance diagram for kanzi::GraphicsOutput:
kanzi::GlGraphicsOutput kanzi::NullGraphicsOutput

Public Member Functions

 GraphicsOutput ()
 Constructor. More...
 
virtual ~GraphicsOutput ()
 Destructor. More...
 
virtual void present ()=0
 Posts rendering results. More...
 
unsigned int getWidth () const
 Returns the width of rendering area in pixels. More...
 
unsigned int getHeight () const
 Returns the height of rendering area in pixels. More...
 
enum KzsDisplayOrientationAngle getOrientationAngle () const
 Returns the orientations of the rendering area. More...
 
void resize (unsigned int width, unsigned int height)
 Resizes the rendering area. More...
 
virtual void handleEvents (const struct KzsEventQueue *eventQueue)=0
 Handles appropriate events. More...
 

Protected Member Functions

virtual void resizeOverride (unsigned int width, unsigned int height)
 Override function for resize(). More...
 
void updateSize (unsigned int width, unsigned int height)
 Updates the rendering area size. More...
 

Detailed Description

GraphicsOutput class.

Base class for graphics outputs.

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::GlGraphicsOutput, and kanzi::NullGraphicsOutput.

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

Returns the width of rendering area in pixels.

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

Returns the height of rendering area in pixels.

enum KzsDisplayOrientationAngle kanzi::GraphicsOutput::getOrientationAngle ( ) const
inline

Returns the orientations of the rendering area.

void kanzi::GraphicsOutput::resize ( unsigned int  width,
unsigned int  height 
)

Resizes the rendering area.

virtual void kanzi::GraphicsOutput::handleEvents ( const struct KzsEventQueue *  eventQueue)
pure virtual

Handles appropriate events.

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

virtual void kanzi::GraphicsOutput::resizeOverride ( unsigned int  width,
unsigned int  height 
)
inlineprotectedvirtual

Override function for resize().

Reimplemented in kanzi::GlGraphicsOutput.

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: