Package RASCAL.Caret

DescriptionCaret related event definitions and subprograms.
Authorbbracke
Date2005/11/21 20:14:33
Revision1.1
 

Clauses

Quick access : ClausesGenericsDefinitionsSubprograms


 
Context clauses
RASCAL.OS
 
Use clauses
RASCAL.OS
 

Definitions

Quick access : ClausesGenericsDefinitionsSubprograms


Types
Name Declaration
Reason_LoseCaret_Pointeraccess Reason_LoseCaret
Reason_GainCaret_Pointeraccess Reason_GainCaret
   
Reason_LoseCaret record
The caret has been moved away from the window.
Component Type Default
Caret_IndexInteger
Caret_HeightInteger
Caret_Y_OffsetInteger
Caret_X_OffsetInteger
Icon_HandleIcon_Handle_Type
Window_HandleWimp_Handle_Type
   
AWEL_Reason_LoseCaret abstract tagged record
inheritance from Wimp_EventListener (Reason_Event_LoseCaret, -1, -1)
Component Type Default
EventReason_LoseCaret_Pointer
   
Reason_GainCaret record
The caret has been moved into the window.
Component Type Default
Caret_IndexInteger
Caret_HeightInteger
Caret_Y_OffsetInteger
Caret_X_OffsetInteger
Icon_HandleIcon_Handle_Type
Window_HandleWimp_Handle_Type
   
AWEL_Reason_GainCaret abstract tagged record
inheritance from Wimp_EventListener (Reason_Event_GainCaret, -1, -1)
Component Type Default
EventReason_GainCaret_Pointer
   
Caret_Position_Type record
Component Type Default
IndexInteger
FlagsInteger
Y_OffsetInteger
X_OffsetInteger
IconIcon_Handle_Type
WindowWimp_Handle_Type
  
Pragmas
Convention(C, Reason_LoseCaret)
Convention(C, Reason_GainCaret)
Convention(C, Caret_Position_Type)
 

Subprograms

Quick access : ClausesGenericsDefinitionsSubprograms


  
Remove procedure
Removes the Caret from wherever it currently is.
  
Get_Position procedure
Returns information on the position of thw Caret.
Parameter name Type Mode Default
WindowWimp_Handle_Typeout
IconIcon_Handle_Typeout
X_OffsetIntegerout
Y_OffsetIntegerout
FlagsIntegerout
IndexIntegerout
  
Set_Position procedure
This moves the caret to a new position.
If the caret is moved to a new window, a LoseCaret message is sent to the owner of the old window, and a GainCaret message is sent to the owner of the new one.
Parameter name Type Mode Default
WindowWimp_Handle_Typein
IconIcon_Handle_Typein-1
X_OffsetIntegerin0
Y_OffsetIntegerin0
FlagsIntegerin-1
IndexIntegerin-1