Library | File

Class uifcDrawingArea

# include <uifcDrawingArea.h>

class uifcDrawingArea
 : public virtual uifcComponent
{
    xaideclare(uifcDrawingArea)
    ...
};



Description





Method Summary

voidAddActionListener (uifcDrawingAreaListener_ptr listener)
 
xboolCanRedraw ()
 
voidClear ()
 
voidCopyRectangle (uifcRectangle_ptr rect, uifcPoint_ptr point)
 
voidCreateTimer (uifcDrawingAreaTimer_ptr timer, xrstring timerName, xbool writeInTrail)
 
voidDeleteChild (xrstring name)
 
voidDeletePopupMenu ()
 
xboolDoesAllowKeyboardInput ()
 
xboolDoesAllowWheelInput ()
 
xboolDoesClipChildren ()
 
xboolDoesTrackMouse ()
 
voidDrawArc (uifcArc_ptr arc)
 
voidDrawArcArray (uifcArcs_ptr arcs)
 
voidDrawEllipse (uifcRectangle_ptr rect)
 
voidDrawEllipseArray (uifcRectangles_ptr rects)
 
voidDrawImage (xrstring image, uifcPoint_ptr position, uifcImageFlags flags)
 
voidDrawImages (xstringsequence_ptr images, uifcRectangles_ptr rects, uifcRectangles_ptr content_rects, uifcImageFlags flags)
 
voidDrawLine (uifcPoint_ptr start_point, uifcPoint_ptr end_point)
 
voidDrawLineArray (uifcPoints_ptr start_points, uifcPoints_ptr end_points)
 
voidDrawMultipleImages (xstringsequence_ptr images, uifcPoints_ptr points, uifcImageFlags flags)
 
voidDrawPoint (uifcPoint_ptr point)
 
voidDrawPointArray (uifcPoints_ptr points)
 
voidDrawPolygon (uifcPoints_ptr points)
 
voidDrawPolyline (uifcPoints_ptr points)
 
voidDrawRectangle (uifcRectangle_ptr rect)
 
voidDrawRectangleArray (uifcRectangles_ptr rects)
 
voidDrawText (xrstring str, uifcPoint_ptr position)
 
voidDrawTextArray (xstringsequence_ptr strings, uifcPoints_ptr points)
 
voidFillArc (uifcArc_ptr arc)
 
voidFillArcArray (uifcArcs_ptr arcs)
 
voidFillEllipse (uifcRectangle_ptr rect)
 
voidFillEllipseArray (uifcRectangles_ptr rects)
 
voidFillGradientRectangle (uifcRectangle_ptr rect, uifcOrientation orientation, uifcColor_ptr color1, uifcColor_ptr color2)
 
voidFillPolygon (uifcPoints_ptr points)
 
voidFillRectangle (uifcRectangle_ptr rect)
 
voidFillRectangleArray (uifcRectangles_ptr rects)
 
uifcArcDirectionGetArcDirection ()
 
uifcArcFillModeGetArcFillMode ()
 
uifcPoint_ptrGetCursorPosition ()
 
xstringGetDragCursorImage ()
 
xstringGetDragItemName ()
 
xstringGetDragNotValidCursorImage ()
 
uifcColor_ptrGetDrawingBackgroundColor ()
 
uifcColor_ptrGetDrawingColor ()
 
xstringsequence_ptrGetDrawingImageArray ()
 
uifcDrawingModeGetDrawingMode ()
 
uifcFontClassGetFontClass ()
 
xstringGetFontName ()
 
xrealGetFontSize ()
 
uifcFontStyleGetFontStyle ()
 
uifcDimension_ptrGetFrameMinimumSize ()
 
uifcPoint_ptrGetFrameOrigin ()
 
uifcRectangle_ptrGetFrameRectangle ()
 
uifcDimension_ptrGetFrameSize ()
 
xintGetHeight ()
 
xstringGetHelpText ()
 
uifcDimension_ptrGetImageSize (xrstring image)
 
uifcKey_ptrGetKeyPressed ()
 
uifcLineStyleGetLineStyle ()
 
xintGetLineWidth ()
 
xintGetMinimumHeight ()
 
xintGetMinimumWidth ()
 
xstringGetMostRecentItemName ()
 
uifcPolygonFillModeGetPolygonFillMode ()
 
uifcRectangle_ptrGetRectangleOfMonitor ()
 
uifcPoint_ptrGetScreenOrigin ()
 
uifcRectangle_ptrGetScreenRectangle ()
 
xintGetTextBaseline (xrstring str)
 
uifcRichTextGetTextFormat ()
 
uifcDimension_ptrGetTextSize (xrstring str)
 
xintGetWidth ()
 
xboolHasBorder ()
 
xintInsertChild (uifcComponent_ptr component)
 
xintInsertPopupMenu (uifcComponent_ptr component)
 
xboolIsDoubleBuffered ()
 
xboolIsEnabled ()
 
xboolIsValidDragSite ()
 
voidPushAction (uifcDrawingAreaAction action)
 
voidSetAllowKeyboardInput (xbool flag)
 
voidSetAllowWheelInput (xbool flag)
 
voidSetArcDirection (uifcArcDirection value)
 
voidSetArcFillMode (uifcArcFillMode value)
 
voidSetCanRedraw (xbool flag)
 
voidSetClipChildren (xbool flag)
 
voidSetDoubleBuffered (xbool flag)
 
voidSetDragCursorImage (xrstring value)
 
voidSetDragItemName (xrstring value)
 
voidSetDragNotValidCursorImage (xrstring value)
 
voidSetDrawingBackgroundColor (uifcColor_ptr color)
 
voidSetDrawingColor (uifcColor_ptr color)
 
voidSetDrawingImageArray (xstringsequence_ptr values)
 
voidSetDrawingMode (uifcDrawingMode value)
 
voidSetEnabled (xbool flag)
 
voidSetFontClass (uifcFontClass value)
 
voidSetFontName (xrstring value)
 
voidSetFontSize (xreal value)
 
voidSetFontStyle (uifcFontStyle value)
 
voidSetFrameOrigin (uifcPoint_ptr value)
 
voidSetFrameRectangle (uifcRectangle_ptr rect)
 
voidSetFrameSize (uifcDimension_ptr value)
 
voidSetHasBorder (xbool flag)
 
voidSetHeight (xint value)
 
voidSetHelpText (xrstring value)
 
voidSetKeyPressed (uifcKey_ptr key)
 
voidSetLineStyle (uifcLineStyle value)
 
voidSetLineWidth (xint value)
 
voidSetMinimumHeight (xint value)
 
voidSetMinimumWidth (xint value)
 
voidSetPolygonFillMode (uifcPolygonFillMode value)
 
voidSetTextFormat (uifcRichText value)
 
voidSetTrackMouse (xbool flag)
 
voidSetValidDragSite (xbool flag)
 
voidSetWidth (xint value)
 
voidStartTimer (xrstring timerName, xint duration)
 
voidStopTimer (xrstring timerName)
 


Methods Inherited from Class uifcComponent:

GetDialog, GetComponent, CreateInParent, AddPopupMenu, IsVisible, SetVisible, GetComponentClass, GetComponentClassName, IsAlwaysAtFront, SetAlwaysAtFront, GetBackgroundColor, SetBackgroundColor, IsAttachedAtBottom, SetAttachedAtBottom, GetBottomOffset, SetBottomOffset, GetCursorImage, SetCursorImage, GetTextColor, SetTextColor, GetHelpTextAlignment, SetHelpTextAlignment, GetHelpTextWidth, SetHelpTextWidth, GetHelpTextOriginX, SetHelpTextOriginX, GetHelpTextOriginY, SetHelpTextOriginY, CanInheritPopupMenu, SetCanInheritPopupMenu, IsAttachedAtLeft, SetAttachedAtLeft, GetLeftOffset, SetLeftOffset, DoesReserveSpace, SetReserveSpace, GetParentName, GetPopupMenuName, SetPopupMenuName, CanPopupMenuWhenDisabled, SetCanPopupMenuWhenDisabled, IsAttachedAtRight, SetAttachedAtRight, GetRightOffset, SetRightOffset, IsAttachedAtTop, SetAttachedAtTop, GetTopOffset, SetTopOffset, IsValidDropSite, SetValidDropSite, GetValidDropTypeFlags, SetValidDropTypeFlags, GetChildNameArray, DoesAllowTrailRecording, SetAllowTrailRecording, CanReduceHeight, SetCanReduceHeight, CanReduceWidth, SetCanReduceWidth



Method Detail

voidFillArc (uifcArc_ptr arc)

 

Draw the filled arc specified by the given uifcArc structure.
Parameters:
arc
Returns:



voidDrawEllipse (uifcRectangle_ptr rect)

 

Draw the outline of the ellipse bounded by the given rectangle.
Parameters:
rect
Returns:



uifcPoint_ptrGetFrameOrigin ()

 

Determine the position of the component, in pixels, relative to its parent.
Returns:



voidFillGradientRectangle (uifcRectangle_ptr rect, uifcOrientation orientation, uifcColor_ptr color1, uifcColor_ptr color2)

 

Draw the filled given rectangle as a gradient from color1 to color2 in the given orientation.
Parameters:
rect
orientation
color1
color2
Returns:



voidCopyRectangle (uifcRectangle_ptr rect, uifcPoint_ptr point)

 

Copy the contents of the given rectangle to the given point.
Parameters:
rect
point
Returns:



voidDrawPoint (uifcPoint_ptr point)

 

Draw the given point.
Parameters:
point
Returns:



voidFillRectangleArray (uifcRectangles_ptr rects)

 

Draw the filled given rectangles.
Parameters:
rects
Returns:



voidDrawLineArray (uifcPoints_ptr start_points, uifcPoints_ptr end_points)

 

Draw the given lines.
Parameters:
start_points
end_points
Returns:



voidDrawArcArray (uifcArcs_ptr arcs)

 

Draw the arcs specified by the given uifcArc structures. Each arc is drawn as a section of an ellipse.
Parameters:
arcs
Returns:



voidDrawArc (uifcArc_ptr arc)

 

Draw the arc specified by the given uifcArc structure. The arc is drawn as a section of an ellipse.
Parameters:
arc
Returns:



xintInsertPopupMenu (uifcComponent_ptr component)

 

Add a MenuPane to be displayed when the user presses the right mouse button over the component.
Parameters:
component
Returns:



voidDrawRectangleArray (uifcRectangles_ptr rects)

 

Draw the outlines of the given rectangles.
Parameters:
rects
Returns:



voidDrawPointArray (uifcPoints_ptr points)

 

Draw the given points.
Parameters:
points
Returns:



xintInsertChild (uifcComponent_ptr component)

 


Parameters:
component
Returns:



voidFillArcArray (uifcArcs_ptr arcs)

 

Draw the filled arcs specified by the given uifcArc structures.
Parameters:
arcs
Returns:



xintGetTextBaseline (xrstring str)

 

Get the position in pixels of the baseline of the given text string.
Parameters:
str
Returns:



voidDeleteChild (xrstring name)

 

Delete a component from the parent.
Parameters:
name
Returns:



uifcDimension_ptrGetFrameSize ()

 

Determine the size of the component, in pixels.
Returns:



uifcDimension_ptrGetTextSize (xrstring str)

 

Get the size in pixels of the given text string.
Parameters:
str
Returns:



uifcPoint_ptrGetCursorPosition ()

 

Get the cursor pointer position relative to the component.
Returns:



voidDeletePopupMenu ()

 

Delete a MenuPane from the component.
Returns:



voidDrawImage (xrstring image, uifcPoint_ptr position, uifcImageFlags flags)

 

Draw the given image at the given position according to the given flags. IMAGE_DISABLED - the image is to be drawn to reflect a greyed-out state IMAGE_SELECTED - the image is to be drawn to reflect a selected state
Parameters:
image
position
flags
Returns:



voidDrawPolygon (uifcPoints_ptr points)

 

Draw a polygon from the given polygonal lines, joining the first and last points.
Parameters:
points
Returns:



uifcPoint_ptrGetScreenOrigin ()

 

Determine the screen position of the component, in pixels.
Returns:



voidDrawImages (xstringsequence_ptr images, uifcRectangles_ptr rects, uifcRectangles_ptr content_rects, uifcImageFlags flags)

 

Draw the given images into the given rectangles, stretching as necessary, using content_rect to define sizing margins to control the stretching, according to the given flags. IMAGE_DISABLED - The image is to be drawn to reflect a greyed-out state IMAGE_SELECTED - The image is to be drawn to reflect a selected state
Parameters:
images
rects
content_rects
flags
Returns:



voidDrawText (xrstring str, uifcPoint_ptr position)

 

Draw the given text string at the given position.
Parameters:
str
position
Returns:



voidFillPolygon (uifcPoints_ptr points)

 

Draw the filled polygon from the given polygonal lines.
Parameters:
points
Returns:



voidSetFrameSize (uifcDimension_ptr value)

 

Set the size of the component, in pixels. This operation is only supported when the component's parent is one of the following classes : DrawingArea NakedWindow PGLWindow
Parameters:
value
Returns:



uifcDimension_ptrGetImageSize (xrstring image)

 

Get the size in pixels of the given image.
Parameters:
image
Returns:



voidFillEllipseArray (uifcRectangles_ptr rects)

 

Draw the filled ellipses bounded by the given rectangles.
Parameters:
rects
Returns:



voidDrawMultipleImages (xstringsequence_ptr images, uifcPoints_ptr points, uifcImageFlags flags)

 

Draw the given images at the given positions according to the given flags. IMAGE_DISABLED - the images are to be drawn to reflect a greyed-out state IMAGE_SELECTED - the images are to be drawn to reflect a selected state
Parameters:
images
points
flags
Returns:



uifcRectangle_ptrGetFrameRectangle ()

 

Determine the size and position of the component, in pixels.
Returns:



voidDrawTextArray (xstringsequence_ptr strings, uifcPoints_ptr points)

 

Draw the given text strings at the given positions.
Parameters:
strings
points
Returns:



voidDrawEllipseArray (uifcRectangles_ptr rects)

 

Draw the outlines of the ellipses bounded by the given rectangles.
Parameters:
rects
Returns:



voidFillRectangle (uifcRectangle_ptr rect)

 

Draw the filled given rectangle.
Parameters:
rect
Returns:



voidSetFrameOrigin (uifcPoint_ptr value)

 

Set the screen position of the component, in pixels, relative to its parent. This operation is only supported when the component's parent is one of the following classes : DrawingArea NakedWindow PGLWindow
Parameters:
value
Returns:



voidDrawPolyline (uifcPoints_ptr points)

 

Draw the given polygonal lines.
Parameters:
points
Returns:



uifcDimension_ptrGetFrameMinimumSize ()

 

Determine the minimum size of the component, in pixels.
Returns:



voidDrawLine (uifcPoint_ptr start_point, uifcPoint_ptr end_point)

 

Draw the given line.
Parameters:
start_point
end_point
Returns:



uifcRectangle_ptrGetScreenRectangle ()

 

Determine the size and screen position of the component, in pixels.
Returns:



voidDrawRectangle (uifcRectangle_ptr rect)

 

Draw the outline of the given rectangle.
Parameters:
rect
Returns:



voidSetFrameRectangle (uifcRectangle_ptr rect)

 

Set the size and screen position of the component, in pixels. This operation is only supported when the component's parent is one of the following classes : DrawingArea NakedWindow PGLWindow
Parameters:
rect
Returns:



voidFillEllipse (uifcRectangle_ptr rect)

 

Draw the filled ellipse bounded by the given rectangle.
Parameters:
rect
Returns:



voidClear ()

 

Clear the contents of the DrawingArea.
Returns:



uifcRectangle_ptrGetRectangleOfMonitor ()

 

Determine the rectangle of the screen upon which the majority of the given component is displayed.
Returns:



xboolDoesTrackMouse ()

 
Returns:
Flag indicating whether the DrawingArea generates a OnMouseMove() whenever the pointer is moved over the visible region of the component.



voidSetTrackMouse (xbool flag)

 

Sets flag indicating whether the DrawingArea generates a OnMouseMove() whenever the pointer is moved over the visible region of the component.
Parameters:
flag
Returns:



xintGetLineWidth ()

 
Returns:
The current line drawing width of the DrawingArea in pixels.



voidSetLineWidth (xint value)

 

Sets the current line drawing width of the DrawingArea in pixels.
Parameters:
value
Returns:



xintGetMinimumWidth ()

 
Returns:
The minimim width in pixels of the DrawingArea.



voidSetMinimumWidth (xint value)

 

Sets the minimim width in pixels of the DrawingArea.
Parameters:
value
Returns:



xstringGetDragItemName ()

 
Returns:
The name of the item being dragged when the user starts a drag & drop operation by dragging within the component.
This is set by the application, usually in response to a OnLeftMouseDown() callback. DragBoundingRectangle attribute may also be modified to specify the bounding rectangle outside of which the pointer must be dragged in order for a drag operation to begin.



voidSetDragItemName (xrstring value)

 

Sets the name of the item being dragged when the user starts a drag & drop operation by dragging within the component.
This is set by the application, usually in response to a OnLeftMouseDown() callback. DragBoundingRectangle attribute may also be modified to specify the bounding rectangle outside of which the pointer must be dragged in order for a drag operation to begin.
Parameters:
value
Returns:



xstringGetDragCursorImage ()

 
Returns:
The cursor to use when the user starts a drag & drop operation by dragging the component and the pointer is over a valid drop-site.



voidSetDragCursorImage (xrstring value)

 

Sets the cursor to use when the user starts a drag & drop operation by dragging the component and the pointer is over a valid drop-site.
Parameters:
value
Returns:



xboolDoesAllowWheelInput ()

 
Returns:
The response of the component to mouse wheel input.




voidSetAllowWheelInput (xbool flag)

 

Sets the response of the component to mouse wheel input.


Parameters:
flag
Returns:



xboolIsDoubleBuffered ()

 
Returns:
Flag indicating whether the DrawingArea is double-buffered.



voidSetDoubleBuffered (xbool flag)

 

Sets flag indicating whether the DrawingArea is double-buffered.
Parameters:
flag
Returns:



uifcKey_ptrGetKeyPressed ()

 
Returns:
The key pressed which generated a OnKeyDown(). To indicate to the DrawingArea that the key should not be passed on to, for example, the mapkey buffer you should modify this attribute to KEY_NONE at the end of your OnKeyDown() callback.



voidSetKeyPressed (uifcKey_ptr key)

 

Sets the key pressed which generated a OnKeyDown(). To indicate to the DrawingArea that the key should not be passed on to, for example, the mapkey buffer you should modify this attribute to KEY_NONE at the end of your OnKeyDown() callback.
Parameters:
key
Returns:



uifcArcFillModeGetArcFillMode ()

 
Returns:
The fill mode to be used when drawing Arcs in the DrawingArea.

ARC_FILL_MODE_PIE Fill the arc bounded by two line segments joining the endpoints of the arc and its center point
ARC_FILL_MODE_CHORD Fill the arc bounded by a single line segment that joins the two endpoints of the arc



voidSetArcFillMode (uifcArcFillMode value)

 

Sets the fill mode to be used when drawing Arcs in the DrawingArea.

ARC_FILL_MODE_PIE Fill the arc bounded by two line segments joining the endpoints of the arc and its center point
ARC_FILL_MODE_CHORD Fill the arc bounded by a single line segment that joins the two endpoints of the arc

Parameters:
value
Returns:



uifcArcDirectionGetArcDirection ()

 
Returns:
The direction to use when drawing Arcs in the DrawingArea.

ARC_DIRECTION_CLOCKWISE Draw in a Clockwise direction between the two line segments in order to form the arc
ARC_DIRECTION_COUNTERCLOCKWISE Draw in a Counterclockwise direction between the two line segments in order to form the arc



voidSetArcDirection (uifcArcDirection value)

 

Sets the direction to use when drawing Arcs in the DrawingArea.

ARC_DIRECTION_CLOCKWISE Draw in a Clockwise direction between the two line segments in order to form the arc
ARC_DIRECTION_COUNTERCLOCKWISE Draw in a Counterclockwise direction between the two line segments in order to form the arc

Parameters:
value
Returns:



uifcRichTextGetTextFormat ()

 
Returns:
The format of the display text of the component.

RICHTEXT_OFF Plain text
RICHTEXT_ON A very restricted subset of HTML
RICHTEXT_ON + <HTML> HTML as supported by the HTMLWindow

The UI RichText format supports the following styles, controlled by their corresponding tokens:

Style Switch on Switch off
Bold \b \b0
Italic \i \i0
Underlined \ul \ulnone
Strike-through \strike \strike0
Superscript \super \nosupersub
Subscript \sub \nosupersub
Foreground Color \cfRRGGBB \cf0
Background Color \cbRRGGBB \cb0
Picture \pictNAME n/a

N.B. Each token must be followed immediately by another token or a whitespace character (e.g. space, newline).
The very restricted subset of HTML supports the following styles, controlled by their corresponding tokens:

Style Switch on Switch off
Bold <b> </b>
Italic <i> </i>
Underlined <u> </u>
Strike-through <strike> </strike>
Superscript <sup> </sup>
Subscript <sub> </sub>
Foreground Color <font color=#RRGGBB> </font>
Background Color <span style="background:#RRGGBB"> </span>
Picture <img src="NAME"> n/a



voidSetTextFormat (uifcRichText value)

 

Sets the format of the display text of the component.

RICHTEXT_OFF Plain text
RICHTEXT_ON A very restricted subset of HTML
RICHTEXT_ON + <HTML> HTML as supported by the HTMLWindow

The UI RichText format supports the following styles, controlled by their corresponding tokens:

Style Switch on Switch off
Bold \b \b0
Italic \i \i0
Underlined \ul \ulnone
Strike-through \strike \strike0
Superscript \super \nosupersub
Subscript \sub \nosupersub
Foreground Color \cfRRGGBB \cf0
Background Color \cbRRGGBB \cb0
Picture \pictNAME n/a

N.B. Each token must be followed immediately by another token or a whitespace character (e.g. space, newline).
The very restricted subset of HTML supports the following styles, controlled by their corresponding tokens:

Style Switch on Switch off
Bold <b> </b>
Italic <i> </i>
Underlined <u> </u>
Strike-through <strike> </strike>
Superscript <sup> </sup>
Subscript <sub> </sub>
Foreground Color <font color=#RRGGBB> </font>
Background Color <span style="background:#RRGGBB"> </span>
Picture <img src="NAME"> n/a

Parameters:
value
Returns:



xstringGetDragNotValidCursorImage ()

 
Returns:
The cursor to use when the user starts a drag & drop operation by dragging the component and the pointer is over an invalid drop-site.



voidSetDragNotValidCursorImage (xrstring value)

 

Sets the cursor to use when the user starts a drag & drop operation by dragging the component and the pointer is over an invalid drop-site.
Parameters:
value
Returns:



xboolDoesAllowKeyboardInput ()

 
Returns:
Flag indicating whether the component is capable of receiving keyboard input (xtrue), and hence is capable of receiving the keyboard input focus, or whether it responds only to mouse input (xfalse).



voidSetAllowKeyboardInput (xbool flag)

 

Sets flag indicating whether the component is capable of receiving keyboard input (xtrue), and hence is capable of receiving the keyboard input focus, or whether it responds only to mouse input (xfalse).
Parameters:
flag
Returns:



xstringGetFontName ()

 
Returns:
The name of the font used to draw text in the component. This may also contain a comma-separated list of font names, in which case the closest match (or the first exact match, if available) will be used.



voidSetFontName (xrstring value)

 

Sets the name of the font used to draw text in the component. This may also contain a comma-separated list of font names, in which case the closest match (or the first exact match, if available) will be used.
Parameters:
value
Returns:



xstringsequence_ptrGetDrawingImageArray ()

 
Returns:
The names of the images which will be drawn in the DrawingArea.
Each image may be a BIF (the .bif extension is optional) file or a JPG, PNG, PCX, GIF, BMP, ICO or CUR file.



voidSetDrawingImageArray (xstringsequence_ptr values)

 

Sets the names of the images which will be drawn in the DrawingArea.
Each image may be a BIF (the .bif extension is optional) file or a JPG, PNG, PCX, GIF, BMP, ICO or CUR file.
Parameters:
values
Returns:



uifcFontClassGetFontClass ()

 
Returns:
The base font class to be used to draw text in the component.

FONT_CLASS_DEFAULT The default font
FONT_CLASS_DESKTOP The font used by the Window Manager for the text of desktop icons
FONT_CLASS_MENU The font used by MenuBars and components within MenuPanes
FONT_CLASS_POPUPHELP The font used by the popup helptext
FONT_CLASS_MESSAGE The font used for messages in the UI Message Dialog
FONT_CLASS_TITLEBAR The font used to draw the titlebar text of a Dialog
FONT_CLASS_FIXED A system-specific fixed width font for the locale



voidSetFontClass (uifcFontClass value)

 

Sets the base font class to be used to draw text in the component.

FONT_CLASS_DEFAULT The default font
FONT_CLASS_DESKTOP The font used by the Window Manager for the text of desktop icons
FONT_CLASS_MENU The font used by MenuBars and components within MenuPanes
FONT_CLASS_POPUPHELP The font used by the popup helptext
FONT_CLASS_MESSAGE The font used for messages in the UI Message Dialog
FONT_CLASS_TITLEBAR The font used to draw the titlebar text of a Dialog
FONT_CLASS_FIXED A system-specific fixed width font for the locale

Parameters:
value
Returns:



uifcPolygonFillModeGetPolygonFillMode ()

 
Returns:
The fill mode to be used when drawing Polygons in the DrawingArea.

POLYGON_FILL_MODE_WINDING Fills area between odd-numbered and even-numbered polygon sides on each scan line
POLYGON_FILL_MODE_ALTERNATE Fills any region with a nonzero winding value



voidSetPolygonFillMode (uifcPolygonFillMode value)

 

Sets the fill mode to be used when drawing Polygons in the DrawingArea.

POLYGON_FILL_MODE_WINDING Fills area between odd-numbered and even-numbered polygon sides on each scan line
POLYGON_FILL_MODE_ALTERNATE Fills any region with a nonzero winding value

Parameters:
value
Returns:



xboolIsValidDragSite ()

 
Returns:
Flag indicating whether the component can be dragged to start a drag & drop operation.



voidSetValidDragSite (xbool flag)

 

Sets flag indicating whether the component can be dragged to start a drag & drop operation.
Parameters:
flag
Returns:



xintGetWidth ()

 
Returns:
The width in pixels of the DrawingArea.



voidSetWidth (xint value)

 

Sets the width in pixels of the DrawingArea.
Parameters:
value
Returns:



xboolDoesClipChildren ()

 
Returns:
Flag indicating whether drawing operations within the DrawingArea are clipped so that they do not overlap any children contained within the DrawingArea.



voidSetClipChildren (xbool flag)

 

Sets flag indicating whether drawing operations within the DrawingArea are clipped so that they do not overlap any children contained within the DrawingArea.
Parameters:
flag
Returns:



uifcDrawingModeGetDrawingMode ()

 
Returns:
The drawing mode of the DrawingArea.

DRAWING_MODE_COPY Draw using the foreground drawing color
DRAWING_MODE_NOT Draw, inverting the existing pixels of the component
DRAWING_MODE_AND Draw using a combination of the foreground drawing color AND the existing pixels
DRAWING_MODE_OR Draw using a combination of the foreground drawing color OR the existing pixels
DRAWING_MODE_XOR Draw using a combination of the foreground drawing color XOR the existing pixels
DRAWING_MODE_COPY Draw using the foreground drawing color



voidSetDrawingMode (uifcDrawingMode value)

 

Sets the drawing mode of the DrawingArea.

DRAWING_MODE_COPY Draw using the foreground drawing color
DRAWING_MODE_NOT Draw, inverting the existing pixels of the component
DRAWING_MODE_AND Draw using a combination of the foreground drawing color AND the existing pixels
DRAWING_MODE_OR Draw using a combination of the foreground drawing color OR the existing pixels
DRAWING_MODE_XOR Draw using a combination of the foreground drawing color XOR the existing pixels
DRAWING_MODE_COPY Draw using the foreground drawing color

Parameters:
value
Returns:



xintGetMinimumHeight ()

 
Returns:
The minimum height in pixels of the DrawingArea.



voidSetMinimumHeight (xint value)

 

Sets the minimum height in pixels of the DrawingArea.
Parameters:
value
Returns:



xrealGetFontSize ()

 
Returns:
The point-size of the font used to draw text in the component.



voidSetFontSize (xreal value)

 

Sets the point-size of the font used to draw text in the component.
Parameters:
value
Returns:



xboolCanRedraw ()

 
Returns:
Flag indicating whether redraws are permitted in the DrawingArea.



voidSetCanRedraw (xbool flag)

 

Sets flag indicating whether redraws are permitted in the DrawingArea.
Parameters:
flag
Returns:



xboolIsEnabled ()

 
Returns:
Flag indicating whether the component is disabled (xfalse) or sensitive to user input (xtrue).



voidSetEnabled (xbool flag)

 

Sets flag indicating whether the component is disabled (xfalse) or sensitive to user input (xtrue).
Parameters:
flag
Returns:



xstringGetHelpText ()

 
Returns:
The popup help-text to be displayed whilst the pointer is over the component.
If the value begins with <HTML> then the help-text is treated as HTML, and rendered accordingly. It is often wise to use HTML help-text in conjunction with HelpTextWidth attribute, to define the maximum width of the popup help-text window.



voidSetHelpText (xrstring value)

 

Sets the popup help-text to be displayed whilst the pointer is over the component.
If the value begins with <HTML> then the help-text is treated as HTML, and rendered accordingly. It is often wise to use HTML help-text in conjunction with HelpTextWidth attribute, to define the maximum width of the popup help-text window.
Parameters:
value
Returns:



uifcColor_ptrGetDrawingColor ()

 
Returns:
The foreground drawing color of the component as a uifcColor.



voidSetDrawingColor (uifcColor_ptr color)

 

Sets the foreground drawing color of the component as a uifcColor.
Parameters:
color
Returns:



xstringGetMostRecentItemName ()

 
Returns:
The item which was beneath the pointer the last time the pointer was over the component.



uifcColor_ptrGetDrawingBackgroundColor ()

 
Returns:
The background drawing color of the component as a uifcColor.



voidSetDrawingBackgroundColor (uifcColor_ptr color)

 

Sets the background drawing color of the component as a uifcColor.
Parameters:
color
Returns:



uifcFontStyleGetFontStyle ()

 
Returns:
A bitwise OR of the styles of the font used to draw text in the component.

FONT_STYLE_REGULAR The font is regularly spaced, slanted and weighted
FONT_STYLE_CONDENSED The font is condensed
FONT_STYLE_ITALIC The font is italicised
FONT_STYLE_BOLD The font is emboldened



voidSetFontStyle (uifcFontStyle value)

 

Sets a bitwise OR of the styles of the font used to draw text in the component.

FONT_STYLE_REGULAR The font is regularly spaced, slanted and weighted
FONT_STYLE_CONDENSED The font is condensed
FONT_STYLE_ITALIC The font is italicised
FONT_STYLE_BOLD The font is emboldened

Parameters:
value
Returns:



xintGetHeight ()

 
Returns:
The height in pixels of the DrawingArea.



voidSetHeight (xint value)

 

Sets the height in pixels of the DrawingArea.
Parameters:
value
Returns:



xboolHasBorder ()

 
Returns:
Flag indicating whether the DrawingArea has a decorated shadow border.



voidSetHasBorder (xbool flag)

 

Sets flag indicating whether the DrawingArea has a decorated shadow border.
Parameters:
flag
Returns:



uifcLineStyleGetLineStyle ()

 
Returns:
The current line drawing style of the DrawingArea.

LINE_STYLE_SOLID Draw solid lines in the foreground drawing color
LINE_STYLE_DOTTED Draw dotted lines in the foreground and background drawing colors
LINE_STYLE_DASHED Draw dashed lines in the foreground and background drawing colors



voidSetLineStyle (uifcLineStyle value)

 

Sets the current line drawing style of the DrawingArea.

LINE_STYLE_SOLID Draw solid lines in the foreground drawing color
LINE_STYLE_DOTTED Draw dotted lines in the foreground and background drawing colors
LINE_STYLE_DASHED Draw dashed lines in the foreground and background drawing colors

Parameters:
value
Returns:



voidAddActionListener (uifcDrawingAreaListener_ptr listener)

 


Parameters:
listener
Returns:



voidPushAction (uifcDrawingAreaAction action)

 


Parameters:
action
Returns:



voidCreateTimer (uifcDrawingAreaTimer_ptr timer, xrstring timerName, xbool writeInTrail)

 


Parameters:
timer
timerName
writeInTrail
Returns:



voidStartTimer (xrstring timerName, xint duration)

 


Parameters:
timerName
duration
Returns:



voidStopTimer (xrstring timerName)

 


Parameters:
timerName
Returns: