13#include <adtf_utils.h>
14#include <adtf_ucom3.h>
28#define COORDS_NONE 0x00
33#define COORDS_SCREEN 0x01
38#define COORDS_LOGICAL 0x02
123 virtual tBool
MeasureText(
const tChar* str, tInt& nWidth, tInt& nHeight)
const = 0;
295 virtual tVoid
EnableAlpha(tBool bAdditiveMode = tFalse)
const = 0;
387 virtual tVoid
LinePattern(tUInt16 ui16Pattern, tInt nFactor = 1) = 0;
411 virtual tVoid
Color(tInt nRed, tInt nGreen, tInt nBlue, tInt nAlpha = 255) = 0;
424 virtual tVoid
Color(tUInt8 nRed, tUInt8 nGreen, tUInt8 nBlue, tUInt8 nAlpha = 255) = 0;
437 virtual tVoid
Color(tFloat64 fRed, tFloat64 fGreen, tFloat64 fBlue, tFloat64 fAlpha = 1.0) = 0;
461 virtual tVoid
BgColor(tInt nRed, tInt nGreen, tInt nBlue, tInt nAlpha = 0) = 0;
474 virtual tVoid
BgColor(tUInt8 nRed, tUInt8 nGreen, tUInt8 nBlue, tUInt8 nAlpha = 0) = 0;
487 virtual tVoid
BgColor(tFloat64 fRed, tFloat64 fGreen, tFloat64 fBlue, tFloat64 fAlpha = 0.0) = 0;
509 virtual tVoid
Coord(tInt x, tInt y) = 0;
519 virtual tVoid
Coord(tFloat32 x, tFloat32 y) = 0;
578 virtual tResult Create(tInt nWidth, tInt nHeight, tInt nBitsPerPixel) = 0;
580 virtual tVoid PushMatrix() = 0;
582 virtual tVoid PopMatrix() = 0;
584 virtual tVoid Translate(tFloat fx, tFloat fy, tFloat fz) = 0;
586 virtual tVoid Scale(tFloat fx, tFloat fy, tFloat fz) = 0;
588 virtual tVoid Rotate(tFloat fangle, tFloat fx, tFloat fy, tFloat fz) = 0;
618 virtual tVoid
SetMapping(tFloat32 x1, tFloat32 y1, tFloat32 x2, tFloat32 y2) = 0;
710 virtual tVoid
DrawLine(tInt x1, tInt y1, tInt x2, tInt y2) = 0;
722 virtual tVoid
DrawRect(tInt x1, tInt y1, tInt x2, tInt y2) = 0;
734 virtual tVoid
DrawCircle(tInt x1, tInt y1, tInt x2, tInt y2) = 0;
753 tFloat64 fDegreeStart,
755 tBool bNormalizeRect = tFalse) = 0;
766 virtual tVoid
FillRect(tInt x1, tInt y1, tInt x2, tInt y2) = 0;
778 virtual tVoid
FillCircle(tInt x1, tInt y1, tInt x2, tInt y2) = 0;
800 tFloat64 fDegreeStart,
802 tBool bNormalizeRect = tFalse) = 0;
822 virtual tVoid
DrawLine(tFloat32 x1, tFloat32 y1, tFloat32 x2, tFloat32 y2) = 0;
834 virtual tVoid
DrawRect(tFloat32 x1, tFloat32 y1, tFloat32 x2, tFloat32 y2) = 0;
846 virtual tVoid
DrawCircle(tFloat32 x1, tFloat32 y1, tFloat32 x2, tFloat32 y2) = 0;
865 tFloat64 fDegreeStart,
867 tBool bNormalizeRect = tFalse) = 0;
878 virtual tVoid
FillRect(tFloat32 x1, tFloat32 y1, tFloat32 x2, tFloat32 y2) = 0;
889 virtual tVoid
FillCircle(tFloat32 x1, tFloat32 y1, tFloat32 x2, tFloat32 y2) = 0;
911 tFloat64 fDegreeStart,
913 tBool bNormalizeRect = tFalse) = 0;
1057 virtual tVoid
OutputText(tInt x, tInt y,
const tChar* fmt, ...) = 0;
1067 virtual tVoid
OutputText(tFloat32 x, tFloat32 y,
const tChar* fmt, ...) = 0;
1094 virtual tVoid
Blit(
ITexture* pTexture, tInt x, tInt y, tInt nWidth, tInt nHeight) = 0;
1109 virtual tVoid
Blit(
IImage* pImage, tInt x, tInt y, tInt nWidth, tInt nHeight) = 0;
1120 virtual tVoid
Capture(
IImage** ppImage, tInt x, tInt y, tInt nWidth, tInt nHeight) = 0;
1142 virtual tVoid
SetFlag(tUInt32 nFlag, tInt32 nValue) = 0;
1180 virtual tVoid
DrawEllipse(tInt iOriginX, tInt iOriginY, tInt iWidth, tInt iHeight, tInt iAngle) = 0;
1193 tFloat32 f32OriginX, tFloat32 f32OriginY, tFloat32 f32Width, tFloat32 f32Height, tFloat32 f32Angle) = 0;
1205 virtual tVoid
FillEllipse(tInt iOriginX, tInt iOriginY, tInt iWidth, tInt iHeight, tInt iAngle) = 0;
1218 tFloat32 f32OriginX, tFloat32 f32OriginY, tFloat32 f32Width, tFloat32 f32Height, tFloat32 f32Angle) = 0;
1339 MS_LeftButtonDown = 0x1,
1340 MS_RightButtonDown = 0x2,
1341 MS_MiddleButtonDown = 0x4,
1342 MS_CtrlKeyDown = 0x8
1350 KS_CtrlKeyDown = 0x1,
1351 KS_AltKeyDown = 0x2,
1352 KS_ShiftKeyDown = 0x4
1471 KEY_SHIFT = 0x01000020,
1472 KEY_CTRL = 0x01000021,
1473 KEY_ALT = 0x01000023
1478 KEY_TAB = adtf::IKeyEventHandler::KEY_TAB,
1480 KEY_BACKSPACE = adtf::IKeyEventHandler::KEY_BACKSPACE,
1482 KEY_RETURN = adtf::IKeyEventHandler::KEY_RETURN,
1484 KEY_INSERT = adtf::IKeyEventHandler::KEY_INSERT,
1486 KEY_DELETE = adtf::IKeyEventHandler::KEY_DELETE,
1488 KEY_PRINT = adtf::IKeyEventHandler::KEY_PRINT,
1490 KEY_HOME = adtf::IKeyEventHandler::KEY_HOME,
1492 KEY_END = adtf::IKeyEventHandler::KEY_END,
1494 KEY_LEFT = adtf::IKeyEventHandler::KEY_LEFT,
1496 KEY_UP = adtf::IKeyEventHandler::KEY_UP,
1498 KEY_RIGHT = adtf::IKeyEventHandler::KEY_RIGHT,
1500 KEY_DOWN = adtf::IKeyEventHandler::KEY_DOWN,
1502 KEY_PAGEUP = adtf::IKeyEventHandler::KEY_PAGEUP,
1504 KEY_PAGEDOWN = adtf::IKeyEventHandler::KEY_PAGEDOWN,
1506 KEY_SPACE = adtf::IKeyEventHandler::KEY_SPACE,
1508 KEY_NUMLOCK = adtf::IKeyEventHandler::KEY_NUMLOCK,
1511 KEY_F1 = adtf::IKeyEventHandler::KEY_F1,
1513 KEY_F2 = adtf::IKeyEventHandler::KEY_F2,
1515 KEY_F3 = adtf::IKeyEventHandler::KEY_F3,
1517 KEY_F4 = adtf::IKeyEventHandler::KEY_F4,
1519 KEY_F5 = adtf::IKeyEventHandler::KEY_F5,
1521 KEY_F6 = adtf::IKeyEventHandler::KEY_F6,
1523 KEY_F7 = adtf::IKeyEventHandler::KEY_F7,
1525 KEY_F8 = adtf::IKeyEventHandler::KEY_F8,
1527 KEY_F9 = adtf::IKeyEventHandler::KEY_F9,
1529 KEY_F10 = adtf::IKeyEventHandler::KEY_F10,
1531 KEY_F11 = adtf::IKeyEventHandler::KEY_F11,
1533 KEY_F12 = adtf::IKeyEventHandler::KEY_F12,
1536 KEY_PLUS = adtf::IKeyEventHandler::KEY_PLUS,
1538 KEY_COMMA = adtf::IKeyEventHandler::KEY_COMMA,
1540 KEY_MINUS = adtf::IKeyEventHandler::KEY_MINUS,
1541 KEY_PERIOD = adtf::IKeyEventHandler::KEY_PERIOD,
1543 KEY_0 = adtf::IKeyEventHandler::KEY_0,
1544 KEY_1 = adtf::IKeyEventHandler::KEY_1,
1545 KEY_2 = adtf::IKeyEventHandler::KEY_2,
1546 KEY_3 = adtf::IKeyEventHandler::KEY_3,
1547 KEY_4 = adtf::IKeyEventHandler::KEY_4,
1548 KEY_5 = adtf::IKeyEventHandler::KEY_5,
1549 KEY_6 = adtf::IKeyEventHandler::KEY_6,
1550 KEY_7 = adtf::IKeyEventHandler::KEY_7,
1551 KEY_8 = adtf::IKeyEventHandler::KEY_8,
1552 KEY_9 = adtf::IKeyEventHandler::KEY_9,
1554 KEY_A = adtf::IKeyEventHandler::KEY_A,
1555 KEY_B = adtf::IKeyEventHandler::KEY_B,
1556 KEY_C = adtf::IKeyEventHandler::KEY_C,
1557 KEY_D = adtf::IKeyEventHandler::KEY_D,
1558 KEY_E = adtf::IKeyEventHandler::KEY_E,
1559 KEY_F = adtf::IKeyEventHandler::KEY_F,
1560 KEY_G = adtf::IKeyEventHandler::KEY_G,
1561 KEY_H = adtf::IKeyEventHandler::KEY_H,
1562 KEY_I = adtf::IKeyEventHandler::KEY_I,
1563 KEY_J = adtf::IKeyEventHandler::KEY_J,
1564 KEY_K = adtf::IKeyEventHandler::KEY_K,
1565 KEY_L = adtf::IKeyEventHandler::KEY_L,
1566 KEY_M = adtf::IKeyEventHandler::KEY_M,
1567 KEY_N = adtf::IKeyEventHandler::KEY_N,
1568 KEY_O = adtf::IKeyEventHandler::KEY_O,
1569 KEY_P = adtf::IKeyEventHandler::KEY_P,
1570 KEY_Q = adtf::IKeyEventHandler::KEY_Q,
1571 KEY_R = adtf::IKeyEventHandler::KEY_R,
1572 KEY_S = adtf::IKeyEventHandler::KEY_S,
1573 KEY_T = adtf::IKeyEventHandler::KEY_T,
1574 KEY_U = adtf::IKeyEventHandler::KEY_U,
1575 KEY_V = adtf::IKeyEventHandler::KEY_V,
1576 KEY_W = adtf::IKeyEventHandler::KEY_W,
1577 KEY_X = adtf::IKeyEventHandler::KEY_X,
1578 KEY_Y = adtf::IKeyEventHandler::KEY_Y,
1579 KEY_Z = adtf::IKeyEventHandler::KEY_Z,
1581 KEY_SHIFT = adtf::IKeyEventHandler::KEY_SHIFT,
1582 KEY_CTRL = adtf::IKeyEventHandler::KEY_CTRL,
1583 KEY_ALT = adtf::IKeyEventHandler::KEY_ALT*/
1607 virtual tResult
OnCreate(tHandle hCanvas, tInt nLeft, tInt nTop, tInt nRight, tInt nBottom) = 0;
1629 virtual tResult
OnPaint(tHandle hCanvas, tInt nLeft, tInt nTop, tInt nRight, tInt nBottom) = 0;
1651 virtual tResult
OnSize(tHandle hCanvas, tInt nLeft, tInt nTop, tInt nRight, tInt nBottom) = 0;
1666 virtual tResult
OnIconify(tHandle hCanvas, tBool bIconified) = 0;
1722 tControlEventCode eCode, tInt nParam1 = 0, tInt nParam2 = 0, tInt nFlags = 0, tVoid* pEventData =
nullptr) = 0;
1726#define ADTF_VIEWPORT_INTERNAL_CLASS "class"
1728#define ADTF_VIEWPORT_INTERNAL_TITLEWINDOW "titlewindow"
1730#define ADTF_VIEWPORT_INTERNAL_PARENT_SETTER "parentset"
1760using dengar::IGraphicsFlags;
1762using dengar::ITexture;
1763using dengar::ITexture;
1764using dengar::IGraphicsMode;
1765using dengar::IScene;
1766using dengar::ICanvas;
1767using dengar::IUIEventHandler;
virtual tVoid Clear()=0
Clears the canvas and all drawings to background color.
virtual tFloat32 UnmapPixelX(tInt x)=0
Unmap x coordinate from screen region to global coordinates.
virtual tVoid DrawPixel(tFloat32 x, tFloat32 y)=0
Draws a pixel at the given position.
virtual tVoid DrawLine(IPoint *ptStart, IPoint *ptEnd)=0
Draws a line between two points.
virtual tVoid FillCircleSegment(tInt x1, tInt y1, tInt x2, tInt y2, tFloat64 fDegreeStart, tFloat64 fDegreeEnd, tBool bNormalizeRect=tFalse)=0
Fills a circle segment (see.
virtual tVoid FillCircle(tInt x1, tInt y1, tInt x2, tInt y2)=0
Fills a circle with the current color.
virtual tInt32 GetFlag(tUInt32 nFlag)=0
Returns a flagvalue.
virtual tVoid Blit(ITexture *pTexture, tInt x, tInt y, tInt nWidth, tInt nHeight)=0
Blits a texture on canvas.
virtual tVoid OutputText(tFloat32 x, tFloat32 y, const tChar *fmt,...)=0
Sets an text to a given position.
virtual tVoid FillCircleSegment(IRect *rect, tFloat64 fDegreeStart, tFloat64 fDegreeEnd)=0
Fills a circle segment with current color.
virtual tVoid DrawCircle(tInt x1, tInt y1, tInt x2, tInt y2)=0
Draws a circle.
virtual tVoid DrawPixel(IPoint *pt)=0
Draws a pixel.
virtual tVoid ResetFlags()=0
Restores the default settings of all flags.
virtual tVoid Texture(ITexture *pTexture)=0
Sets a texture on canvas.
virtual tVoid DrawPixel(tInt x, tInt y)=0
Draws a pixel at the given position.
virtual tVoid FillEllipse(tInt iOriginX, tInt iOriginY, tInt iWidth, tInt iHeight, tInt iAngle)=0
Fills a ellipse.
virtual tVoid Font(IFont *pFont)=0
Sets the current font for drawing operations.
virtual tVoid OutputText(tInt x, tInt y, const tChar *fmt,...)=0
Sets an text to a given position.
virtual tVoid DrawPolygon(IPoint **ppPoints, tInt nCount)=0
Draws a polygon.
ADTF_IID(ICanvas, "canvas.adtf_disptb.iid")
Define an interface id for this class.
virtual tVoid SetMapping(tFloat32 x1, tFloat32 y1, tFloat32 x2, tFloat32 y2)=0
Define a rectangle for the screen mapping.
virtual tVoid FillCircleSegment(tFloat32 x1, tFloat32 y1, tFloat32 x2, tFloat32 y2, tFloat64 fDegreeStart, tFloat64 fDegreeEnd, tBool bNormalizeRect=tFalse)=0
Fills a circle segment (see.
virtual tVoid DrawRect(tInt x1, tInt y1, tInt x2, tInt y2)=0
Draws a rectangle using two given corners.
virtual tResult PopFlags()=0
Restores the flags from the top the flag stack.
virtual tVoid DrawLine(tFloat32 x1, tFloat32 y1, tFloat32 x2, tFloat32 y2)=0
Draws a line between two given points.
virtual IFont * CreateFont(const char *strName, tInt nHeight, IFont::tStyle eFontStyle=IFont::STYLE_Default)=0
Creates a new font instance.
virtual tVoid DrawEllipse(tFloat32 f32OriginX, tFloat32 f32OriginY, tFloat32 f32Width, tFloat32 f32Height, tFloat32 f32Angle)=0
Draws a ellipse.
virtual tVoid FillCircle(tFloat32 x1, tFloat32 y1, tFloat32 x2, tFloat32 y2)=0
Fills a circle with current color.
virtual tInt GetWidth() const =0
Returns the width of the canvas.
virtual tVoid DrawEllipse(tInt iOriginX, tInt iOriginY, tInt iWidth, tInt iHeight, tInt iAngle)=0
Draws a ellipse.
virtual tVoid FillPolygon(IPoint **ppPoints, tInt nCount)=0
Fills a polygon by the given point array.
virtual tVoid Blit(IImage *pImage, tInt x, tInt y, tInt nWidth, tInt nHeight)=0
Blits an Image on canvas.
virtual ITexture * CreateTexture(const tBitmapFormat *psFormat, tInt nMode=0)=0
Creates a Texture in the given format.
virtual tInt MapPixelY(tFloat32 y)=0
Map y coordinate to screen region.
virtual tResult CreateTexture(IImage *pImage, ITexture *&pTexture)=0
Handy method to create a texture from an image.
virtual tVoid FillEllipse(tFloat32 f32OriginX, tFloat32 f32OriginY, tFloat32 f32Width, tFloat32 f32Height, tFloat32 f32Angle)=0
Fills a ellipse.
virtual tVoid DrawCircleSegment(IRect *rect, tFloat64 fDegreeStart, tFloat64 fDegreeEnd)=0
Draws a circle segment inside a given rectangle.
virtual tVoid ClearMapping()=0
clears the mapping
virtual tInt MapPixelX(tFloat32 x)=0
Map x coordinate to screen region.
virtual tResult PushFlags()=0
Stores the current set flags onto the flag stack.
virtual tVoid DrawCircleSegment(tFloat32 x1, tFloat32 y1, tFloat32 x2, tFloat32 y2, tFloat64 fDegreeStart, tFloat64 fDegreeEnd, tBool bNormalizeRect=tFalse)=0
Draws a circle segment (see.
virtual tVoid FillRect(tInt x1, tInt y1, tInt x2, tInt y2)=0
Fills a rectangle with the current color.
virtual IScene * BeginScene()=0
Starts a 3D Scene context within the canvas.
virtual tVoid EndScene()=0
Ends the 3D Scene context within the canvas.
virtual tVoid DrawRect(tFloat32 x1, tFloat32 y1, tFloat32 x2, tFloat32 y2)=0
Draws a rectangle.
virtual tVoid Capture(IImage **ppImage, tInt x, tInt y, tInt nWidth, tInt nHeight)=0
Captures the current canvas positions to an image.
virtual tVoid DrawCircle(IRect *rect)=0
Draws a circle inside a given rectangle.
virtual tVoid DrawRect(IRect *rect)=0
Draws a rectangle.
virtual tInt MapPixelY(tInt y)=0
Map y coordinate to screen region.
virtual tVoid DrawCircle(tFloat32 x1, tFloat32 y1, tFloat32 x2, tFloat32 y2)=0
Draws a circle.
virtual tVoid FillCircle(IRect *rect)=0
Fills a circle with current color.
virtual tVoid DrawCircleSegment(tInt x1, tInt y1, tInt x2, tInt y2, tFloat64 fDegreeStart, tFloat64 fDegreeEnd, tBool bNormalizeRect=tFalse)=0
Draws a circle segment (see.
virtual tInt GetBitsPerPixel() const =0
Returns the resolution of the canvas.
virtual tVoid DrawLine(tInt x1, tInt y1, tInt x2, tInt y2)=0
Draws a line between two given points.
virtual tInt GetHeight() const =0
Returns the height of the canvas.
virtual tFloat32 UnmapPixelY(tInt y)=0
Unmap y coordinate from screen region to global coordinates.
virtual tVoid FillRect(tFloat32 x1, tFloat32 y1, tFloat32 x2, tFloat32 y2)=0
Fills a rect with current color.
virtual tFloat64 GetFontAngle()=0
Returns the font angle.
virtual tVoid DrawTexture(ITexture *pTexture, tFloat32 vPoints[8])=0
Draws a texture into a polygon which is described with 4 points.
virtual tInt MapPixelX(tInt x)=0
Map x coordinate to screen region.
virtual tVoid FillRect(IRect *rect)=0
Fills a rect with current color.
virtual tVoid SetFontAngle(tFloat64 fAngle)=0
Sets the font angle.
virtual tVoid SetFlag(tUInt32 nFlag, tInt32 nValue)=0
Sets a flag with value.
Interface for color representation.
Default Font handling interface for basic font support.
tStyle
The enumeration marks the style of the font.
@ STYLE_Mono
the font is mono style.
@ STYLE_Antialiased
the font supports anti aliased.
@ STYLE_Default
default font.
virtual tResult Release()=0
Releases the font.
virtual ~IFont()
virtual destructor to ensure proper cleanup.
virtual tBool MeasureText(const tChar *str, tInt &nWidth, tInt &nHeight) const =0
The methods returns the measurement of the text in nWidth and nHeight.
virtual tInt GetHeight() const =0
This function returns the height of the font in point.
The Graphics device flags.
@ FULLSCREEN_MODE
The device is in full screen mode.
@ SUPPORT_ADTF25
this needs to be put into the flags to synchronize to avoid deadlocks with 2.5 adtf x system cBaseDis...
@ DEVICE_SWT
SWT device support.
@ DEVICE_GDI
Win32 GDI device.
@ SUPPORT_OPENGL
The device supports OpenGL.
@ DEVICE_X11
Standard X11 device support.
@ DEVICE_SDL
SDL frame buffer support.
@ DEVICE_QT
Qt device support.
Graphics mode interface for common graphic support.
virtual tVoid BgColor(const IColor *col)=0
This function sets the current background color to col value.
virtual tVoid DisableBackFaceCulling() const =0
This function disables the back face culling.
virtual tVoid Coord(IPoint *pt)=0
Set the context to the given coordinates.
virtual tVoid Coord(tFloat32 x, tFloat32 y)=0
Set the context to the given coordinates.
virtual tVoid EnableDepthBuffer() const =0
This function enables the depth buffer if feature is supported.
virtual tVoid EnableAntialiasing() const =0
This function enables the anti aliasing if feature is supported.
virtual tVoid EnableAlpha(tBool bAdditiveMode=tFalse) const =0
This function enables the alpha graphics mode.
tFeature
This enumeration enables / disables or describes the features for the graphics mode.
@ FEATURE_AlphaBlending
anti blending.
@ FEATURE_BackFaceCulling
back face culling.
@ FEATURE_HardwareAcceleration
hardware acceleration.
@ FEATURE_Lighting
lighting.
@ FEATURE_CommandLists
command list.
@ FEATURE_DepthBuffer
deep buffer support.
@ FEATURE_Antialiasing
anti aliasing.
virtual tVoid DisableAlpha() const =0
This function disables the alpha graphics mode.
virtual tVoid DisableLighting() const =0
This function disables the lighting.
virtual tVoid DisableAntialiasing() const =0
This function disables the anti aliasing.
virtual tVoid Coord(IPoint **ppPoints, tInt nCount)=0
Set the context to the coordinate list.
virtual tVoid BgColor(tFloat64 fRed, tFloat64 fGreen, tFloat64 fBlue, tFloat64 fAlpha=0.0)=0
This function sets the current background color to col value.
virtual tVoid Coord(tInt x, tInt y)=0
Set the context to the given coordinates.
virtual tVoid DisableDepthBuffer() const =0
This function disables the depth buffer.
virtual tVoid Color(const IColor *col)=0
This function sets the current color to col value.
virtual tVoid End()=0
Ends a device context.
virtual tVoid EnableBackFaceCulling() const =0
This function enables the back face culling if supported.
virtual ~IGraphicsMode()
virtual destructor to ensure proper cleanup.
tMode
enumeration for the supported modes.
@ MODE_DrawLineStrip
draw a line strip.
@ MODE_DrawTriangleStrip
draw triangle strip.
@ MODE_DrawTriangleFan
draw triangle fan.
@ MODE_DrawLineLoop
draw a line loop.
@ MODE_DrawPoints
draw points.
@ MODE_DrawQuads
draw quad.
@ MODE_DrawTriangles
draw triangle.
@ MODE_DrawPolygon
draw polygon.
@ MODE_DrawLines
draw lines.
@ MODE_DrawQuadStrip
draw quad strip.
virtual tVoid BgColor(tInt nRed, tInt nGreen, tInt nBlue, tInt nAlpha=0)=0
This function sets the current background color to col value.
virtual tVoid LinePattern(tUInt16 ui16Pattern, tInt nFactor=1)=0
This function adjusts the Line Style for all Lines in drawing operations.
virtual tVoid CoordTexture(tFloat32 u, tFloat32 v)=0
Set the context to the coordinate list.
virtual tVoid Color(tFloat64 fRed, tFloat64 fGreen, tFloat64 fBlue, tFloat64 fAlpha=1.0)=0
This function sets the current color.
virtual tVoid BgColor(tUInt8 nRed, tUInt8 nGreen, tUInt8 nBlue, tUInt8 nAlpha=0)=0
This function sets the current background color to col value.
virtual tVoid Color(tInt nRed, tInt nGreen, tInt nBlue, tInt nAlpha=255)=0
This function sets the current color.
virtual tBool IsSupported(tFeature nFeatureId) const =0
This function returns if the features shown in tFeature is supported.
virtual tVoid LineWidth(tFloat64 fWidth)=0
This function sets the current line width to the fWidth value.
virtual tVoid EnableLighting() const =0
This function enables the lighting if feature is supported.
virtual tVoid Begin(tMode eMode)=0
Start graphics command.
virtual tVoid Color(tUInt8 nRed, tUInt8 nGreen, tUInt8 nBlue, tUInt8 nAlpha=255)=0
This function sets the current color.
Image and bitmap handling.
The interface for common texture handling.
virtual tInt GetPhysicalWidth() const =0
Gets the physical width of the texture (in byte).
virtual tResult Release()=0
The Function releases the Texture.
virtual tVoid MakeCurrent()=0
Sets this texture as the current texture.
virtual tInt GetWidth() const =0
Gets the width of a texture (in pixel).
virtual ~ITexture()
virtual destructor to ensure proper cleanup.
virtual tInt GetPhysicalHeight() const =0
Gets the physical height of the texture (in byte).
virtual tResult SetMode(tInt nMode)=0
Set the Mode shown in tTextureMode.
tTextureMode
The enumeration shows the texture modes.
@ MODE_NearestPixel
nearest pixel mode.
@ MODE_BilinearFiltered
bi linear filtered.
virtual tResult Copy(IImage *pSource)=0
Fills the texture using a IImage.
virtual tInt GetBitsPerPixel() const =0
Gets the number of bits per line of a texture.
virtual tInt GetHeight() const =0
Gets the height of a texture (in pixel).
User interface event handler for all displays within the adtf.
tMouseState
The MouseStates for the tControlEventCode with Mouse.
virtual tResult OnDestroy()=0
Destroy display.
virtual tResult OnTimer(tHandle hCanvas)=0
On Gui timer callback.
virtual tResult OnSize(tHandle hCanvas, tInt nLeft, tInt nTop, tInt nRight, tInt nBottom)=0
On Resize display Event.
virtual tResult OnPaint(tHandle hCanvas, tInt nLeft, tInt nTop, tInt nRight, tInt nBottom)=0
On Redraw display event.
virtual tResult OnIconify(tHandle hCanvas, tBool bIconified)=0
On Change window iconic state Event.
tKey
These are the standard adtf_graphics keys.
@ KEY_SPACE
the space key.
@ KEY_INSERT
the insert key.
@ KEY_ESCAPE
the escape key.
@ KEY_PAGEDOWN
the page-down key.
@ KEY_PAGEUP
the page-up key.
@ KEY_RIGHT
the right key.
@ KEY_BACKSPACE
the backspace key.
@ KEY_NUMLOCK
the numlock key.
@ KEY_RETURN
the return key.
@ KEY_DELETE
the delete key.
@ KEY_PRINT
the print key.
virtual tResult OnIdle(tHandle hCanvas)=0
Gui idle callback.
tKeyState
The KeyStates for the tControlEventCode with Key.
virtual tResult OnControlEvent(tControlEventCode eCode, tInt nParam1=0, tInt nParam2=0, tInt nFlags=0, tVoid *pEventData=nullptr)=0
Control Event by Key or Mouse Events.
tControlEventCode
The Control Event Code Enumeration for the OnControlEvent method.
@ EC_MouseRDown
right button down event
@ EC_MouseRDblClk
right button double click event
@ EC_MouseLDown
left button down event
@ EC_MouseWheel
mouse wheel event
@ EC_MouseLDblClk
left button double click event
@ EC_KeyInput
key input event
@ EC_MouseMove
mouse move event
@ EC_MouseMDblClk
middle button double click event
@ EC_MouseRUp
right button up event
@ EC_MouseMDown
middle button down event
@ EC_MouseMUp
middle button up event
@ EC_MouseLUp
left button up event
@ EC_KeyDown
key down event
virtual tResult OnCreate(tHandle hCanvas, tInt nLeft, tInt nTop, tInt nRight, tInt nBottom)=0
On Create display Event Call.
Copyright © Audi Electronics Venture GmbH.
@ CANVAS_FLAG_TEXT_BASELINE_ON_TOP
Set the text baseline on top of the text (0: baseline is on button of a glyphe, 1: baseline is on top...
@ CANVAS_FLAG_TEXT_FLIP_HORIZONTALLY
Set the text direction with or opposed the x-axis direction (0: with the x-axis direction,...
@ CANVAS_FLAG_TEXT_ROTATE_WITH_COORDINATE_SYSTEM
Set the text to scale with the level of zoom.
@ CANVAS_FLAG_TEXT_SCALE_WITH_COORDINATE_SYSTEM
Set the text to scale with the coordinatesystem.
Copyright © Audi Electronics Venture GmbH.
Namespace for functionality provided by the Display Toolbox.
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.