next up previous
Next: xpointerinfo Up: simxlib Previous: xpointer

xpointermapping


     NAME
	  xpointermapping - part of Simula to Xlib interface

     DESCRIPTION
	     class XPointerMapping;
	  This	class  is  used	 as  parameter	to   SetPointerMapping
	  operation,   and  for	 results  from	the  GetPointerMapping
	  operation, both of class XPointer.

	  Typically one	will first call	GetPointerMapping in order  to
	  get  the  current  mapping. Change the mapping of Buttons by
	  calling the operation	in this	class and then use the	object
	  again	as parameter to	SetPointerMapping.

	  SUPERS: -
	  KIND:	Instantiatable (Data-class) ;
	  INIT:	initializes itself.;
	  Sequencing: (GetButton/SetButton)*

     OPERATIONS
     GetButton
	     integer procedure GetButton(PhysicalButton,
	     LogicalButton);
	     integer PhysicalButton, LogicalButton;
	  Given	  the	PhysicalButton,	  returns   its	  mapping   as
	  LogicalButton.

	  The status reflects  the  situation  at  the	last  call  to
	  GetPointerMapping wiht this object as	a parameter.

     SetButton
	     procedure SetButton(PhysicalButton, LogicalButton);
	     integer PhysicalButton, LogicalButton;
	  Change the mapping of	PysicalButton to the Button  indicated
	  in 'LogicalButton'. The Chnage takes effect at the next call
	  to SetPointerMapping with this object	as parameter.