Package RASCAL.Mode

DescriptionMode types and methods.
Authorbbracke
Date2005/11/21 20:14:33
Revision1.1
 

Clauses

Quick access : ClausesGenericsDefinitionsSubprograms


 
Context clauses
RASCAL.OS
 
Use clauses
RASCAL.OS
 

Basic Objects

Quick access : ClausesGenericsDefinitionsSubprograms


Basic Objects
Name Type Default
CurrentInteger-1constant
 

Definitions

Quick access : ClausesGenericsDefinitionsSubprograms


Types
Name Declaration
Mode_Unit_Type(Pixel, OSUnits)
Message_ModeChange_Pointeraccess Message_ModeChange
Message_PaletteChange_Pointeraccess Message_PaletteChange
   
Message_ModeChange record
Wimp_SetMode causes this message to be broadcasted. You should {*}not{*} acnowledge this message.
After sending this message, the Wimp sends an Open_Window_Request event for each window.
You must not delete any window.
If you want to delete a window, then just mark it to be deleted, and do the deed when you receive the Open window request.
Component Type Default
HeaderMessage_Event_Header
   
AMEL_Message_ModeChange abstract tagged record
inheritance from Message_EventListener (Message_Event_ModeChange)
Component Type Default
EventMessage_ModeChange_Pointer
   
Message_PaletteChange record
This message is broadcasted by the palette utility when the RGB value for one or more physical colours have changed.
Message_ModeChange is broadcast {*}instead{*} of this message at a mode change.
In 256 colour modes, it is not the physical colour which changes, but only the mapping from logical to physical colour.
In that case the palette utility itself forces a redraw of the whole screen.
Component Type Default
HeaderMessage_Event_Header
   
AMEL_Message_PaletteChange abstract tagged record
inheritance from Message_EventListener (Message_Event_PaletteChange)
Component Type Default
EventMessage_PaletteChange_Pointer
  
Exceptions
No_Mode_Variable
  
Pragmas
Convention(C, Message_ModeChange)
Convention(C, Message_PaletteChange)
 

Subprograms

Quick access : ClausesGenericsDefinitionsSubprograms


  
Get_X_Resolution function
ReturnInteger
Returns the horisontal resolution of the mode.
Parameter name Type Mode Default
UnitMode_Unit_TypeinPixel
ModeNrIntegerinCurrent
  
Get_Y_Resolution function
ReturnInteger
Returns the vertical resolution of the mode.
Parameter name Type Mode Default
UnitMode_Unit_TypeinPixel
ModeNrIntegerinCurrent
  
Get_X_Eig_Factor function
ReturnInteger
Returns horisontal eigen factor of the mode.
Parameter name Type Mode Default
ModeNrIntegerinCurrent
  
Get_Y_Eig_Factor function
ReturnInteger
Returns vertical eigen factor of the mode.
Parameter name Type Mode Default
ModeNrIntegerinCurrent