Library Reference ¶ This is a dictionary of all referenced libraries and their name spaces. CmpApp ¶ Library Identification ¶ Placeholder: CmpApp Default Resolution: CmpApp, * (System) Namespace: CmpApp Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: CmpApp
SysGraphicLight Implementation Library Documentation ¶ Company System Title SysGraphicLight Implementation Version 3.5.18.0 Categories System|SysLibs Author CODESYS Development GmbH Placeholder SysGraphicLight Implementation Description 1 ¶ This library contains the external functions for the SysGraphicLight component. Contents: ¶ Draw SysGraphicLightDrawBitmap (Function) SysGraphicLightDrawPolygon (Function) SysGraphicLightDrawRect (Function) SysGraphicLightDrawText (Function) Environment SysGraphicLightBeginPaint (Function) SysGraphicLightEndPaint (Function) SysGraphicLightGetDisplayDeviceContext (Function) SysGraphicLightReleaseDisplayDeviceContext (Function) PenBrushFont SysGraphicLightRegisterFont (Function) SysGraphicLightSetFill (Function) SysGraphicLightSetFont (Function) SysGraphicLightSetLine (Function) Indices and tables ¶ 1 Based on SysGraphicLight Implementation.library, last modified 01.04.2022, 08:15:48. LibDoc 4.4.0.0-b.27 The content file SysGraphicLight Implementation.clean.json was generated with CODESYS V3.5 SP16 Patch 3 on 01.04.2022, 08:15:48.
Draw ¶ SysGraphicLightDrawBitmap (Function) SysGraphicLightDrawPolygon (Function) SysGraphicLightDrawRect (Function) SysGraphicLightDrawText (Function)
SysGraphicLightDrawBitmap (FUN) ¶ FUNCTION SysGraphicLightDrawBitmap : RTS_IEC_RESULT <description> Function to draw a bitmap into a rectangle. </description> <param name=”hDisplayContext” type=”IN”>Handle to device context.</param> <param name=”rectangle” type=”IN”>Rectangle description.</param> <param name=”pbyData” TYPE=”IN”>Bitmap data</param> <param name=”udiDataSize” type=”IN”>Bitmap data size</param> <param name=”udiTransparentColor” type=”IN”>Contains the color that should be used as the transparent color. Will only be evaluated when the according flag is set. </param> <param name=”udiFlags” type=”IN”>Flags. Defined in IEC-Code for Visualization. At the moment only the flag for transparency is relevant when loading an image!</param> <result><p>RESULT: Returns the runtime system error code (see CmpErrors.library).</p></result> InOut: Scope Name Type Return SysGraphicLightDrawBitmap RTS_IEC_RESULT Input hDisplayContext RTS_IEC_HANDLE rectangle SimpleRectangle pbyData POINTER TO BYTE udiDataSize UDINT udiTransparentColor UDINT udiFlags UDINT
SysGraphicLightDrawPolygon (FUN) ¶ FUNCTION SysGraphicLightDrawPolygon : RTS_IEC_RESULT <description> Function to draw a polygon based on an array of points. </description> <param name=”hDisplayContext” type=”IN”>Handle to device context.</param> <param name=”iPoints” type=”IN”>Number of points in the array.</param> <param name=”pPoints” type=”IN”>Pointer to the array of points. Length must be less or equal nPoints!</param> <param name=”ePolygonType” type=”IN”>Polygon type. See corresponding category.</param> <result><p>RESULT: Returns the runtime system error code (see CmpErrors.library).</p></result> InOut: Scope Name Type Return SysGraphicLightDrawPolygon RTS_IEC_RESULT Input hDisplayContext RTS_IEC_HANDLE iPoints INT pPoints POINTER TO Point ePolygonType PolygonType
SysGraphicLightDrawRect (FUN) ¶ FUNCTION SysGraphicLightDrawRect : RTS_IEC_RESULT <description> Function to draw a rectangle based on top left and bottom right. </description> <param name=”hDisplayContext” type=”IN”>Handle to device context.</param> <param name=”rectangle” type=”IN”>Rectangle description.</param> <param name=”eRectType” type=”IN”>Rectangle type. See corresponding category.</param> <result><p>RESULT: Returns the runtime system error code (see CmpErrors.library).</p></result> InOut: Scope Name Type Return SysGraphicLightDrawRect RTS_IEC_RESULT Input hDisplayContext RTS_IEC_HANDLE rectangle SimpleRectangle eRectType RectangleType
Environment ¶ SysGraphicLightBeginPaint (Function) SysGraphicLightEndPaint (Function) SysGraphicLightGetDisplayDeviceContext (Function) SysGraphicLightReleaseDisplayDeviceContext (Function)
SysGraphicLightDrawText (FUN) ¶ FUNCTION SysGraphicLightDrawText : RTS_IEC_RESULT <description> Function to draw a text, based on top left and bottom right. Only the first line, if more than one is given. </description> <param name=”hDisplayContext” type=”IN”>Handle to device context.</param> <param name=”rectangle” type=”IN”>Rectangle description.</param> <param name=”pszText” type=”IN”>Will be either: <ul> <li>char* if TF_WSTRING is not set in udiDrawFlags</li> <li>short* if (TF_WSTRING is set in udiDrawFlags)</li> </ul> </param> <param name=”udiDrawFlags” type=”IN”>Draw flags. Defined in IEC-Code for Visualization.</param> <result><p>RESULT: Returns the runtime system error code (see CmpErrors.library).</p></result> InOut: Scope Name Type Return SysGraphicLightDrawText RTS_IEC_RESULT Input hDisplayContext RTS_IEC_HANDLE rectangle SimpleRectangle pszText POINTER TO BYTE udiDrawFlags UDINT
SysGraphicLightSetFill (FUN) ¶ FUNCTION SysGraphicLightSetFill : RTS_IEC_RESULT <description> Function to set the fill style of the following objects. </description> <param name=”hDisplayContext” type=”IN”>Handle to device context.</param> <param name=”udiFillFlags” type=”IN”>Fill flags. Defined in IEC-Code for Visualization</param> <param name=”udiFillColor” type=”IN”>Fill color. Defined in IEC-Code for Visualization</param> <result><p>RESULT: Returns the runtime system error code (see CmpErrors.library).</p></result> InOut: Scope Name Type Return SysGraphicLightSetFill RTS_IEC_RESULT Input hDisplayContext RTS_IEC_HANDLE udiFillFlags UDINT udiFillColor UDINT
SysGraphicLightSetFont (FUN) ¶ FUNCTION SysGraphicLightSetFont : RTS_IEC_RESULT <description> Function to set the font for the following drawn texts. </description> <param name=”hDisplayContext” type=”IN”>Handle to device context.</param> <param name=”pszFontName” type=”IN”>Name of the font that should be created.</param> <param name=”iFontSize” type=”IN”>Size of the font.</param> <param name=”udiFontFlags” type=”IN”>The font flags.</param> <param name=”udiFontCharSet” type=”IN”>The font character set.</param> <param name=”udiFontColor” type=”IN”>The font color.</param> <result><p>RESULT: Returns the runtime system error code (see CmpErrors.library).</p></result> InOut: Scope Name Type Return SysGraphicLightSetFont RTS_IEC_RESULT Input hDisplayContext RTS_IEC_HANDLE Input Const pszFontName REFERENCE TO STRING Input iFontSize INT udiFontFlags UDINT udiFontCharSet UDINT udiFontColor UDINT