Library | File

Class uifcDesktop

# include <uifcDesktop.h>

class uifcDesktop
 : public virtual uifcBaseUIObject
{
    xaideclare(uifcDesktop)
    ...
};



Description





Method Summary

voidAddActionListener (uifcDesktopListener_ptr listener)
 
voidCreateTimer (uifcDesktopTimer_ptr timer, xrstring timerName, xbool writeInTrail)
 
voidDeleteChild (xrstring name)
 
xboolDoesAllowTrailRecording ()
 
voidDrawDropIndicator (uifcRectangle_ptr rect, uifcOrientation orientation)
 
xstringGetActiveDialogName ()
 
xstringsequence_ptrGetChildNameArray ()
 
xstringGetComponent ()
 
xintGetComponentClass ()
 
uifcPoint_ptrGetCursorPosition ()
 
xstringGetDialog ()
 
uifcDimension_ptrGetFrameMinimumSize ()
 
uifcPoint_ptrGetFrameOrigin ()
 
uifcRectangle_ptrGetFrameRectangle ()
 
uifcDimension_ptrGetFrameSize ()
 
uifcRectangle_ptrGetRectangleOfMonitor ()
 
uifcPoint_ptrGetScreenOrigin ()
 
uifcRectangle_ptrGetScreenRectangle ()
 
voidPushAction (uifcDesktopAction action)
 
xstringReadTextFromTrail (xrstring name)
 
voidSetActiveDialogName (xrstring value)
 
voidSetAllowTrailRecording (xbool flag)
 
voidSetFrameRectangle (uifcRectangle_ptr rect)
 
voidStartTimer (xrstring timerName, xint duration)
 
voidStopTimer (xrstring timerName)
 
voidWriteTextToTrail (xrstring name, xrstring trail_data)
 



Method Detail

xstringGetDialog ()

 


Returns:



xstringGetComponent ()

 


Returns:



uifcPoint_ptrGetCursorPosition ()

 

Get the cursor pointer position relative to the component.
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:



voidWriteTextToTrail (xrstring name, xrstring trail_data)

 

Write the data given by trail_data to the trail file so that when read during playback, a trail file callback for name is generated, which the application can then act on. 'name' is an identifier to distinguish this from trail output from other sources such as Creo UI.
Parameters:
name
trail_data
Returns:



uifcPoint_ptrGetFrameOrigin ()

 

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



uifcPoint_ptrGetScreenOrigin ()

 

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



voidDrawDropIndicator (uifcRectangle_ptr rect, uifcOrientation orientation)

 

Draw a drag & drop indicator of given size and orientation. rect - size of the indicator orientation - orientation of the indicator (See purpose) ORIENTATION_HORIZONTAL - Horizontal ORIENTATION_VERTICAL - Vertical The coordinates of this rectangle will be stored by the Desktop so that it can automatically be removed upon the next call to DrawDropIndicator operation if the rectangles differ. In addition the drag & drop indicator will automatically be removed upon the next call to DrawRubberBand operation as these two operations are mutually exclusive. This operation provides a simple way to achieve smooth drag & drop indication over the Desktop. ORIENTATION_HORIZONTAL - Horizontal ORIENTATION_VERTICAL - Vertical The coordinates of this rectangle will be stored by the Desktop so that it can automatically be removed upon the next call to DrawDropIndicator operation if the rectangles differ. In addition the drag & drop indicator will automatically be removed upon the next call to DrawRubberBand operation as these two operations are mutually exclusive. This operation provides a simple way to achieve smooth drag & drop indication over the Desktop.
Parameters:
rect
orientation
Returns:



uifcDimension_ptrGetFrameMinimumSize ()

 

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



xstringReadTextFromTrail (xrstring name)

 

Read the data for the trail file callback for name, from the trail file into trail_data.
Parameters:
name
Returns:



uifcRectangle_ptrGetScreenRectangle ()

 

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



uifcRectangle_ptrGetRectangleOfMonitor ()

 

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



voidDeleteChild (xrstring name)

 

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



uifcDimension_ptrGetFrameSize ()

 

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



uifcRectangle_ptrGetFrameRectangle ()

 

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



xstringsequence_ptrGetChildNameArray ()

 
Returns:
The names of all of the active Dialogs of the application.



xintGetComponentClass ()

 
Returns:
The ID of the component's class.



xstringGetActiveDialogName ()

 
Returns:
The name of the Dialog which has the keyboard input focus - viz. the current active Dialog.



voidSetActiveDialogName (xrstring value)

 

Sets the name of the Dialog which has the keyboard input focus - viz. the current active Dialog.
Parameters:
value
Returns:



xboolDoesAllowTrailRecording ()

 
Returns:
Flag indicating whether the component and any of its children should output their actions to trail file.



voidSetAllowTrailRecording (xbool flag)

 

Sets flag indicating whether the component and any of its children should output their actions to trail file.
Parameters:
flag
Returns:



voidAddActionListener (uifcDesktopListener_ptr listener)

 


Parameters:
listener
Returns:



voidPushAction (uifcDesktopAction action)

 


Parameters:
action
Returns:



voidCreateTimer (uifcDesktopTimer_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: