Guiliani  Version 2.5 revision 7293 (documentation build 13)
CGfxWrap Class Referenceabstract

The graphics wrapper base class. More...

#include <GfxWrap.h>

Inheritance diagram for CGfxWrap:

Public Types

enum  RefreshCall_t {
  SINGLE_REFRESH , FIRST_REFRESH_OF_FRAME , INTERMEDIATE_REFRESH , LAST_REFRESH_OF_FRAME ,
  FORCED_REFRESH
}
 

Public Member Functions

void ForceRefresh ()
 
eC_Bool GetDoubleBufferingEnforcesFlipping ()
 
virtual eC_UInt GetNOFImages ()
 
virtual eC_UInt GetPhysicalScreenHeight ()=0
 
virtual eC_UInt GetPhysicalScreenWidth ()=0
 
CGUICommonEnums::ImageType_t GetScreenFormat () const
 
virtual eC_UInt GetScreenHorizontalPPI () const
 
virtual eC_UInt GetScreenVerticalPPI () const
 
virtual eC_UInt GetVirtualScreenHeight ()=0
 
virtual eC_UInt GetVirtualScreenWidth ()=0
 
virtual eC_UByte * GetWorkingMemory (const eC_UInt &uiSize)
 
eC_String GetWrapperName () const
 
virtual eC_Bool ImageExists (const ImageResource_t eID) const =0
 
virtual void ReleaseWorkingMemory (eC_UByte *pkMemory)
 
virtual void ResetWorkingMemory ()
 
virtual void RestoreWrapperState ()
 
void SetDoubleBufferingEnforcesFlipping (const eC_Bool bDoubleBufferingEnforcesFlipping)
 
virtual void SetFilteredBlit (const eC_Bool &bFilteredBlit)
 
void SetGfxEnv (CGfxEnv *pkGfxEnv)
 
virtual void SetOptimizedBlit (const eC_Bool &bOptimizedBlit)
 
void SetScreenFormat (const CGUICommonEnums::ImageType_t &uiScreenFormat)
 
virtual void SetScreenSize (const eC_UInt &uiWidth, const eC_UInt &uiHeight)
 
virtual void SetWindowCaption (const eC_String &kText)
 
virtual void StoreWrapperState ()
 
virtual void SyncWorkingMemory ()
 
Drawing parameters
void SetForegroundColor (const eC_UByte &ubRed, const eC_UByte &ubGreen, const eC_UByte &ubBlue, const eC_UByte &ubAlpha=255)
 
void SetForegroundColor (const eC_UInt &uiCol)
 
void UpdateGlobalAlpha (const eC_UByte &ubAlpha)
 
void SetGlobalAlpha (const eC_UByte &ubAlpha)
 
virtual eC_Value SetLineWidth (const eC_Value &vWidth)
 
eC_UInt GetForegroundColor () const
 
eC_UByte GetGlobalAlpha () const
 
eC_UByte ApplyGlobalAlpha (const eC_UByte ubAlpha) const
 
Drawing primitives
void Line (const CGUIRect &kAbsRect)
 
void Rect (const CGUIRect &kAbsRect)
 
void FilledRect (const CGUIRect &kAbsRect)
 
void Ellipse (const CGUIRect &kAbsRect, const eC_Bool &bFilled)
 
void Arc (const CGUIRect &kAbsRect, const eC_Value &vStartAngle, const eC_Value &vEndAngle, const eC_Value &vRotationAngle, const eC_Bool &bFilled)
 
void Ring (const CGUIRect &kAbsRect, const eC_Value &vRingWidth, const eC_Value &vStartAngle, const eC_Value &vEndAngle, const eC_Value &vRotationAngle, const eC_Bool &bFilled)
 
void Text (const eC_Value &vAbsX1, const eC_Value &vAbsY1, const eC_String *const lpString)
 
Clipping and invalidated rectangles
virtual void RedrawGUI ()
 
virtual void SetCliprect (const CGUIRect &NewAbsClipRect)=0
 
virtual void ResetCliprect ()
 Resets the clipping rectangle.
 
virtual void GetCliprect (CGUIRect &AbsClipRect) const
 
void InvalidateRect (const CGUIRect &kInvalidRect)
 
void InvalidateRect (const eC_Value &vAbsX1, const eC_Value &vAbsY1, const eC_Value &vAbsX2, const eC_Value &vAbsY2)
 
const CGUIRectGetInvalidatedRect () const
 
virtual void ClearInvalidRect ()
 
Image handling
void BlitImg (const ImageResource_t &eID, const eC_Value &vAbsDestX, const eC_Value &vAbsDestY)
 
void BlitImg (const CGUIImageData &kImageData, const eC_Value &vAbsDestX, const eC_Value &vAbsDestY)
 
void BlitImgExt (const ImageResource_t &eID, const eC_Value &vAbsDestX, const eC_Value &vAbsDestY, const eC_Value &vWidth, const eC_Value &vHeight, const eC_Bool &bStretch=true, const eC_UByte &ubAlpha=255)
 
virtual void BlitImgNinePatch (const ImageResource_t &eID, const CGUIRect &kAbsRect, const eC_UInt uiTopBorder, const eC_UInt uiBottomBorder, const eC_UInt uiLeftBorder, const eC_UInt uiRightBorder, const eC_UByte &ubAlpha=255)
 
void BlitImgNinePatch (const ImageResource_t &eID, const CGUIRect &kAbsRect, const CGUINinePatch &kNinePatch, const eC_UByte &ubAlpha=255)
 
void BlitImgExt (const ImageResource_t &eID, const CGUIRect &kAbsRect, const eC_Bool &bStretch=true, const eC_UByte &ubAlpha=255)
 
void BlitImgExt (const ImageResource_t &eID, const CGUIRect &kSrcAbsRect, const CGUIRect &kDstAbsRect, const eC_UByte &ubAlpha=255)
 
void BlitImgExt (const ImageResource_t &eID, const eC_UInt &uiAbsSrcX, const eC_UInt &uiAbsSrcY, const eC_UInt &uiSrcWidth, const eC_UInt &uiSrcHeight, const eC_Value &vAbsDestX, const eC_Value &vAbsDestY, const eC_Value &vDestWidth, const eC_Value &vDestHeight, const eC_UByte &ubAlpha=255, const eC_Value &vAngle=eC_FromFloat(0), const eC_Value &vRotCenterX=eC_FromFloat(0.5), const eC_Value &vRotCenterY=eC_FromFloat(0.5))
 
eC_UInt GetImgWidth (const ImageResource_t &eID) const
 
eC_UInt GetImgHeight (const ImageResource_t &eID) const
 
CGUIRect GetImgOriginRect (const ImageResource_t &eID) const
 
Font handling
void SetFont (const FontResource_t &eID)
 
void SetFontSpacing (const eC_Float &fSpacing)
 
void RequiredSpace (const eC_String *const pkText, eC_Value &vWidth, eC_Value &vHeight)
 
void FittingNumChars (const eC_String *const pkText, eC_Value vWidthMax, eC_UInt &uiNumChars, const eC_Bool &bStartAtEnd=false)
 
eC_Int GetAscender () const
 
eC_Int GetDescender () const
 
eC_Int GetInternalLeading () const
 
void GetGlyphMetrics (const eC_Char cChar, CFntWrap::GlyphMetrics_t &kMetrics)
 
eC_Value GetTextXPosAdjustment (const CGUIText::HorAligned_t eHorAlignment)
 
eC_Value GetTextYPosAdjustment (const CGUIText::VerAligned_t eVerAlignment)
 
eC_Bool SetNOFFonts (const eC_UInt uiNOFFonts)
 
eC_UInt GetNOFFonts ()
 
void ChangeFont (const FontResource_t &eFontID, const eC_Char *const pcPath, const eC_UInt &uiFontSize, const CFntWrap::GUIFont_t &eFontStyle)
 
void LoadFont (const FontResource_t &eFontID)
 
void UnloadFont (const FontResource_t &eFontID)
 
virtual eC_Bool SupportCompressedFonts () const
 
virtual void LoadGlyphData (CGUIImageData *pkImageData, const eC_UInt &uiGlyphWidth, const eC_UInt &uiGlyphHeight, eC_UByte *pkGlyphBitmap)
 
virtual void UnloadGlyphData (CGUIImageData *pkImageData)
 

Static Public Member Functions

static void DeleteInstance ()
 Delete the graphics wrapper instance.
 
static eC_UInt GetNextPowerOf2 (const eC_Value &vValue)
 

Protected Member Functions

 CGfxWrap ()
 Constructor.
 
virtual ~CGfxWrap (void)
 Destructor.
 
virtual void Arc (const eC_Value &vX1, const eC_Value &vY1, const eC_Value &vX2, const eC_Value &vY2, const eC_Value &vStartAngle, const eC_Value &vEndAngle, const eC_Value &vRotationAngle, const eC_Bool &bFilled)=0
 
void DeInit ()
 Deinitialization.
 
virtual void Ellipse (const eC_Value &vAbsX1, const eC_Value &vAbsY1, const eC_Value &vAbsX2, const eC_Value &vAbsY2, const eC_Bool &bFilled)=0
 
virtual void FilledRect (const eC_Value &vAbsX1, const eC_Value &vAbsY1, const eC_Value &vAbsX2, const eC_Value &vAbsY2)=0
 
virtual void Line (const eC_Value &vAbsX1, const eC_Value &vAbsY1, const eC_Value &vAbsX2, const eC_Value &vAbsY2)=0
 the following methods are protected to prevent calling them directly More...
 
virtual void Rect (const eC_Value &vAbsX1, const eC_Value &vAbsY1, const eC_Value &vAbsX2, const eC_Value &vAbsY2)=0
 
virtual void Ring (const eC_Value &vX1, const eC_Value &vY1, const eC_Value &vX2, const eC_Value &vY2, const eC_Value &vRingWidth, const eC_Value &vStartAngle, const eC_Value &vEndAngle, const eC_Value &vRotationAngle, const eC_Bool &bFilled)=0
 
virtual void SetForegroundColorImpl (const eC_UByte &ubRed, const eC_UByte &ubGreen, const eC_UByte &ubBlue, const eC_UByte &ubAlpha=255)=0
 
Smart redraw
virtual eC_Bool Refresh (const RefreshCall_t eRefreshCallType)=0
 
virtual void StartHandleDraw (const CGUIRect &crkClipRect)
 
Callbacks
virtual void StartRedrawGUI ()
 
virtual void EndRedrawGUI ()
 Callback which is called at the end of RedrawGUI() after all Invalidated areas were drawn and refreshed.
 
virtual void DestroyScreen ()
 Method to clean and release the screen which was created via the CreateScreen Method. More...
 
Resource management
eC_Bool SetNOFImages (const eC_UInt uiNOFImages)
 
virtual eC_Bool SetNOFImagesImpl (const eC_UInt uiNOFImages)
 
void LoadImg (const eC_String &kPath, const ImageResource_t &eID)
 
void LoadImg (void *pkMemory, const eC_UInt &uiWidth, const eC_UInt &uiHeight, const eC_UInt &eImageType, const ImageResource_t &eID)
 
virtual void LoadImgImpl (const eC_String &kPath, const ImageResource_t &eID)=0
 
virtual void LoadImgImpl (void *pkMemory, const eC_UInt &uiWidth, const eC_UInt &uiHeight, const eC_UInt &eImageType, const ImageResource_t &eID)=0
 
virtual void RefreshImage (const ImageResource_t &eID, void *pkMemory)
 
virtual void UnloadImg (const ImageResource_t &eID)
 
Abstract image methods
virtual eC_UInt GetImageSize (const ImageResource_t &eID) const =0
 
virtual eC_UInt GetImgWidthImpl (const ImageResource_t &eID) const =0
 
virtual eC_UInt GetImgHeightImpl (const ImageResource_t &eID) const =0
 
virtual void BlitImgExtImpl (const ImageResource_t &eID, const eC_UInt &uiAbsSrcX, const eC_UInt &uiAbsSrcY, const eC_UInt &uiSrcWidth, const eC_UInt &uiSrcHeight, const eC_Value &vAbsDestX, const eC_Value &vAbsDestY, const eC_Value &vDestWidth, const eC_Value &vDestHeight, const eC_UByte &ubAlpha=255, const eC_Value &vAngle=eC_FromFloat(0), const eC_Value &vRotCenterX=eC_FromFloat(0.5), const eC_Value &vRotCenterY=eC_FromFloat(0.5))=0
 
virtual void BlitImgExtImpl (const CGUIImageData &kImageData, const eC_Value &vAbsDestX, const eC_Value &vAbsDestY)=0
 
Invalidated rectangles
void SetInvalidatedRect (const eC_Value &vAbsX1, const eC_Value &vAbsY1, const eC_Value &vAbsX2, const eC_Value &vAbsY2)
 
void SetInvalidatedRect (const CGUIRect &NewAbsRect)
 
void ResetInvalidatedRect ()
 Resets the invalidated rectangle.
 

Protected Attributes

eC_Bool m_bDoubleBufferingEnforcesFlipping
 
eC_Bool m_bFilteredBlit
 if filtered blit is active
 
eC_Bool m_bInvalidationInLastFrame
 
eC_Bool m_bOptimizedBlit
 if optimized blit is active
 
CGUIRect m_kClippingRect
 
eC_Semaphore m_kGfxWrapSemaphore
 Semaphore to lock access to methods used in a multi thread context.
 
CGUIRect m_kInvalidatedRect
 
eC_TListDoubleLinked< CGUIRectm_kInvalidatedRectList
 This is the list of invalidated rectangular regions within the GUI.
 
eC_TListDoubleLinked< CGUIRectm_kLastFrameInvalidatedRectList
 This is the list of regions which have been invalidated during the LAST frame.
 
eC_String m_kWrapperName
 name of the wrapper
 
CGfxEnvm_pkGfxEnv
 pointer to the graphics-environment
 
eC_UByte m_ubAlpha
 Currently set global alpha value.
 
eC_UInt m_uiColor
 Currently set foreground color.
 
eC_UInt m_uiNOFImages
 total number of image-objects
 
eC_UInt m_uiScreenHeight
 Screen height.
 
eC_UInt m_uiScreenWidth
 Screen width.
 
eC_Value m_vGlobalAlphaFactor
 
eC_Value m_vLineWidth
 Line width in pixels.
 
eC_Value m_vRenderingOffsetX
 offset in x-direction
 
eC_Value m_vRenderingOffsetY
 offset in y-direction
 

Static Protected Attributes

static const eC_Value cvTwoPi
 constant for 2 PI
 

Friends

class CFntWrap
 
class CGUI
 
class CGUIBackgroundImageLoaderThread
 
class CGUIComponentManager
 
class CGUIImageCacheImpl
 
class CGUIResourceManager
 

Bitmap Planes

virtual eC_Bool DrawToBitmap (GUIBitmapPlaneID_t uiBitmapID)
 
virtual eC_Bool DrawToScreen ()
 
virtual eC_TArray< eC_UByte > * GetBitmapPlaneData (const GUIBitmapPlaneID_t &eBitmapPlaneID)
 
virtual void SetTargetLayer (const eC_UInt &uiLayerID)
 
virtual void SetRenderingOffset (const eC_Value &vOffsetX, const eC_Value &vOffsetY)
 
void GetRenderingOffset (eC_Value &vOffsetX, eC_Value &vOffsetY)
 
virtual GUIBitmapPlaneID_t CreateBitmapPlane (const CGUIObject &rkParentObject, const eC_Value &vWidth, const eC_Value &vHeight)
 
void DeleteBitmapPlane (const GUIBitmapPlaneID_t uiBitmapID)
 
void DeleteBitmapPlanes (const CGUIObject *pkObject)
 
CGUIBitmapPlaneGetBitmapPlane (const GUIBitmapPlaneID_t uiBitmapID)
 
GUIBitmapPlaneID_t GetUsedBitmapPlaneID () const
 
virtual CGUIBitmapPlaneCreateGfxDependentBitmap (GUIBitmapPlaneID_t uiNewBitmapID, const CGUIObject &rkParentObject, const eC_Value &vWidth, const eC_Value &vHeight)
 
CGUIBitmapPlaneGetDummyBitmap ()
 
virtual eC_Bool FinishDrawToBitmap ()
 

Detailed Description

The graphics wrapper base class.

The methods declared in this base class are used by all Guiliani standard controls to display themselves. You may leave implementations of certain methods empty for your specific derivation if you know that you will not need them. For example you may decide not to implement the image loading functionality for your specific graphics wrapper. You are also free to add completely new methods to your own wrapper classes and use these within your custom-made controls.

Please be aware that due to the cross-platform character of the framework, not all functions declared within the CGfxWrap base class need to be available in all platform-specific implementations.

Member Enumeration Documentation

◆ RefreshCall_t

The Refresh function is called for every invalidated rect of a frame. For some GFXWrappers it is necessary to know if it is the first or last call of a frame, so you can decide what to do. This might be a simple copy instruction of the invalidated area or the flip at the end of the frame. This enum contains the needed information.

Enumerator
SINGLE_REFRESH 

Only one refresh in this frame. So it is the first and the last call.

FIRST_REFRESH_OF_FRAME 

The first refresh call in this frame.

INTERMEDIATE_REFRESH 

Any Refresh between the first and the last call.

LAST_REFRESH_OF_FRAME 

The last refresh call in this frame.

FORCED_REFRESH 

Refresh was forced. A refresh of this type is used in addition to one of the others, see ForceRefresh().

Member Function Documentation

◆ ApplyGlobalAlpha()

eC_UByte CGfxWrap::ApplyGlobalAlpha ( const eC_UByte  ubAlpha) const
inline

Applies the current global alpha to the given alpha value and returns the result. If e.g. the global alpha is 127, and the supplied alpha is 127, the returned value will be 64.

Parameters
ubAlphaThe alpha value to which global alpha shall be applied.
Returns
The modified alpha value.

◆ Arc() [1/2]

void CGfxWrap::Arc ( const CGUIRect kAbsRect,
const eC_Value &  vStartAngle,
const eC_Value &  vEndAngle,
const eC_Value &  vRotationAngle,
const eC_Bool &  bFilled 
)

Draws an arc defined by a CGUIRect

See also
CGfxWrap::Arc(const eC_Value& vX1, const eC_Value& vY1, const eC_Value& vX2, const eC_Value& vY2, const eC_Value& vStartAngle, const eC_Value& vEndAngle, const eC_Value& vRotationAngle, const eC_Bool &bFilled)
Parameters
kAbsRectCGUIRect containing the rectangle corners' endpoints
vStartAnglestart-angle of the arc
vEndAngleend-angle of the arc
vRotationAnglerotation-angle
bFilledSpecifies whether the arc will be drawn outlined (false) or filled (true)

◆ Arc() [2/2]

virtual void CGfxWrap::Arc ( const eC_Value &  vX1,
const eC_Value &  vY1,
const eC_Value &  vX2,
const eC_Value &  vY2,
const eC_Value &  vStartAngle,
const eC_Value &  vEndAngle,
const eC_Value &  vRotationAngle,
const eC_Bool &  bFilled 
)
protectedpure virtual

Draws an arc which is completly inside the rectangle described through the rectangle the top left edge at (vAbsX1, vAbsY1) and bottom right edge at (vAbsX2, vAbsY2). The arc will be filled out if the last parameter is true 0-degrees is at the mathematically correct position on the unit-circle angles are increasing in counter-clockwise direction. rotation-angle is increasing in clockwise direction, i.e. rotating by 90 degrees will result in the 0-degress being at the bottom-center

Parameters
vX1X-coordinate of bounding rectangle's top left corner
vY1Y-Coordinate of bounding rectangle's top left corner
vX2X-coordinate of bounding rectangle's bottom right corner
vY2Y-Coordinate of bounding rectangle's bottom right corner
vStartAnglestart-angle
vEndAngleend-angle
vRotationAnglerotation-angle
bFilledSpecifies whether the arc will be drawn outlined (false) or filled (true)

Implemented in CGfxWrapBLU, CGfxWrapDAVE, CGfxWrapDAVEHD, CGfxWrapeGML, CGfxWrapNull, CGfxWrapGL, CGfxWrapVG, and CGfxWrapDirectFb.

◆ BlitImg() [1/2]

void CGfxWrap::BlitImg ( const CGUIImageData kImageData,
const eC_Value &  vAbsDestX,
const eC_Value &  vAbsDestY 
)
inline

Blit an image. Blits (draws) the image contained in the data to the specified position on the screen.

Parameters
kImageDataimage-data
vAbsDestXDestination x-position.
vAbsDestYDestination y-position.

◆ BlitImg() [2/2]

void CGfxWrap::BlitImg ( const ImageResource_t eID,
const eC_Value &  vAbsDestX,
const eC_Value &  vAbsDestY 
)

Blit an image. Blits (draws) the image associated with the supplied Image-identifier to the specified position on the screen.

Parameters
eIDIdentifier of the image to be blitted.
vAbsDestXDestination x-position.
vAbsDestYDestination y-position.

◆ BlitImgExt() [1/4]

void CGfxWrap::BlitImgExt ( const ImageResource_t eID,
const CGUIRect kAbsRect,
const eC_Bool &  bStretch = true,
const eC_UByte &  ubAlpha = 255 
)

Extended blit of an image. Performs a stretch blit of the image associated with the supplied Image Identifier. The image will be blitted to the position given by the upper left corner of the supplied rectangle. It will be stretched to meet the desired width and height if the bStretch flag is set to true.

Parameters
eIDIdentifier of the image to be blitted.
kAbsRectRectangle describing the destination position and size of the image on the screen
bStretchImage will be stretched to meet the desired size if set to true.
ubAlphaDegree of transparency. 0=transparent 255=opaque Default is opaque.

◆ BlitImgExt() [2/4]

void CGfxWrap::BlitImgExt ( const ImageResource_t eID,
const CGUIRect kSrcAbsRect,
const CGUIRect kDstAbsRect,
const eC_UByte &  ubAlpha = 255 
)

Extended blit of an image. Performs a stretch blit of the image associated with the supplied Image Identifier. An area of the image (which is defined by kSrcAbsRect) will be blitted to the position given by the upper left corner of kDstAbsRect. It will be stretched to meet the desired width and height.

Parameters
eIDIdentifier of the image to be blitted.
kSrcAbsRectRectangle describing the relevant area within the source image
kDstAbsRectRectangle describing the destination position and size of the image on the screen
ubAlphaDegree of transparency. 0=transparent 255=opaque Default is opaque.

◆ BlitImgExt() [3/4]

void CGfxWrap::BlitImgExt ( const ImageResource_t eID,
const eC_UInt &  uiAbsSrcX,
const eC_UInt &  uiAbsSrcY,
const eC_UInt &  uiSrcWidth,
const eC_UInt &  uiSrcHeight,
const eC_Value &  vAbsDestX,
const eC_Value &  vAbsDestY,
const eC_Value &  vDestWidth,
const eC_Value &  vDestHeight,
const eC_UByte &  ubAlpha = 255,
const eC_Value &  vAngle = eC_FromFloat(0),
const eC_Value &  vRotCenterX = eC_FromFloat(0.5),
const eC_Value &  vRotCenterY = eC_FromFloat(0.5) 
)

Extended blit of an image. Performs a rotated stretch blit of the image associated with the supplied Image Identifier. An area of the image (which is defined by uiAbsSrcX, uiAbsSrcY, uiSrcWidth and uiSrcHeight) will be blitted to the position given by vAbsDestX and vAbsDestY. It will be stretched to meet vDestWidth and vDestHeight if the bStretch flag is set to true. Optionally, the image can be rotated by vAngle degrees around a point defined by vRotCenterX and vRotCenterY. The center of rotation is given in coordinates within a range of 0 to 1 (similar to U/V coordinates), where (0,0) is the image's top left corner, (1,1) equals the lower right corner and (0.5, 0.5) corresponds to the image's center.

Parameters
eIDIdentifier of the image to be blitted.
uiAbsSrcXX coordinate of upper left corner of the relevant area within the source image
uiAbsSrcYY coordinate of upper left corner of the relevant area within the source image
uiSrcWidthWidth of the relevant area within the source image
uiSrcHeightHeight of the relevant area within the source image
vAbsDestXDestination X position in absolute coordinates
vAbsDestYDestination Y position in absolute coordinates
vDestWidthDestination width
vDestHeightDestination height
ubAlphaDegree of transparency. 0=transparent 255=opaque Default is opaque.
vAngleAngle in degrees by which the image will be rotated
vRotCenterXRotation center X. In range of 0 to 1 (like U/V coordinates)
vRotCenterYRotation center Y. In range of 0 to 1 (like U/V coordinates)

◆ BlitImgExt() [4/4]

void CGfxWrap::BlitImgExt ( const ImageResource_t eID,
const eC_Value &  vAbsDestX,
const eC_Value &  vAbsDestY,
const eC_Value &  vWidth,
const eC_Value &  vHeight,
const eC_Bool &  bStretch = true,
const eC_UByte &  ubAlpha = 255 
)

Extended blit of an image. Performs a stretch blit of the image associated with the supplied Image Identifier. The image will be blitted to the position specified by the x- and y-parameter and automatically stretched to meet the desired width and height if the bStretch flag is set to true.

Parameters
eIDIdentifier of the image to be blitted.
vAbsDestXDestination x-position.
vAbsDestYDestination y-position.
vWidthTarget width. Image will be automatically stretched if necessary, if bStretch is true.
vHeightTarget height. Image will be automatically stretched if necessary, if bStretch is true.
bStretchImage will be stretched to meet the desired size if set to true.
ubAlphaDegree of transparency. 0=transparent 255=opaque Default is opaque.

◆ BlitImgExtImpl() [1/2]

virtual void CGfxWrap::BlitImgExtImpl ( const CGUIImageData kImageData,
const eC_Value &  vAbsDestX,
const eC_Value &  vAbsDestY 
)
protectedpure virtual

Blits an image. This MUST be implemented by all graphics wrappers. It is ensured that the supplied image ID is in the valid range and is not DUMMY_IMAGE. For detailed explanations, please refer to CGfxWrap::BlitImgExt

Parameters
kImageDataImageData
vAbsDestXDestination X position in absolute coordinates
vAbsDestYDestination Y position in absolute coordinates

Implemented in CGfxWrapBLU, CGfxWrapDAVE, CGfxWrapDAVEHD, CGfxWrapeGML, CGfxWrapGL, CGfxWrap_stm32f429, CGfxWrap_stm32f746, and CGfxWrapNull.

◆ BlitImgExtImpl() [2/2]

virtual void CGfxWrap::BlitImgExtImpl ( const ImageResource_t eID,
const eC_UInt &  uiAbsSrcX,
const eC_UInt &  uiAbsSrcY,
const eC_UInt &  uiSrcWidth,
const eC_UInt &  uiSrcHeight,
const eC_Value &  vAbsDestX,
const eC_Value &  vAbsDestY,
const eC_Value &  vDestWidth,
const eC_Value &  vDestHeight,
const eC_UByte &  ubAlpha = 255,
const eC_Value &  vAngle = eC_FromFloat(0),
const eC_Value &  vRotCenterX = eC_FromFloat(0.5),
const eC_Value &  vRotCenterY = eC_FromFloat(0.5) 
)
protectedpure virtual

Blits an image. This MUST be implemented by all graphics wrappers. It is ensured that the supplied image ID is in the valid range and is not DUMMY_IMAGE. For detailed explanations, please refer to CGfxWrap::BlitImgExt

Parameters
eIDIdentifier of the image to be blitted.
uiAbsSrcXX coordinate of upper left corner of the relevant area within the source image
uiAbsSrcYY coordinate of upper left corner of the relevant area within the source image
uiSrcWidthWidth of the relevant area within the source image
uiSrcHeightHeight of the relevant area within the source image
vAbsDestXDestination X position in absolute coordinates
vAbsDestYDestination Y position in absolute coordinates
vDestWidthDestination width
vDestHeightDestination height
ubAlphaDegree of transparency. 0=transparent 255=opaque Default is opaque.
vAngleAngle in degrees by which the image will be rotated
vRotCenterXRotation center X. In range of 0 to 1 (like U/V coordinates)
vRotCenterYRotation center Y. In range of 0 to 1 (like U/V coordinates)

Implemented in CGfxWrapVG, CGfxWrapBLU, CGfxWrapNull, CGfxWrapDirectFb, CGfxWrapDAVE, CGfxWrapDAVEHD, CGfxWrapeGML, CGfxWrapGL, CGfxWrap_stm32f429, and CGfxWrap_stm32f746.

◆ BlitImgNinePatch() [1/2]

void CGfxWrap::BlitImgNinePatch ( const ImageResource_t eID,
const CGUIRect kAbsRect,
const CGUINinePatch kNinePatch,
const eC_UByte &  ubAlpha = 255 
)

Nine-Patch blit of an image.

See also
BlitImgNinePatch(const ImageResource_t &eID, const CGUIRect& kAbsRect, const eC_UInt uiTopBorder, const eC_UInt uiBottomBorder, const eC_UInt uiLeftBorder, const eC_UInt uiRightBorder, const eC_UByte &ubAlpha)
Parameters
eIDIdentifier of the image to be blitted.
kAbsRectRectangle describing the destination position and size of the image on the screen
kNinePatchNine-Patch describing the borders
ubAlphaDegree of transparency. 0=transparent 255=opaque. Default is opaque.

◆ BlitImgNinePatch() [2/2]

virtual void CGfxWrap::BlitImgNinePatch ( const ImageResource_t eID,
const CGUIRect kAbsRect,
const eC_UInt  uiTopBorder,
const eC_UInt  uiBottomBorder,
const eC_UInt  uiLeftBorder,
const eC_UInt  uiRightBorder,
const eC_UByte &  ubAlpha = 255 
)
virtual

Nine-Patch blit of an image. Performs an intelligent 9-patch stretch blit of the image associated with the supplied Image Identifier. The image will be blitted to the position given by the upper left corner of the supplied rectangle and stretched to the desired width and height. To reduce visual artifacts during stretching, the image will automatically be split up into 9 parts. The four corners will be left unscaled, the four edges are each scaled in one axis, and the middle part is stretched in both axes. The two parameters uiXBorder and uiYBorder specify the width/height of the sections in pixels.

See also
CGUINinePatch
Parameters
eIDIdentifier of the image to be blitted.
kAbsRectRectangle describing the destination position and size of the image on the screen
uiTopBorderHeight of the topmost three sections of the Nine-patch in pixels
uiBottomBorderHeight of the lowermost three sections of the Nine-patch in pixels
uiLeftBorderWidth of the leftmost three sections of the Nine-patch in pixels
uiRightBorderWidth of the rightmost three sections of the Nine-patch in pixels
ubAlphaDegree of transparency. 0=transparent 255=opaque. Default is opaque.

Reimplemented in CGfxWrapGL.

◆ ChangeFont()

void CGfxWrap::ChangeFont ( const FontResource_t eFontID,
const eC_Char *const  pcPath,
const eC_UInt &  uiFontSize,
const CFntWrap::GUIFont_t eFontStyle 
)

Change a font identified by pcPath in an array of fonts at position eFontID. If the font already exists, it is unloaded first.

Parameters
eFontIDid (and hence index) of the font.
pcPathPath or name of the font.
uiFontSizeSize of the font.
eFontStyleStyle of the font (italic, underline, bold, ... see GUIFont.h).

◆ ClearInvalidRect()

virtual void CGfxWrap::ClearInvalidRect ( )
inlinevirtual

Called for each invalidated rectangle right before CGUI::HandleDraw() is called. A derived graphics wrapper can implement this method to do necessary clean-up, if required, before the GUI tree is drawn. Since HandleDraw will only affect the current invalidated rectangle, this method should also restrict its operations to that region of the screen.

◆ CreateBitmapPlane()

virtual GUIBitmapPlaneID_t CGfxWrap::CreateBitmapPlane ( const CGUIObject rkParentObject,
const eC_Value &  vWidth,
const eC_Value &  vHeight 
)
virtual

Creates a BitmapPlane with given width and height.

Parameters
rkParentObjectreference to the GUIObject which will be the parent of the BitmapPlane
vWidthwidth of the new BitmapPlane
vHeightheight of the new BitmapPlane
Returns
the ID of the new generated BitmapPlane

◆ CreateGfxDependentBitmap()

virtual CGUIBitmapPlane * CGfxWrap::CreateGfxDependentBitmap ( GUIBitmapPlaneID_t  uiNewBitmapID,
const CGUIObject rkParentObject,
const eC_Value &  vWidth,
const eC_Value &  vHeight 
)
protectedvirtual

Method which will be called by CreateBitmap to instantiate a new Bitmap-Object. This Method needs to be implemented by every derived GfxWrapper. If a GfxWrapper does not support Bitmap-Handling, he may create an CGUIBaseBitmap

See also
Bitmap planes
Parameters
uiNewBitmapIDID of the new BitmapPlane
rkParentObjectreference to the GUIObject which will be the parent of the bitmap
vWidthwidth of the new bitmap
vHeightheight of the new bitmap
Returns
pointer to the new created BitmapObject

Reimplemented in CGfxWrapBLU, CGfxWrapDAVE, CGfxWrapDAVEHD, CGfxWrapGL, CGfxWrapOGL, CGfxWrapOGLES1_1, and CGfxWrapOGLES2.

◆ DeleteBitmapPlane()

void CGfxWrap::DeleteBitmapPlane ( const GUIBitmapPlaneID_t  uiBitmapID)

Deletes the BitmapPlane with the given ID.

Parameters
uiBitmapIDID of the BitmapPlane to delete

◆ DeleteBitmapPlanes()

void CGfxWrap::DeleteBitmapPlanes ( const CGUIObject pkObject)

Deletes all BitmapPlanes belonging to the given Object.

Parameters
pkObjectpointer of the Object whose BitmapPlanes will be deleted

◆ DestroyScreen()

virtual void CGfxWrap::DestroyScreen ( )
inlineprotectedvirtual

Method to clean and release the screen which was created via the CreateScreen Method.

Reimplemented in CGfxWrapDAVE, CGfxWrapDAVEHD, CGfxWrapeGML, and CGfxWrapDirectFb.

◆ DrawToBitmap()

virtual eC_Bool CGfxWrap::DrawToBitmap ( GUIBitmapPlaneID_t  uiBitmapID)
virtual

Changes the RenderTarget to the BitmapPlane with the given ID. All successive GfxWrap draw commands will be done in the bitmap of this plane instead of within the framebuffer

Parameters
uiBitmapIDID of the BitmapPlane in which will be drawn.
Returns
True if the BitmapPlane with given ID exists, otherwise False

Reimplemented in CGfxWrapBLU, CGfxWrapDAVE, CGfxWrapDAVEHD, and CGfxWrapGL.

◆ DrawToScreen()

virtual eC_Bool CGfxWrap::DrawToScreen ( )
virtual

Activates the Screen as active RenderTarget again

Returns
True if the changing was successful, otherwise False

Reimplemented in CGfxWrapBLU, CGfxWrapDAVE, CGfxWrapDAVEHD, CGfxWrapeGML, and CGfxWrapGL.

◆ Ellipse() [1/2]

void CGfxWrap::Ellipse ( const CGUIRect kAbsRect,
const eC_Bool &  bFilled 
)

Draws an ellipse defined by a CGUIRect

See also
CGfxWrap::Ellipse(const eC_Value& vAbsX1, const eC_Value& vAbsY1, const eC_Value& vAbsX2, const eC_Value& vAbsY2, const eC_Bool &bFilled)
Parameters
kAbsRectCGUIRect containing the rectangle corners' endpoints
bFilledSpecifies whether the ellipse will be drawn outlined (false) or filled (true)

◆ Ellipse() [2/2]

virtual void CGfxWrap::Ellipse ( const eC_Value &  vAbsX1,
const eC_Value &  vAbsY1,
const eC_Value &  vAbsX2,
const eC_Value &  vAbsY2,
const eC_Bool &  bFilled 
)
protectedpure virtual

Draws an ellipse which is completly inside the rectangle described through the rectangle the top left edge at (vAbsX1, vAbsY1) and bottom right edge at (vAbsX2, vAbsY2). The ellipse will be filled out if the last parameter is true

Parameters
vAbsX1X-coordinate of bounding rectangle's top left corner
vAbsY1Y-Coordinate of bounding rectangle's top left corner
vAbsX2X-coordinate of bounding rectangle's bottom right corner
vAbsY2Y-Coordinate of bounding rectangle's bottom right corner
bFilledSpecifies whether the ellipse will be drawn outlined (false) or filled (true)

Implemented in CGfxWrapBLU, CGfxWrapeGML, CGfxWrapNull, CGfxWrapVG, CGfxWrapDirectFb, CGfxWrap_stm32f429, CGfxWrap_stm32f746, CGfxWrapGL, CGfxWrapDAVE, and CGfxWrapDAVEHD.

◆ FilledRect() [1/2]

void CGfxWrap::FilledRect ( const CGUIRect kAbsRect)

Draws a filled rectangle defined by a CGUIRect

Parameters
kAbsRectCGUIRect containing the rectangle corners' endpoints
See also
CGfxWrap::FilledRect(const eC_Value& vAbsX1, const eC_Value& vAbsY1, const eC_Value& vAbsX2, const eC_Value& vAbsY2)

◆ FilledRect() [2/2]

virtual void CGfxWrap::FilledRect ( const eC_Value &  vAbsX1,
const eC_Value &  vAbsY1,
const eC_Value &  vAbsX2,
const eC_Value &  vAbsY2 
)
protectedpure virtual

Draws a filled rectangle with the top left edge at (vAbsX1, vAbsY1) and bottom right edge at (vAbsX2, vAbsY2) The bottom edge and the right edge is not included in the drawn rect. e.g. FilledRect(0, 0, 10, 10); the rect is drawn from (0,0) to (9,9) (both included).

See also
CGUIObject::GetAbsRect()
Parameters
vAbsX1X-coordinate of top left corner
vAbsY1Y-Coordinate of top left corner
vAbsX2X-coordinate of bottom right corner
vAbsY2Y-Coordinate of bottom right corner

Implemented in CGfxWrapBLU, CGfxWrapNull, CGfxWrapVG, CGfxWrapDirectFb, CGfxWrap_stm32f429, CGfxWrap_stm32f746, CGfxWrapDAVE, CGfxWrapDAVEHD, CGfxWrapeGML, and CGfxWrapGL.

◆ FinishDrawToBitmap()

virtual eC_Bool CGfxWrap::FinishDrawToBitmap ( )
protectedvirtual

This is called by the framework when rendering to a bitmap plane is finished.

Returns
true if successful

◆ FittingNumChars()

void CGfxWrap::FittingNumChars ( const eC_String *const  pkText,
eC_Value  vWidthMax,
eC_UInt &  uiNumChars,
const eC_Bool &  bStartAtEnd = false 
)

Calculates the number of characters that fit in the given maximum width for a given text-string using the currently set font.

Parameters
pkTextThe text.
vWidthMaxMaximum width of the font in pixels.
uiNumCharsReference to the numbers of characters that fit given the maximum width.
bStartAtEndif this is true the text will be processed the other way round (e.g. RTL-languages)

◆ ForceRefresh()

void CGfxWrap::ForceRefresh ( )
inline

Forces the graphics wrapper to call Refresh() in the next frame, no matter if anything was invalidated. An application can use this when implementing a derived graphics wrapper that for instance displays a changing background image that is not known to Guiliani. The framework will call Refresh() at least once, using the refresh type FORCED_REFRESH. Any other necessary refresh calls will take place after that. At the time of this call, the invalidated rectangle may not be comprehensive and the absolute object positions are not updated yet.

◆ GetAscender()

eC_Int CGfxWrap::GetAscender ( ) const

Returns the currently set font's ascender-metric. If the ascender is not supported by a given Font-Wrapper, this returns 0.

Returns
ascender in pixels

◆ GetBitmapPlane()

CGUIBitmapPlane & CGfxWrap::GetBitmapPlane ( const GUIBitmapPlaneID_t  uiBitmapID)

Accessing the bitmap with the given ID. If the bitmap with the given ID does not exist, a default bitmap with the size of 0/0 will be returned

Parameters
uiBitmapIDid of the bitmap
Returns
CGUIBitmapPlane& The bitmap plane

◆ GetBitmapPlaneData()

virtual eC_TArray< eC_UByte > * CGfxWrap::GetBitmapPlaneData ( const GUIBitmapPlaneID_t &  eBitmapPlaneID)
virtual

Return data of bitmap-plane in array

Parameters
eBitmapPlaneIDid of bitmap-plane
Returns
data

◆ GetCliprect()

virtual void CGfxWrap::GetCliprect ( CGUIRect AbsClipRect) const
virtual

Retrieves the currently set clipping rectangle

Parameters
AbsClipRect

◆ GetDescender()

eC_Int CGfxWrap::GetDescender ( ) const

Returns the currently set font's descender-metric. If the descender is not supported by a given Font-Wrapper, this returns 0.

Returns
descender in pixels

◆ GetDoubleBufferingEnforcesFlipping()

eC_Bool CGfxWrap::GetDoubleBufferingEnforcesFlipping ( )
inline

Returns whether the DoubleBufferingEnforcesFlipping-flag has been set.

Returns
The current status of the DoubleBufferingEnforcesFlipping-flag (as set by the user, or marked as default by the chosen graphics wrapper)

◆ GetDummyBitmap()

CGUIBitmapPlane & CGfxWrap::GetDummyBitmap ( )
protected

Accessor for the dummy bitmap with the size 0/0

Returns
reference to the dummy bitmap

◆ GetForegroundColor()

eC_UInt CGfxWrap::GetForegroundColor ( ) const
inline

Gets the current foreground color.

Returns
The foreground color.

◆ GetGlobalAlpha()

eC_UByte CGfxWrap::GetGlobalAlpha ( ) const
inline

Gets the current alpha value.

Returns
The alpha value.

◆ GetGlyphMetrics()

void CGfxWrap::GetGlyphMetrics ( const eC_Char  cChar,
CFntWrap::GlyphMetrics_t kMetrics 
)

Return glyph-metrics

Parameters
cChar
kMetrics

◆ GetImageSize()

virtual eC_UInt CGfxWrap::GetImageSize ( const ImageResource_t eID) const
protectedpure virtual

Computes the size of a loaded image's raw pixel data (e.g. RGBA or RGB565, depending on platform) in memory. Needed for the Image Cache. Since this will be called by the Guiliani Image cache, derived wrappers _must not_ call NotifyImageAccess() from within this method.

Parameters
eIDThe image's ID.
Returns
the size of the image in bytes

Implemented in CGfxWrapBLU, CGfxWrapDAVE, CGfxWrapDAVEHD, CGfxWrapeGML, CGfxWrapNull, CGfxWrapGL, CGfxWrapDirectFb, and CGfxWrapVG.

◆ GetImgHeight()

eC_UInt CGfxWrap::GetImgHeight ( const ImageResource_t eID) const

Gets the height of an image. This method first checks for validity of the ID, then calls GetImgHeightImpl().

Parameters
eIDIdentifier of the image.
Returns
The height of the image in pixels.

◆ GetImgHeightImpl()

virtual eC_UInt CGfxWrap::GetImgHeightImpl ( const ImageResource_t eID) const
protectedpure virtual

Returns the height of an image. Must be implemented by each graphics wrapper.

Parameters
eIDThe ID of the image whose width should be returned. It is ensured that eID is always in the valid range and not DUMMY_IMAGE.
Returns
The width of the image in pixels.

Implemented in CGfxWrapBLU, CGfxWrapDAVE, CGfxWrapDAVEHD, CGfxWrapeGML, CGfxWrapGL, CGfxWrapDirectFb, CGfxWrapNull, and CGfxWrapVG.

◆ GetImgOriginRect()

CGUIRect CGfxWrap::GetImgOriginRect ( const ImageResource_t eID) const
inline

Returns the bounding box of the image, placed at the origin (0, 0)

Parameters
eIDimage-ID
Returns
bounding box

◆ GetImgWidth()

eC_UInt CGfxWrap::GetImgWidth ( const ImageResource_t eID) const

Returns the width of an image. This method first checks for validity of the ID, then calls GetImgWidthImpl().

Parameters
eIDIdentifier of the image.
Returns
The width of the image in pixels.

◆ GetImgWidthImpl()

virtual eC_UInt CGfxWrap::GetImgWidthImpl ( const ImageResource_t eID) const
protectedpure virtual

Returns the width of an image. Must be implemented by each graphics wrapper.

Parameters
eIDThe ID of the image whose width should be returned. It is ensured that eID is always in the valid range and not DUMMY_IMAGE.
Returns
The width of the image in pixels.

Implemented in CGfxWrapBLU, CGfxWrapDAVE, CGfxWrapDAVEHD, CGfxWrapeGML, CGfxWrapGL, CGfxWrapDirectFb, CGfxWrapNull, and CGfxWrapVG.

◆ GetInternalLeading()

eC_Int CGfxWrap::GetInternalLeading ( ) const

Returns the currently set font's internal leading. If the internal leading is not supported by a given Font-Wrapper, this returns 0.

Returns
internal leading in pixels

◆ GetInvalidatedRect()

const CGUIRect & CGfxWrap::GetInvalidatedRect ( ) const
inline

Returns the current invalidated rectangle

Returns
invalidated rectangle

◆ GetNextPowerOf2()

static eC_UInt CGfxWrap::GetNextPowerOf2 ( const eC_Value &  vValue)
inlinestatic

helper method for calculating the next power of two _very_ fast.

Parameters
vValueeC_value for which the next power of two will be calculated
Returns
Returns the closest power-of-two number greater or equal to vValue. If NON_POWER_OF_2_TEXTURES is defined, it will return the rounded up integer value of vValue. Will return 0 when n = 0 and 1 when n = 1.

◆ GetNOFFonts()

eC_UInt CGfxWrap::GetNOFFonts ( )

Gets the number of fonts (array size).

Returns
Number of fonts. If no font wrapper was instantiated, the GUIConfig constant number of font resources is returned which only reflects 'static' resources without taking dynamic fonts into account.

◆ GetNOFImages()

virtual eC_UInt CGfxWrap::GetNOFImages ( )
inlinevirtual

Gets the number of images (array size).

Returns
Number of images.

◆ GetPhysicalScreenHeight()

virtual eC_UInt CGfxWrap::GetPhysicalScreenHeight ( )
pure virtual

Returns the screen height. Will always return the physical screen height with which the GfxWrap was originally initialized. Regardless of whether the virtual screen size has been modified e.g. while drawing into a CGUIBitmapPlane.

Returns
Physical screen height

Implemented in CGfxWrapBLU, CGfxWrapDAVE, CGfxWrapDAVEHD, CGfxWrapeGML, CGfxWrapNull, CGfxWrapGL, CGfxWrapVG, and CGfxWrapDirectFb.

◆ GetPhysicalScreenWidth()

virtual eC_UInt CGfxWrap::GetPhysicalScreenWidth ( )
pure virtual

Returns the screen width. Will always return the physical screen width with which the GfxWrap was originally initialized. Regardless of whether the virtual screen size has been modified e.g. while drawing into a CGUIBitmapPlane.

Returns
Physical screen width

Implemented in CGfxWrapBLU, CGfxWrapDAVE, CGfxWrapDAVEHD, CGfxWrapeGML, CGfxWrapNull, CGfxWrapGL, CGfxWrapVG, and CGfxWrapDirectFb.

◆ GetRenderingOffset()

void CGfxWrap::GetRenderingOffset ( eC_Value &  vOffsetX,
eC_Value &  vOffsetY 
)

Return rendering offset

Parameters
vOffsetX
vOffsetY

◆ GetScreenFormat()

CGUICommonEnums::ImageType_t CGfxWrap::GetScreenFormat ( ) const
inline

Returns the pixel-format of the screen (framebuffer)

Returns
screen-format

◆ GetScreenHorizontalPPI()

virtual eC_UInt CGfxWrap::GetScreenHorizontalPPI ( ) const
inlinevirtual

Returns the horizontal pixel size in pixel per inch. 72 per default

Returns
horizontal PPI

◆ GetScreenVerticalPPI()

virtual eC_UInt CGfxWrap::GetScreenVerticalPPI ( ) const
inlinevirtual

Returns the vertical pixel size in pixel per inch. 72 per default

Returns
vertical PPI

◆ GetTextXPosAdjustment()

eC_Value CGfxWrap::GetTextXPosAdjustment ( const CGUIText::HorAligned_t  eHorAlignment)

Get the X position adjustment because of platform specific font structure.

Parameters
eHorAlignmentThe horizontal alignment of GUIText object.
Returns
The x position adjustment. The GUItext object should add this adjustment to get the correct position.

◆ GetTextYPosAdjustment()

eC_Value CGfxWrap::GetTextYPosAdjustment ( const CGUIText::VerAligned_t  eVerAlignment)

Get the Y position adjustment because of platform specific font structure.

Parameters
eVerAlignmentThe vertical alignment of GUIText object.
Returns
The y position adjustment. The GUItext object should add this adjustment to get the correct position.

◆ GetUsedBitmapPlaneID()

GUIBitmapPlaneID_t CGfxWrap::GetUsedBitmapPlaneID ( ) const
inline

Accessor for the ID of the currently used Bitmap. 0 if the Wrapper renders directly to the screen.

Returns
ID of the render target bitmap or 0 for the screen

◆ GetVirtualScreenHeight()

virtual eC_UInt CGfxWrap::GetVirtualScreenHeight ( )
pure virtual

Returns the screen height in pixels, may vary if DrawToBitmap is active. It will then return the active BitmapPlane's height instead.

See also
GetPhysicalScreenHeight()
Returns
eC_UInt The screen height

Implemented in CGfxWrapBLU, CGfxWrapDAVE, CGfxWrapDAVEHD, CGfxWrapeGML, CGfxWrapNull, CGfxWrapGL, CGfxWrapVG, and CGfxWrapDirectFb.

◆ GetVirtualScreenWidth()

virtual eC_UInt CGfxWrap::GetVirtualScreenWidth ( )
pure virtual

Returns the screen width in pixels, may vary if DrawToBitmap is active. It will then return the active BitmapPlane's width instead.

See also
GetPhysicalScreenWidth()
Returns
eC_UInt The screen width

Implemented in CGfxWrapBLU, CGfxWrapDAVE, CGfxWrapDAVEHD, CGfxWrapeGML, CGfxWrapNull, CGfxWrapGL, CGfxWrapVG, and CGfxWrapDirectFb.

◆ GetWorkingMemory()

virtual eC_UByte * CGfxWrap::GetWorkingMemory ( const eC_UInt &  uiSize)
virtual

Get working memory

Parameters
uiSizesize of memory
Returns
memory or NULL if unsuccessful

◆ GetWrapperName()

eC_String CGfxWrap::GetWrapperName ( ) const
inline

Get the name of the currently used wrapper

Returns
wrapper-name

◆ ImageExists()

virtual eC_Bool CGfxWrap::ImageExists ( const ImageResource_t  eID) const
pure virtual

Returns whether the image with the given ID currently is loaded within the Graphics Wrapper. This interface must be implemented by derived graphics wrappers.

Parameters
eIDThe ID to check
Returns
True if the image with the given ID is currently loaded, False otherwise.

Implemented in CGfxWrapBLU, CGfxWrapDAVE, CGfxWrapDAVEHD, CGfxWrapeGML, CGfxWrapNull, CGfxWrapGL, CGfxWrapDirectFb, and CGfxWrapVG.

◆ InvalidateRect() [1/2]

void CGfxWrap::InvalidateRect ( const CGUIRect kInvalidRect)

Invalidates a region of the GUI. All objects overlapping with an invalidated region will be redrawn during the next redraw-cycle. The right edge and the bottom edge of the rectangle is not included in the invalidation. e.g. InvalidateRect(0, 0, 10, 10); will invalidate from (0,0) to (9,9) on the screen (both included). So InvalidateRect(CGUIObject::GetAbsRect()) will invalidate the complete drawing area of the object.

See also
CGUIObject::GetAbsRect().
Parameters
kInvalidRectRectangular region of the GUI which has to be redrawn

◆ InvalidateRect() [2/2]

void CGfxWrap::InvalidateRect ( const eC_Value &  vAbsX1,
const eC_Value &  vAbsY1,
const eC_Value &  vAbsX2,
const eC_Value &  vAbsY2 
)
inline

Invalidates a region of the GUI.

See also
CGfxWrap::InvalidateRect(const CGUIRect &kInvalidRect)
Parameters
vAbsX1X-Coordinate of region's top left corner
vAbsY1Y-Coordinate of region's top left corner
vAbsX2X-Coordinate of region's bottom right corner
vAbsY2Y-Coordinate of region's bottom right corner

◆ Line() [1/2]

void CGfxWrap::Line ( const CGUIRect kAbsRect)

Draws a line defined by a CGUIRect

Parameters
kAbsRectCGUIRect containing the line endpoints
See also
CGfxWrap::Line(const eC_Value& vAbsX1, const eC_Value& vAbsY1, const eC_Value& vAbsX2, const eC_Value& vAbsY2)

◆ Line() [2/2]

virtual void CGfxWrap::Line ( const eC_Value &  vAbsX1,
const eC_Value &  vAbsY1,
const eC_Value &  vAbsX2,
const eC_Value &  vAbsY2 
)
protectedpure virtual

the following methods are protected to prevent calling them directly

Draws a line from (vAbsX1, vAbsY1) to (vAbsX2, vAbsY2)

Parameters
vAbsX1X-coordinate of starting point
vAbsY1Y-Coordinate of starting point
vAbsX2X-coordinate of ending point
vAbsY2Y-Coordinate of ending point

Implemented in CGfxWrapBLU, CGfxWrapNull, CGfxWrapVG, CGfxWrapDirectFb, CGfxWrap_stm32f429, CGfxWrap_stm32f746, CGfxWrapDAVE, CGfxWrapDAVEHD, CGfxWrapeGML, and CGfxWrapGL.

◆ LoadFont()

void CGfxWrap::LoadFont ( const FontResource_t eFontID)

Loads a font identified by pcPath into an array of fonts at position eFontID. If the font already exists, it it not loaded again. Should only be called by a GfxWrapper.

Parameters
eFontIDid (and hence index) of the font.

◆ LoadGlyphData()

virtual void CGfxWrap::LoadGlyphData ( CGUIImageData pkImageData,
const eC_UInt &  uiGlyphWidth,
const eC_UInt &  uiGlyphHeight,
eC_UByte *  pkGlyphBitmap 
)
virtual

load data for glyph

Parameters
pkImageDataimage-data to modify
uiGlyphWidthwidth of glyph
uiGlyphHeightheight of glyph
pkGlyphBitmapbitmap of glyph

Reimplemented in CGfxWrapDAVE, and CGfxWrapDAVEHD.

◆ LoadImg() [1/2]

void CGfxWrap::LoadImg ( const eC_String &  kPath,
const ImageResource_t eID 
)
protected

Loads an image. This loads an image from the given path and associates it with an Image-Identifier. This calls the LoadImgImpl() method internally, which has to be implemented by every GfxWrapper.

Parameters
kPathComplete path and filename of the image to be loaded.
eIDID by which the image will later be accessible.

◆ LoadImg() [2/2]

void CGfxWrap::LoadImg ( void *  pkMemory,
const eC_UInt &  uiWidth,
const eC_UInt &  uiHeight,
const eC_UInt &  eImageType,
const ImageResource_t eID 
)
protected

Loads an image. This loads an image which resides in the memory with a given size and format and associates it with an Image-Identifier. This calls the LoadImgImpl() method internally, which has to be implemented by every GfxWrapper.

Parameters
pkMemory
uiWidth
uiHeight
eImageType
eIDID by which the image will later be accessible.

◆ LoadImgImpl() [1/2]

virtual void CGfxWrap::LoadImgImpl ( const eC_String &  kPath,
const ImageResource_t eID 
)
protectedpure virtual

Loads an image. This loads an image from the given path and associates it with an Image-Identifier.

Parameters
kPathComplete path and filename of the image to be loaded.
eIDID by which the image will later be accessible.

Implemented in CGfxWrapBLU, CGfxWrapDAVE, CGfxWrapDAVEHD, CGfxWrapDirectFb, CGfxWrapNull, CGfxWrapVG, CGfxWrapeGML, and CGfxWrapGL.

◆ LoadImgImpl() [2/2]

virtual void CGfxWrap::LoadImgImpl ( void *  pkMemory,
const eC_UInt &  uiWidth,
const eC_UInt &  uiHeight,
const eC_UInt &  eImageType,
const ImageResource_t eID 
)
protectedpure virtual

Loads a memory-image. This loads an image from a pointer and associates it with an Image-Identifier.

Parameters
pkMemorypointer to image-data.
uiWidth
uiHeight
eImageType
eIDID by which the image will later be accessible.

Implemented in CGfxWrapBLU, CGfxWrapDAVE, CGfxWrapDAVEHD, CGfxWrapeGML, CGfxWrapGL, and CGfxWrapNull.

◆ Rect() [1/2]

void CGfxWrap::Rect ( const CGUIRect kAbsRect)

Draws a rectangle defined by a CGUIRect

Parameters
kAbsRectCGUIRect containing the rectangle corners' endpoints
See also
CGfxWrap::Rect(const eC_Value& vAbsX1, const eC_Value& vAbsY1, const eC_Value& vAbsX2, const eC_Value& vAbsY2)

◆ Rect() [2/2]

virtual void CGfxWrap::Rect ( const eC_Value &  vAbsX1,
const eC_Value &  vAbsY1,
const eC_Value &  vAbsX2,
const eC_Value &  vAbsY2 
)
protectedpure virtual

Draws a rectangle with the top left edge at (vAbsX1, vAbsY1) and bottom right edge at (vAbsX2, vAbsY2). The bottom edge and the right edge is not included in the drawn rect. e.g. Rect(0, 0, 10, 10); the rect is drawn from (0,0) to (9,9) (both included).

See also
CGUIObject::GetAbsRect()
Parameters
vAbsX1X-coordinate of top left corner
vAbsY1Y-Coordinate of top left corner
vAbsX2X-coordinate of bottom right corner
vAbsY2Y-Coordinate of bottom right corner

Implemented in CGfxWrapBLU, CGfxWrapNull, CGfxWrapVG, CGfxWrapDirectFb, CGfxWrap_stm32f429, CGfxWrap_stm32f746, CGfxWrapDAVE, CGfxWrapDAVEHD, CGfxWrapeGML, and CGfxWrapGL.

◆ RedrawGUI()

virtual void CGfxWrap::RedrawGUI ( )
virtual

Redraw the invalidated regions of the screen and refresh the visible display of the GUI. This method is declared virtual so that you may implement specialized behaviour in derived classes, for example if you are using a graphics engine which forces you to flip the front and back buffers and you are thus required to disable the Invalidated-rectangles approach.

◆ Refresh()

virtual eC_Bool CGfxWrap::Refresh ( const RefreshCall_t  eRefreshCallType)
protectedpure virtual

Method to bring the screen content onto the physical screen so that it becomes visible, usually via a blit operation.

Parameters
eRefreshCallTypeThe call type of this refresh
Returns
True of the refresh was performed, False otherwise

Implemented in CGfxWrapBLU, CGfxWrapDAVECyclone5, CGfxWrapDAVE, CGfxWrapDAVEHD, CGfxWrapeGML, CGfxWrapNull, CGfxWrapOGL, CGfxWrapOGLES, CGfxWrapVG, CGfxWrapDirectFb, CGfxWrap_stm32f429, and CGfxWrap_stm32f746.

◆ RefreshImage()

virtual void CGfxWrap::RefreshImage ( const ImageResource_t eID,
void *  pkMemory 
)
inlineprotectedvirtual

Refresh a memory-image

Parameters
eIDID of image to refresh
pkMemorymemory-location

Reimplemented in CGfxWrapDAVE, and CGfxWrapDAVEHD.

◆ ReleaseWorkingMemory()

virtual void CGfxWrap::ReleaseWorkingMemory ( eC_UByte *  pkMemory)
virtual

Release working memory

Parameters
pkMemory

◆ RequiredSpace()

void CGfxWrap::RequiredSpace ( const eC_String *const  pkText,
eC_Value &  vWidth,
eC_Value &  vHeight 
)

Calculates the required space in x- and y-direction for a given text-string using the currently set font.

Parameters
pkTextThe text.
vWidthReference to width of the font in pixels.
vHeightReference to height of the font in pixels.

◆ ResetWorkingMemory()

virtual void CGfxWrap::ResetWorkingMemory ( )
virtual

Reset working memory. This should be called after refresh.

◆ RestoreWrapperState()

virtual void CGfxWrap::RestoreWrapperState ( )
inlinevirtual

Restores a previously saved state for the Graphics-Wrapper. Any change in the underlying API will be purged.

Reimplemented in CGfxWrapGL.

◆ Ring() [1/2]

void CGfxWrap::Ring ( const CGUIRect kAbsRect,
const eC_Value &  vRingWidth,
const eC_Value &  vStartAngle,
const eC_Value &  vEndAngle,
const eC_Value &  vRotationAngle,
const eC_Bool &  bFilled 
)

Draws a ring arc defined by a CGUIRect

See also
CGfxWrap::Arc(const eC_Value& vX1, const eC_Value& vY1, const eC_Value& vX2, const eC_Value& vY2, const eC_Value& vStartAngle, const eC_Value& vEndAngle, const eC_Value& vRotationAngle, const eC_Bool &bFilled)
Parameters
kAbsRectCGUIRect containing the rectangle corners' endpoints
vRingWidthwidth of the ring
vStartAnglestart-angle of the arc
vEndAngleend-angle of the arc
vRotationAnglerotation-angle
bFilledSpecifies whether the arc will be drawn outlined (false) or filled (true)

◆ Ring() [2/2]

virtual void CGfxWrap::Ring ( const eC_Value &  vX1,
const eC_Value &  vY1,
const eC_Value &  vX2,
const eC_Value &  vY2,
const eC_Value &  vRingWidth,
const eC_Value &  vStartAngle,
const eC_Value &  vEndAngle,
const eC_Value &  vRotationAngle,
const eC_Bool &  bFilled 
)
protectedpure virtual

Draws a ring which is completly inside the rectangle described through the rectangle the top left edge at (vAbsX1, vAbsY1) and bottom right edge at (vAbsX2, vAbsY2). The ring will be filled out if the last parameter is true 0-degrees is at the mathematically correct position on the unit-circle angles are increasing in counter-clockwise direction. rotation-angle is increasing in clockwise direction, i.e. rotating by 90 degrees will result in the 0-degress being at the bottom-center

Parameters
vX1X-coordinate of bounding rectangle's top left corner
vY1Y-Coordinate of bounding rectangle's top left corner
vX2X-coordinate of bounding rectangle's bottom right corner
vY2Y-Coordinate of bounding rectangle's bottom right corner
vRingWidthwidth of the ring
vStartAnglestart-angle
vEndAngleend-angle
vRotationAnglerotation-angle
bFilledSpecifies whether the ring will be drawn outlined (false) or filled (true)

Implemented in CGfxWrapBLU, CGfxWrapDAVE, CGfxWrapDAVEHD, CGfxWrapeGML, CGfxWrapGL, CGfxWrapVG, and CGfxWrapNull.

◆ SetCliprect()

virtual void CGfxWrap::SetCliprect ( const CGUIRect NewAbsClipRect)
pure virtual

Sets a clipping rectangle. All drawing operations will be limited to the region within the clipping rectangle. This is very useful for advanced features such as soft-scrolling. Note that the clipping rectangle is not allowed to exceed the invalidated rectangle, since this would lead to visual artifacts.

Parameters
NewAbsClipRectA normalised rectangle that includes all pixels that could be drawn by the functions of the graphics wrapper. The rectangle includes the border. All pixels outside will be left untouched.

Implemented in CGfxWrapeGML, CGfxWrapNull, CGfxWrapBLU, CGfxWrapDAVE, CGfxWrapDAVEHD, CGfxWrapDirectFb, CGfxWrap_stm32f429, CGfxWrap_stm32f746, CGfxWrapGL, and CGfxWrapVG.

◆ SetDoubleBufferingEnforcesFlipping()

void CGfxWrap::SetDoubleBufferingEnforcesFlipping ( const eC_Bool  bDoubleBufferingEnforcesFlipping)
inline

Tell Guiliani that the underlying graphics API enforces flipping the back and front buffers (Instead of copying from the back to the front buffer).

Parameters
bDoubleBufferingEnforcesFlippingSet to True if flipping of buffers leads to visual artifacts

◆ SetFilteredBlit()

virtual void CGfxWrap::SetFilteredBlit ( const eC_Bool &  bFilteredBlit)
inlinevirtual

Set filtered blit

Parameters
bFilteredBlit

Reimplemented in CGfxWrapeGML.

◆ SetFont()

void CGfxWrap::SetFont ( const FontResource_t eID)

Sets the supplied font active. All subsequent text operations will use this font,

Parameters
eIDid of the font.

◆ SetFontSpacing()

void CGfxWrap::SetFontSpacing ( const eC_Float &  fSpacing)

Sets a new font spacing, i.e the space between letters.

Parameters
fSpacingNew font spacing.

◆ SetForegroundColor() [1/2]

void CGfxWrap::SetForegroundColor ( const eC_UByte &  ubRed,
const eC_UByte &  ubGreen,
const eC_UByte &  ubBlue,
const eC_UByte &  ubAlpha = 255 
)
inline

Sets the foreground color via red, green, blue and alpha values

Parameters
ubRedRed intensity within a range of 0 - 255
ubGreenGreen intensity within a range of 0 - 255
ubBlueBlue intensity within a range of 0 - 255
ubAlphaAlpha intensity within a range of 0 (transparent) - 255 (opaque)

◆ SetForegroundColor() [2/2]

void CGfxWrap::SetForegroundColor ( const eC_UInt &  uiCol)
inline

Sets the foreground color via a 32 Bit value in the Format 0xAARRGGBB Example Values: 0xFFFF0000 = Red (fully opaque) 0x77FFFFFF = White (semi transparent)

Parameters
uiCol32Bit Color value in the Format 0xAARRGGBB

◆ SetForegroundColorImpl()

virtual void CGfxWrap::SetForegroundColorImpl ( const eC_UByte &  ubRed,
const eC_UByte &  ubGreen,
const eC_UByte &  ubBlue,
const eC_UByte &  ubAlpha = 255 
)
protectedpure virtual

Sets the foreground color. This MUST be implemented by all graphics wrappers. For detailed explanations, please refer to CGfxWrap::SetForegroundColor

Parameters
ubRedRed intensity within a range of 0 - 255
ubGreenGreen intensity within a range of 0 - 255
ubBlueBlue intensity within a range of 0 - 255
ubAlphaAlpha intensity within a range of 0 (transparent) - 255 (opaque)

Implemented in CGfxWrapBLU, CGfxWrapDAVE, CGfxWrapDAVEHD, CGfxWrapeGML, CGfxWrapNull, CGfxWrapGL, CGfxWrapVG, CGfxWrapDirectFb, CGfxWrap_stm32f429, and CGfxWrap_stm32f746.

◆ SetGfxEnv()

void CGfxWrap::SetGfxEnv ( CGfxEnv pkGfxEnv)

Set the attached graphics-environment, if any

Parameters
pkGfxEnv

◆ SetGlobalAlpha()

void CGfxWrap::SetGlobalAlpha ( const eC_UByte &  ubAlpha)
inline

Sets the global alpha via an unsigned Byte. In contrast to UpdateGlobalAlpha, this will NOT blend subsequent alphas

See also
UpdateGlobalAlpha
Parameters
ubAlphaunsigned Byte

◆ SetInvalidatedRect() [1/2]

void CGfxWrap::SetInvalidatedRect ( const CGUIRect NewAbsRect)
inlineprotected

Sets the current invalidated (dirty) rectangle. This marks the region which has to be redrawn during the next call to Refresh()

Parameters
NewAbsRectStructure of type CGUIRect, specifying the new invalidated rectangle's extends.

◆ SetInvalidatedRect() [2/2]

void CGfxWrap::SetInvalidatedRect ( const eC_Value &  vAbsX1,
const eC_Value &  vAbsY1,
const eC_Value &  vAbsX2,
const eC_Value &  vAbsY2 
)
protected

Sets the current invalidated (dirty) rectangle. This marks the region which has to be redrawn during the next call to Refresh()

Parameters
vAbsX1X-Coordinate of top left corner
vAbsY1Y-Coordinate of top left corner
vAbsX2X-Coordinate of bottom right corner
vAbsY2Y-Coordinate of bottom right corner

◆ SetLineWidth()

virtual eC_Value CGfxWrap::SetLineWidth ( const eC_Value &  vWidth)
virtual

Sets the line width in pixels

Parameters
vWidthwidth of lines
Returns
The previous line width.

Reimplemented in CGfxWrapDAVE, CGfxWrapeGML, CGfxWrapGL, and CGfxWrapVG.

◆ SetNOFFonts()

eC_Bool CGfxWrap::SetNOFFonts ( const eC_UInt  uiNOFFonts)

Sets the total number of fonts. This is called internally by the ResourceManager when dynamically allocated font resources require the total number of fonts to be raised. the Font-Wrapper classes have to implement this method and resize their internal image-storage structures according to the new number of fonts which will have to be stored.

Parameters
uiNOFFontsThe number of fonts
Returns
True if internal storage has been successfully adapted to support the requested number of fonts. False otherwise.

◆ SetNOFImages()

eC_Bool CGfxWrap::SetNOFImages ( const eC_UInt  uiNOFImages)
inlineprotected

Sets the total number of images. This is called internally by the ResourceManager when dynamically allocated image resources require the total number of images to be raised. This calls the SetNOFImagesImpl() method internally, which should be implemented in derived GfxWrappers.

Parameters
uiNOFImagesThe number of images
Returns
True if internal storage has been successfully adapted to support the requested number of images. False otherwise.

◆ SetNOFImagesImpl()

virtual eC_Bool CGfxWrap::SetNOFImagesImpl ( const eC_UInt  uiNOFImages)
protectedvirtual

Sets the total number of images. This is called internally by the ResourceManager when dynamically allocated image resources require the total number of images to be raised. Derived classes will have to override this method and resize their internal image-storage structures according to the new number of images which will have to be stored.

Parameters
uiNOFImagesThe number of images
Returns
True if internal storage has been successfully adapted to support the requested number of images. False otherwise.

Reimplemented in CGfxWrapBLU, CGfxWrapDAVE, CGfxWrapDAVEHD, CGfxWrapeGML, CGfxWrapNull, CGfxWrapGL, CGfxWrapVG, and CGfxWrapDirectFb.

◆ SetOptimizedBlit()

virtual void CGfxWrap::SetOptimizedBlit ( const eC_Bool &  bOptimizedBlit)
inlinevirtual

Set optimized blit

Parameters
bOptimizedBlit

Reimplemented in CGfxWrapeGML.

◆ SetRenderingOffset()

virtual void CGfxWrap::SetRenderingOffset ( const eC_Value &  vOffsetX,
const eC_Value &  vOffsetY 
)
virtual

Set offset for rendering

Parameters
vOffsetX
vOffsetY

◆ SetScreenFormat()

void CGfxWrap::SetScreenFormat ( const CGUICommonEnums::ImageType_t uiScreenFormat)
inline

Set the currently active screen-format

Parameters
uiScreenFormat

◆ SetScreenSize()

virtual void CGfxWrap::SetScreenSize ( const eC_UInt &  uiWidth,
const eC_UInt &  uiHeight 
)
virtual

Sets the new physical screen size.

Parameters
uiWidthNew screen width.
uiHeightNew screen height.

Reimplemented in CGfxWrapGL.

◆ SetTargetLayer()

virtual void CGfxWrap::SetTargetLayer ( const eC_UInt &  uiLayerID)
inlinevirtual

Set target-layer for rendering

Parameters
uiLayerID

Reimplemented in CGfxWrapDAVE, CGfxWrapDAVEHD, and CGfxWrapeGML.

◆ SetWindowCaption()

virtual void CGfxWrap::SetWindowCaption ( const eC_String &  kText)
virtual

Sets the window-caption if available

Parameters
kTexttext to set

◆ StartHandleDraw()

virtual void CGfxWrap::StartHandleDraw ( const CGUIRect crkClipRect)
protectedvirtual

Called for every single InvalidatedRect() during RedrawGUI(). Also serves as proxy function to make GETGUI.HandleDraw() accessible from derived graphics wrappers. Make sure to call CGfxWrap::StartHandleDraw() when overriding this function.

Parameters
crkClipRectRectangle against which this cycle of handle draw calls will be clipped.

Reimplemented in CGfxWrapBLU.

◆ StartRedrawGUI()

virtual void CGfxWrap::StartRedrawGUI ( )
inlineprotectedvirtual

Callback which is called at the beginning of RedrawGUI() Note that this function as well as EndRedrawGUI() will also get called if the list of invalidated rects is empty. Check m_kInvalidatedRectList if you need more details on the number and dimensions of invalidated areas.

Reimplemented in CGfxWrapDAVEHD.

◆ StoreWrapperState()

virtual void CGfxWrap::StoreWrapperState ( )
inlinevirtual

Saves the current active state of the Graphics-Wrapper. This might be used to manipulate the underlying API (e.g. OpenGL) without interfering with Guiliani-internal state.

Reimplemented in CGfxWrapGL.

◆ SupportCompressedFonts()

virtual eC_Bool CGfxWrap::SupportCompressedFonts ( ) const
inlinevirtual

Return if gfxwrap supports compressed fonts other than Alpha8

Returns
true if supported

Reimplemented in CGfxWrapBLU, CGfxWrapDAVE, and CGfxWrapDAVEHD.

◆ SyncWorkingMemory()

virtual void CGfxWrap::SyncWorkingMemory ( )
virtual

Synchronize working memory

◆ Text()

void CGfxWrap::Text ( const eC_Value &  vAbsX1,
const eC_Value &  vAbsY1,
const eC_String *const  lpString 
)

Draws the given Text at (vAbsX1, vAbsY1)

Parameters
vAbsX1X-position where the Text will be drawn
vAbsY1Y-position where the Text will be drawn
lpStringText to output

◆ UnloadFont()

void CGfxWrap::UnloadFont ( const FontResource_t eFontID)

Removes the font from the font list. Should only be called by a GfxWrapper.

Parameters
eFontIDId of font to be removed.

◆ UnloadGlyphData()

virtual void CGfxWrap::UnloadGlyphData ( CGUIImageData pkImageData)
virtual

Unload data for glyph

Parameters
pkImageDataimage-data to unload

Reimplemented in CGfxWrapDAVE, and CGfxWrapDAVEHD.

◆ UnloadImg()

virtual void CGfxWrap::UnloadImg ( const ImageResource_t eID)
inlineprotectedvirtual

Unloads an image. Unloads the image associated with the supplied Image-identifier and frees the memory formerly occupied by this image.

Parameters
eIDIdentifier of the image to be unloaded.

Reimplemented in CGfxWrapDAVE, CGfxWrapDAVEHD, CGfxWrapeGML, CGfxWrapGL, CGfxWrapBLU, CGfxWrapNull, and CGfxWrapVG.

◆ UpdateGlobalAlpha()

void CGfxWrap::UpdateGlobalAlpha ( const eC_UByte &  ubAlpha)
inline

Updates the global alpha via an unsigned Byte The global alpha value will affect all drawing operations. Subsequent calls to UpdateGlobalAlpha will blend the new alpha value with the formerly set one.

See also
SetGlobalAlpha
Parameters
ubAlphaunsigned Byte

Friends And Related Function Documentation

◆ CFntWrap

friend class CFntWrap
friend

◆ CGUI

friend class CGUI
friend

◆ CGUIBackgroundImageLoaderThread

friend class CGUIBackgroundImageLoaderThread
friend

◆ CGUIComponentManager

friend class CGUIComponentManager
friend

◆ CGUIImageCacheImpl

friend class CGUIImageCacheImpl
friend

◆ CGUIResourceManager

friend class CGUIResourceManager
friend

Member Data Documentation

◆ m_bDoubleBufferingEnforcesFlipping

eC_Bool CGfxWrap::m_bDoubleBufferingEnforcesFlipping
protected

Guiliani's smart redraw mechanism requires that the back buffer gets COPIED to the front buffer and NOT FLIPPED If the underlying graphics API enforces flipping, though, you can set the m_bDoubleBufferingEnforcesFlipping flag and Guiliani will react accordingly.

◆ m_bInvalidationInLastFrame

eC_Bool CGfxWrap::m_bInvalidationInLastFrame
protected

Indicates whether HandleDraw() was called in last frame. In this case we need a refresh if we use double buffering (to switch buffers) even if there were no changes in this frame.

◆ m_kClippingRect

CGUIRect CGfxWrap::m_kClippingRect
protected

The current clipping rect. Note that this will usually have to be set within the used graphics library as well.

◆ m_kInvalidatedRect

CGUIRect CGfxWrap::m_kInvalidatedRect
protected

This rectangle marks the region of the screen, which is currently being redrawn. During a redraw of the GUI, this will be assigned every rectangle within m_kInvalidetedRectList

◆ m_vGlobalAlphaFactor

eC_Value CGfxWrap::m_vGlobalAlphaFactor
protected

Current scaling factor for global alpha Used as a helper variable when scaling concatenated alpha operations.


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