|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tapina.robe.runtime.Block
com.tapina.robe.runtime.DataBlock
com.tapina.robe.module.Module
com.tapina.robe.swi.SWIHandler
com.tapina.robe.swi.Wimp
Field Summary |
Fields inherited from class com.tapina.robe.swi.SWIHandler |
log, METHOD_PARAMETERS |
Method Summary | |
void |
closeTemplate()
|
void |
CloseTemplate(Environment env)
|
void |
CreateIcon(Environment env)
|
void |
createIcon(int windowHandle,
Icon icon)
|
void |
CreateWindow(Environment env)
This tells the Wimp what the characteristics of a window are. |
Window |
createWindow(WindowBlock windowBlock)
|
void |
DeleteIcon(Environment env)
This SWI removes the definition of the given icon. |
void |
deleteIcon(Window window,
int iconHandle)
|
static int |
getBase()
|
CaretPosition |
getCaretPosition()
|
void |
GetCaretPosition(Environment env)
Get the current position of the text input caret. |
void |
GetIconState(Environment env)
Get the icon definition for an icon. |
Icon |
getIconState(Window window,
int iconHandle)
|
static Wimp |
getInstance()
|
static java.lang.reflect.Method |
getMethod(java.lang.Integer offset)
|
java.lang.String |
getName()
|
com.tapina.robe.swi.Wimp.SlotSize |
getSlotSize(MemoryMap mem)
|
void |
GetWindowState(Environment env)
This call reads a windows visible state. |
Window |
getWindowState(int windowHandle)
|
void |
Initialise(Environment env)
|
void |
initialise(int knownWimpVersion,
java.lang.String description,
int[] acceptableMessages)
|
void |
LoadTemplate(Environment env)
Note that R5 must point to a word aligned 12 byte buffer, which is used as workspace by the call. |
WindowBlock |
loadTemplate(java.lang.StringBuffer name,
int index)
Load the named template. |
void |
OpenTemplate(Environment env)
This call opens the said template file. |
void |
openTemplate(java.lang.String filename)
|
java.awt.Color[] |
readPalette()
|
void |
ReadPalette(Environment env)
This SWI returns the current Wimp palette settings, in the form &B0G0R0LL, where L is the logical colour number used for the Wimp colour 0 to 15 (or %TTGGGGGG in 256 colour modes). |
void |
ReadSysInfo(Environment env)
|
void |
ReportError(Environment env)
This SWI opens a standard, non-multitasking, errorbox on the screen. |
int |
reportError(SWIError err,
java.lang.String title)
|
void |
SetExtent(Environment env)
Visible workarea must be wholly within new workarea extent. |
void |
setExtent(Window window,
java.awt.Rectangle extent)
|
void |
SetIconState(Environment env)
This SWI sets the icon's flags as follows : new = (old BIC clear_word) EOR EOR_word. |
void |
setIconState(Icon icon,
int eorWord,
int clearWord)
|
int |
setSlotSize(int newSize,
MemoryMap memoryMap)
|
void |
SlotSize(Environment env)
|
void |
SpriteOp(Environment env)
This call is mapped to OS_SpriteOp. |
void |
spriteOp(int operation,
java.lang.String spriteName)
|
java.awt.image.BufferedImage |
spriteOp40(java.lang.String spriteName)
|
void |
WhichIcon(Environment env)
All icons with (icon flags AND R2) = (R3 AND R2) are added to the list in R1. |
Methods inherited from class com.tapina.robe.module.Module |
getBytes, getHelp, getSize, setSize |
Methods inherited from class com.tapina.robe.runtime.Block |
getAddress, setAddress |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static Wimp getInstance()
public static int getBase()
public java.lang.String getName()
getName
in class Module
public static java.lang.reflect.Method getMethod(java.lang.Integer offset) throws java.lang.NoSuchMethodException
java.lang.NoSuchMethodException
public final void Initialise(Environment env)
public final void initialise(int knownWimpVersion, java.lang.String description, int[] acceptableMessages)
knownWimpVersion
- description
- acceptableMessages
- null for no acceptable messages, array containing just 0 for all messages acceptable,
otherwise a listpublic final void CreateWindow(Environment env)
env
- IN: R1 = Pointer to window block; OUT: R0 = Window handlepublic final Window createWindow(WindowBlock windowBlock)
public final void CreateIcon(Environment env)
public final void createIcon(int windowHandle, Icon icon)
public final void DeleteIcon(Environment env)
env
- IN: R1 = pointer to +0 Window handle, or -2 for iconbar; +4 Icon handlepublic void deleteIcon(Window window, int iconHandle)
public void GetWindowState(Environment env)
env
- IN: R1 = pointer to block which contains window handle; OUT: Block in R1 contains :+0 Window Handle (or -2 for icon bar) +4 Visible area minimum x +8 Visible area minimum y +12 Visible area maximum x +16 Visible area maximum y +20 Scroll x offset +24 Scroll y offset +28 Handle to open window behind +32 Window flags
public Window getWindowState(int windowHandle)
public void SetIconState(Environment env)
env
- IN: R1 = pointer to block :0 Window handle (-1,-2 for iconbar) 4 Icon handle 8 EOR word 12 Clear word
public void setIconState(Icon icon, int eorWord, int clearWord)
public void GetIconState(Environment env)
env
- IN: R1 = pointer to block : +0 Window handle, +4 Icon handle OUT: R0 corrupt; on exit the block will also contain +8 32-byte icon block.public Icon getIconState(Window window, int iconHandle)
public final void GetCaretPosition(Environment env)
env
- IN: R1 = pointer to block; OUT: block contains :0 window handle (-1 if off) 4 icon handle, or -1 8 x offset 12 y offset 16 height + flags , or -1 20 index into string, or -1 Flags: 0-15 Height of caret in OS units. 16-23 Colour (if bit 26 is set) 24 1 => Use VDU5 type caret. 0 => Use anti-aliased caret. 25 1 => Caret is invisible. 26 1 => Use bits 16-23 for colour. 0 => Use wimp colour 11. 27 1 => 16-23 is untranslated col. 0 => 16-23 is wimp colour.
public final CaretPosition getCaretPosition()
public final void WhichIcon(Environment env)
env
- IN: R0 = Window handle, R1 = Block to contain icon handles, R2 = Bit mask, R3 = Bit settings to matchpublic void SetExtent(Environment env)
env
- IN: R0 = window handle, R1 = pointer to block +0 new workarea min x +4 new workarea min y +8 new workarea max x +12 new workarea max y
public void setExtent(Window window, java.awt.Rectangle extent)
public final void OpenTemplate(Environment env)
LoadTemplate(com.tapina.robe.runtime.Environment)
, and finally CloseTemplate(com.tapina.robe.runtime.Environment)
.
Entry: R1 = pathname of template file to open; Exit: R0 corrupt
env
- public final void openTemplate(java.lang.String filename)
public final void CloseTemplate(Environment env)
public final void closeTemplate()
public final void LoadTemplate(Environment env)
env
- public final WindowBlock loadTemplate(java.lang.StringBuffer name, int index)
name
- StringBuffer containing (possibly wildcarded) name - will be overwritten with actual nameindex
- index of template to load
public final void ReportError(Environment env)
env
- public final int reportError(SWIError err, java.lang.String title)
public final void ReadPalette(Environment env)
env
- IN: R1 = pointer to 20-word palette block, R2 = "TRUE" (&45555254) to return true colour; OUT: R0
corrupt, block contains palette definitionspublic java.awt.Color[] readPalette()
public final void SpriteOp(Environment env)
env
- IN: R0 = reason code (0..&FF), R1 unused, R2 = pointer to sprite name, R3.. as for OS_SpriteOp; OUT: as for OS_SpriteOppublic final void spriteOp(int operation, java.lang.String spriteName)
public final java.awt.image.BufferedImage spriteOp40(java.lang.String spriteName)
public final void SlotSize(Environment env)
public int setSlotSize(int newSize, MemoryMap memoryMap)
public final com.tapina.robe.swi.Wimp.SlotSize getSlotSize(MemoryMap mem)
public final void ReadSysInfo(Environment env)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |