Kanzi Graphics Engine
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
kzu_canvas.h File Reference

Screen container canvas. More...

Functions

kzsError kzuCanvasCreate (const struct KzcMemoryManager *memoryManager, struct KzuScreen *screen, struct KzuCanvas **out_canvas)
 Create canvas object. More...
 
kzsError kzuCanvasDelete (struct KzuCanvas *canvas)
 Delete canvas. More...
 
void kzuCanvasSetSize (struct KzuCanvas *canvas, kzUint width, kzUint height)
 Sets canvas size. More...
 
kzUint kzuCanvasGetWidth (const struct KzuCanvas *canvas)
 Gets canvas width. More...
 
kzUint kzuCanvasGetHeight (const struct KzuCanvas *canvas)
 Gets canvas height. More...
 
void kzuCanvasSetOrientationAngle (struct KzuCanvas *canvas, enum KzsWindowOrientationAngle angle)
 Sets canvas orientation angle. More...
 
enum KzsWindowOrientationAngle kzuCanvasGetOrientationAngle (const struct KzuCanvas *canvas)
 Gets canvas orientation angle. More...
 
kzsError kzuCanvasSetScreenOrientation (struct KzuCanvas *canvas, enum KzsWindowOrientation orientation)
 Sets the orientation of the screen. More...
 
kzsError kzuCanvasSetScreen (struct KzuCanvas *canvas, struct KzuScreen *screen)
 Sets screen of canvas. More...
 
struct KzuScreenkzuCanvasGetScreen (const struct KzuCanvas *canvas)
 Gets screen of canvas. More...
 
void kzuCanvasInvalidateScreenLayout (struct KzuCanvas *canvas)
 Invalidates the layout of the attached screen. More...
 

Detailed Description

Screen container canvas.

Copyright 2008-2019 by Rightware. All rights reserved.

Function Documentation

kzsError kzuCanvasCreate ( const struct KzcMemoryManager memoryManager,
struct KzuScreen screen,
struct KzuCanvas **  out_canvas 
)

Create canvas object.

kzsError kzuCanvasDelete ( struct KzuCanvas canvas)

Delete canvas.

void kzuCanvasSetSize ( struct KzuCanvas canvas,
kzUint  width,
kzUint  height 
)

Sets canvas size.

kzUint kzuCanvasGetWidth ( const struct KzuCanvas canvas)

Gets canvas width.

kzUint kzuCanvasGetHeight ( const struct KzuCanvas canvas)

Gets canvas height.

void kzuCanvasSetOrientationAngle ( struct KzuCanvas canvas,
enum KzsWindowOrientationAngle  angle 
)

Sets canvas orientation angle.

enum KzsWindowOrientationAngle kzuCanvasGetOrientationAngle ( const struct KzuCanvas canvas)

Gets canvas orientation angle.

kzsError kzuCanvasSetScreenOrientation ( struct KzuCanvas canvas,
enum KzsWindowOrientation  orientation 
)

Sets the orientation of the screen.

kzsError kzuCanvasSetScreen ( struct KzuCanvas canvas,
struct KzuScreen screen 
)

Sets screen of canvas.

struct KzuScreen* kzuCanvasGetScreen ( const struct KzuCanvas canvas)

Gets screen of canvas.

void kzuCanvasInvalidateScreenLayout ( struct KzuCanvas canvas)

Invalidates the layout of the attached screen.