Wrapper classes for the emwin library

Dependents:   app_emwin1 app_emwin2_pos lpc4088_ebb_gui_emwin

Embed: (wiki syntax)

« Back to documentation index

EwGui Class Reference

EwGui Class Reference

This is the main class to get Segger's emwin library up-and-running with the mbed online tools. More...

#include <EwGui.h>

Public Member Functions

virtual void * getMemoryBlockAddress ()=0
 Returns the address to a memory block which may be used by emwin to allocate objects.
virtual uint32_t getMemoryBlockSize ()=0
 Returns the size of the memory block returned by getMemoryBlockAddress().
virtual uint32_t getDisplayWidth ()=0
 Returns the width of the display.
virtual uint32_t getDisplayHeight ()=0
 Returns the height of the display.
virtual void * getFrameBufferAddress ()=0
 Returns the address of the framebuffer (video RAM).
virtual void getTouchValues (int32_t *x, int32_t *y, int32_t *z)=0
 Get touch coordinates (if the display has a touch panel)
void exec ()
 Must be called regularly for emwin to work properly.
void execTouch ()
 Must be called regularly for touch events to be retrieved.
int32_t getTouchX ()
 Returns the x coordinate of the latest touch event.
int32_t getTouchY ()
 Returns the y coordinate of the latest touch event.

Detailed Description

This is the main class to get Segger's emwin library up-and-running with the mbed online tools.

This class handles the porting/integration layer in emwin and the virtual methods must be implemented in a sub-class to handle such things as memory allocation, framebuffer association, display size, and touch events.

Definition at line 18 of file EwGui.h.


Member Function Documentation

void exec (  )

Must be called regularly for emwin to work properly.

Definition at line 19 of file EwGui.cpp.

void execTouch (  )

Must be called regularly for touch events to be retrieved.

Definition at line 23 of file EwGui.cpp.

virtual uint32_t getDisplayHeight (  ) [pure virtual]

Returns the height of the display.

virtual uint32_t getDisplayWidth (  ) [pure virtual]

Returns the width of the display.

virtual void* getFrameBufferAddress (  ) [pure virtual]

Returns the address of the framebuffer (video RAM).

This address will be given to emwin by a call to LCD_SetVRAMAddrEx.

virtual void* getMemoryBlockAddress (  ) [pure virtual]

Returns the address to a memory block which may be used by emwin to allocate objects.

The memory block returned will be given to emwin by calling GUI_ALLOC_AssignMemory.

virtual uint32_t getMemoryBlockSize (  ) [pure virtual]

Returns the size of the memory block returned by getMemoryBlockAddress().

virtual void getTouchValues ( int32_t *  x,
int32_t *  y,
int32_t *  z 
) [pure virtual]

Get touch coordinates (if the display has a touch panel)

Parameters:
xthe x coordinate
ythe y coordinate $param z the z coordinate. If the value is > 0 the panel is touched.
int32_t getTouchX (  )

Returns the x coordinate of the latest touch event.

Definition at line 73 of file EwGui.h.

int32_t getTouchY (  )

Returns the y coordinate of the latest touch event.

Definition at line 78 of file EwGui.h.