Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members | Related Pages

ROlib.h File Reference

#include <kernel.h>

Include dependency graph for ROlib.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Compounds

struct  dir_env
struct  dir_full_info
class  Icon
struct  Joy_Keys
struct  RO_Caret
struct  RO_Icon
struct  RO_IconDesc
struct  RO_MenuHead
struct  RO_MenuItem
struct  RO_Window
class  RORes
class  ROScreen
union  WIdata
struct  WIdatI
class  WIMP
class  Window

Defines

#define TASKNAME   "Frodo"
#define TASK_WORD   0x4b534154
#define RO_TEMPFILE   "<Wimp$ScrapDir>.FrodoDIR"
#define IFlg_Text   1
#define IFlg_Sprite   2
#define IFlg_Border   4
#define IFlg_HCenter   8
#define IFlg_VCenter   16
#define IFlg_Filled   32
#define IFlg_AntiA   64
#define IFlg_AutoRdrw   128
#define IFlg_Indir   256
#define IFlg_RAdjust   512
#define IFlg_Slct   (1<<21)
#define IFlg_Grey   (1<<22)
#define MFlg_Tick   1
#define MFlg_Dotted   2
#define MFlg_Writable   4
#define MFlg_Warning   8
#define MFlg_LastItem   128
#define JoyDir_Thresh   32
#define JoyButton1   (1<<16)
#define JoyButton2   (1<<17)
#define RO_WINDOW_WORDS   23
#define RO_WINDOW_BYTES   92
#define RO_ICON_WORDS   8
#define RO_ICON_BYTES   32
#define RO_MHEAD_WORDS   7
#define RO_MHEAD_BYTES   28
#define RO_MITEM_WORDS   6
#define RO_MITEM_BYTES   24
#define FILENAME_MAX_CHARS   256
#define DRState_Active   1
#define DRState_NeedData   2
#define DRState_Overflow   4

Functions

int Wimp_Initialise (int Version, int tw, const char *TaskName, const int *Messages)
_kernel_oserror * Wimp_CloseDown (int Handle, int tw)
int Wimp_CreateWindow (const int *Window)
int Wimp_CreateIcon (int Priority, const RO_IconDesc *Icon)
_kernel_oserror * Wimp_DeleteWindow (const int *Window)
_kernel_oserror * Wimp_DeleteIcon (int *Block)
_kernel_oserror * Wimp_OpenWindow (const int *Window)
_kernel_oserror * Wimp_CloseWindow (const int *Window)
int Wimp_Poll (unsigned int Mask, int *Block, int *PollWord)
int Wimp_RedrawWindow (int *Block)
int Wimp_UpdateWindow (int *Block)
int Wimp_GetRectangle (int *Block)
_kernel_oserror * Wimp_GetWindowState (int *Block)
_kernel_oserror * Wimp_GetWindowInfo (int *Block)
_kernel_oserror * Wimp_SetIconState (int *Block)
_kernel_oserror * Wimp_GetIconState (int *Block)
_kernel_oserror * Wimp_GetPointerInfo (int *Block)
_kernel_oserror * Wimp_DragBox (int *Block)
_kernel_oserror * Wimp_ForceRedraw (int Handle, int minx, int miny, int maxx, int maxy)
_kernel_oserror * Wimp_SetCaretPosition (int WHandle, int IHandle, int xoff, int yoff, int height, int index)
_kernel_oserror * Wimp_GetCaretPosition (RO_Caret *Caret)
_kernel_oserror * Wimp_CreateMenu (const int *Menu, int cx, int cy)
_kernel_oserror * Wimp_SetExtent (int Handle, int *Block)
_kernel_oserror * Wimp_OpenTemplate (char *Name)
_kernel_oserror * Wimp_CloseTemplate (void)
_kernel_oserror * Wimp_LoadTemplate (char **Template, char **Indirect, char *IndirLimit, char *Fonts, char *Name, int *Position)
_kernel_oserror * Wimp_ProcessKey (int Key)
int Wimp_StartTask (char *command)
_kernel_oserror * Wimp_ReportError (const _kernel_oserror *Error, unsigned int Flags, const char *AppName)
_kernel_oserror * Wimp_GetWindowOutline (int *Block)
int Wimp_PollIdle (unsigned int Mask, int *Block, int MinTime, int *PollWord)
_kernel_oserror * Wimp_PlotIcon (int *Block)
_kernel_oserror * Wimp_SendMessage (int Event, int *Block, int THandle, int IHandle)
_kernel_oserror * Wimp_CreateSubMenu (int *MenuBlock, int cx, int xy)
_kernel_oserror * Wimp_SpriteOp (int, int, int, int, int, int, int, int)
_kernel_oserror * Wimp_BaseOfSprites (int *ROM, int *RAM)
_kernel_oserror * Wimp_CommandWindow (int Action)
_kernel_oserror * Wimp_TransferBlock (int SHandle, char *SBuff, int DHandle, char *DBuff, int BuffSize)
_kernel_oserror * Wimp_SpriteInfo (char *name, int *width, int *height, int *mode)
_kernel_oserror * DragASprite_Start (unsigned int Flags, int SpriteArea, char *SpriteName, int *Box, int *BBox)
_kernel_oserror * DragASprite_Stop (void)
_kernel_oserror * ColourTrans_SelectTable (int SMode, int SPal, int DMode, int DPal, char **Buffer, unsigned int Flags, int *TransWork, int *TransFunc)
_kernel_oserror * ColourTrans_SetFontColours (int Handle, int BPal, int FPal, int Offset)
_kernel_oserror * ColourTrans_SetColour (int GCOL, unsigned int Flags, int Action)
_kernel_oserror * ColourTrans_SetGCOL (int Palette, unsigned int Flags, int Action)
int OS_ReadModeVariable (int mode, int var)
int OS_ReadDynamicArea (int area)
int ScanKeys (int keys)
int ReadKeyboardStatus (void)
int ReadDragType (void)
int SetMousePointer (int NewShape)
_kernel_oserror * OS_SpriteOp (int, int, int, int, int, int, int, int)
_kernel_oserror * OS_Plot (int Command, int x, int y)
_kernel_oserror * MouseBoundingBox (char Box[8])
int OS_ReadMonotonicTime (void)
_kernel_oserror * OS_ReadC (char *Code)
int OS_ReadLine (char *Buffer, int BuffSize, int minasc, int maxasc, int Echo)
bool OS_ReadEscapeState (void)
int ReadCatalogueInfo (char *Name, int Result[4])
_kernel_oserror * ReadDirName (const char *dirname, char *buffer, dir_env *env)
_kernel_oserror * ReadDirNameInfo (const char *dirname, dir_full_info *buffer, dir_env *env)
_kernel_oserror * DeleteFile (char *name)
_kernel_oserror * OS_FlushBuffer (int BuffNum)
char * ConvertInteger1 (int value, char *buffer, int buffsize)
char * ConvertInteger2 (int value, char *buffer, int buffsize)
char * ConvertInteger3 (int value, char *buffer, int buffsize)
char * ConvertInteger4 (int value, char *buffer, int buffsize)
unsigned int ModeColourNumber (unsigned int pal_entry)
int Joystick_Read (int joyno)
int Sound_Volume (int volume)
_kernel_oserror * DigitalRenderer_Activate (int Channels, int Length, int SamPeriod)
_kernel_oserror * DigitalRenderer_Deactivate (void)
_kernel_oserror * DigitalRenderer_Pause (void)
_kernel_oserror * DigitalRenderer_Resume (void)
_kernel_oserror * DigitalRenderer_GetTables (uint8 **LinToLog, uint8 **LogScale)
int DigitalRenderer_ReadState (void)
_kernel_oserror * DigitalRenderer_NewSample (uint8 *Sample)

Variables

RO_IconDesc IBarIcon
unsigned int TaskHandle
int WimpMessages []


Define Documentation

#define DRState_Active   1
 

Definition at line 495 of file ROlib.h.

Referenced by DigitalRenderer::init_sound().

#define DRState_NeedData   2
 

Definition at line 496 of file ROlib.h.

Referenced by DigitalRenderer::EmulateLine().

#define DRState_Overflow   4
 

Definition at line 497 of file ROlib.h.

#define FILENAME_MAX_CHARS   256
 

Definition at line 68 of file ROlib.h.

#define IFlg_AntiA   64
 

Definition at line 32 of file ROlib.h.

#define IFlg_AutoRdrw   128
 

Definition at line 33 of file ROlib.h.

#define IFlg_Border   4
 

Definition at line 28 of file ROlib.h.

#define IFlg_Filled   32
 

Definition at line 31 of file ROlib.h.

#define IFlg_Grey   (1<<22)
 

Definition at line 37 of file ROlib.h.

#define IFlg_HCenter   8
 

Definition at line 29 of file ROlib.h.

#define IFlg_Indir   256
 

Definition at line 34 of file ROlib.h.

Referenced by Window::ReadIconNumber(), Window::ReadIconText(), Window::ReadTitle(), Window::Window(), Window::WriteIconNumber(), Window::WriteIconNumberU(), Window::WriteIconText(), Window::WriteIconTextU(), and Window::WriteTitle().

#define IFlg_RAdjust   512
 

Definition at line 35 of file ROlib.h.

#define IFlg_Slct   (1<<21)
 

Definition at line 36 of file ROlib.h.

#define IFlg_Sprite   2
 

Definition at line 27 of file ROlib.h.

#define IFlg_Text   1
 

Definition at line 26 of file ROlib.h.

Referenced by Window::ReadTitle(), and Window::WriteTitle().

#define IFlg_VCenter   16
 

Definition at line 30 of file ROlib.h.

#define JoyButton1   (1<<16)
 

Definition at line 48 of file ROlib.h.

Referenced by C64::poll_joystick().

#define JoyButton2   (1<<17)
 

Definition at line 49 of file ROlib.h.

Referenced by C64::poll_joystick().

#define JoyDir_Thresh   32
 

Definition at line 47 of file ROlib.h.

Referenced by C64::poll_joystick().

#define MFlg_Dotted   2
 

Definition at line 41 of file ROlib.h.

#define MFlg_LastItem   128
 

Definition at line 44 of file ROlib.h.

#define MFlg_Tick   1
 

Definition at line 40 of file ROlib.h.

#define MFlg_Warning   8
 

Definition at line 43 of file ROlib.h.

#define MFlg_Writable   4
 

Definition at line 42 of file ROlib.h.

#define RO_ICON_BYTES   32
 

Definition at line 57 of file ROlib.h.

#define RO_ICON_WORDS   8
 

Definition at line 56 of file ROlib.h.

Referenced by Window::GetIcon().

#define RO_MHEAD_BYTES   28
 

Definition at line 59 of file ROlib.h.

#define RO_MHEAD_WORDS   7
 

Definition at line 58 of file ROlib.h.

#define RO_MITEM_BYTES   24
 

Definition at line 61 of file ROlib.h.

#define RO_MITEM_WORDS   6
 

Definition at line 60 of file ROlib.h.

#define RO_TEMPFILE   "<Wimp$ScrapDir>.FrodoDIR"
 

Definition at line 21 of file ROlib.h.

Referenced by main(), and FSDrive::open_directory().

#define RO_WINDOW_BYTES   92
 

Definition at line 55 of file ROlib.h.

#define RO_WINDOW_WORDS   23
 

Definition at line 54 of file ROlib.h.

Referenced by Window::GetIcon().

#define TASK_WORD   0x4b534154
 

Definition at line 18 of file ROlib.h.

Referenced by main(), and OutOfMemory().

#define TASKNAME   "Frodo"
 

Definition at line 17 of file ROlib.h.

Referenced by DigitalRenderer::init_sound(), OutOfMemory(), ROScreen::ReadMode(), ROScreen::ROScreen(), ShowRequester(), Window::Window(), and DigitalRenderer::~DigitalRenderer().


Function Documentation

_kernel_oserror* ColourTrans_SelectTable int  SMode,
int  SPal,
int  DMode,
int  DPal,
char **  Buffer,
unsigned int  Flags,
int *  TransWork,
int *  TransFunc
 

_kernel_oserror* ColourTrans_SetColour int  GCOL,
unsigned int  Flags,
int  Action
 

_kernel_oserror* ColourTrans_SetFontColours int  Handle,
int  BPal,
int  FPal,
int  Offset
 

_kernel_oserror* ColourTrans_SetGCOL int  Palette,
unsigned int  Flags,
int  Action
 

char* ConvertInteger1 int  value,
char *  buffer,
int  buffsize
 

char* ConvertInteger2 int  value,
char *  buffer,
int  buffsize
 

char* ConvertInteger3 int  value,
char *  buffer,
int  buffsize
 

char* ConvertInteger4 int  value,
char *  buffer,
int  buffsize
 

Referenced by Window::WriteIconNumber(), and Window::WriteIconNumberU().

_kernel_oserror* DeleteFile char *  name  ) 
 

Referenced by main(), and FSDrive::open_directory().

_kernel_oserror* DigitalRenderer_Activate int  Channels,
int  Length,
int  SamPeriod
 

Referenced by DigitalRenderer::init_sound().

_kernel_oserror* DigitalRenderer_Deactivate void   ) 
 

Referenced by DigitalRenderer::~DigitalRenderer().

_kernel_oserror* DigitalRenderer_GetTables uint8 **  LinToLog,
uint8 **  LogScale
 

Referenced by DigitalRenderer::calc_buffer().

_kernel_oserror* DigitalRenderer_NewSample uint8 Sample  ) 
 

Referenced by DigitalRenderer::EmulateLine().

_kernel_oserror* DigitalRenderer_Pause void   ) 
 

Referenced by DigitalRenderer::Pause().

int DigitalRenderer_ReadState void   ) 
 

Referenced by DigitalRenderer::EmulateLine(), and DigitalRenderer::init_sound().

_kernel_oserror* DigitalRenderer_Resume void   ) 
 

Referenced by DigitalRenderer::Resume().

_kernel_oserror* DragASprite_Start unsigned int  Flags,
int  SpriteArea,
char *  SpriteName,
int *  Box,
int *  BBox
 

_kernel_oserror* DragASprite_Stop void   ) 
 

int Joystick_Read int  joyno  ) 
 

Referenced by C64::open_close_joysticks(), and C64::poll_joystick().

unsigned int ModeColourNumber unsigned int  pal_entry  ) 
 

_kernel_oserror* MouseBoundingBox char  Box[8]  ) 
 

_kernel_oserror* OS_FlushBuffer int  BuffNum  ) 
 

Referenced by C64::thread_func(), and C64::VBlank().

_kernel_oserror* OS_Plot int  Command,
int  x,
int  y
 

_kernel_oserror* OS_ReadC char *  Code  ) 
 

int OS_ReadDynamicArea int  area  ) 
 

Referenced by ROScreen::ReadMode().

bool OS_ReadEscapeState void   ) 
 

int OS_ReadLine char *  Buffer,
int  BuffSize,
int  minasc,
int  maxasc,
int  Echo
 

Referenced by read_line().

int OS_ReadModeVariable int  mode,
int  var
 

Referenced by ROScreen::ReadMode(), and RORes::RORes().

int OS_ReadMonotonicTime void   ) 
 

Referenced by C64::thread_func(), and C64::VBlank().

_kernel_oserror* OS_SpriteOp int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int 
 

int ReadCatalogueInfo char *  Name,
int  Result[4]
 

Referenced by FSDrive::change_dir().

_kernel_oserror* ReadDirName const char *  dirname,
char *  buffer,
dir_env env
 

Referenced by FSDrive::find_first_file().

_kernel_oserror* ReadDirNameInfo const char *  dirname,
dir_full_info buffer,
dir_env env
 

Referenced by FSDrive::open_directory().

int ReadDragType void   ) 
 

int ReadKeyboardStatus void   ) 
 

Referenced by C64::c64_ctor2(), C64::thread_func(), and C64::VBlank().

int ScanKeys int  keys  ) 
 

int SetMousePointer int  NewShape  ) 
 

Referenced by C64::thread_func(), and C64::VBlank().

int Sound_Volume int  volume  ) 
 

Referenced by C64::c64_ctor1().

_kernel_oserror* Wimp_BaseOfSprites int *  ROM,
int *  RAM
 

_kernel_oserror* Wimp_CloseDown int  Handle,
int  tw
 

Referenced by main(), and OutOfMemory().

_kernel_oserror* Wimp_CloseTemplate void   ) 
 

_kernel_oserror* Wimp_CloseWindow const int *  Window  ) 
 

Referenced by Window::close().

_kernel_oserror* Wimp_CommandWindow int  Action  ) 
 

Referenced by SAM().

int Wimp_CreateIcon int  Priority,
const RO_IconDesc Icon
 

Referenced by Icon::Icon().

_kernel_oserror* Wimp_CreateMenu const int *  Menu,
int  cx,
int  cy
 

_kernel_oserror* Wimp_CreateSubMenu int *  MenuBlock,
int  cx,
int  xy
 

int Wimp_CreateWindow const int *  Window  ) 
 

Referenced by Window::Window().

_kernel_oserror* Wimp_DeleteIcon int *  Block  ) 
 

Referenced by Icon::~Icon().

_kernel_oserror* Wimp_DeleteWindow const int *  Window  ) 
 

Referenced by Window::~Window().

_kernel_oserror* Wimp_DragBox int *  Block  ) 
 

_kernel_oserror* Wimp_ForceRedraw int  Handle,
int  minx,
int  miny,
int  maxx,
int  maxy
 

Referenced by Window::forceredraw(), and Window::UpdateTitle().

_kernel_oserror* Wimp_GetCaretPosition RO_Caret Caret  ) 
 

Referenced by Window::HaveInput().

_kernel_oserror* Wimp_GetIconState int *  Block  ) 
 

Referenced by Window::GetIconState(), and Icon::getstate().

_kernel_oserror* Wimp_GetPointerInfo int *  Block  ) 
 

int Wimp_GetRectangle int *  Block  ) 
 

Referenced by Window::redraw(), Window::update(), and Window::UpdateIcon().

_kernel_oserror* Wimp_GetWindowInfo int *  Block  ) 
 

_kernel_oserror* Wimp_GetWindowOutline int *  Block  ) 
 

_kernel_oserror* Wimp_GetWindowState int *  Block  ) 
 

Referenced by Window::getstate().

int Wimp_Initialise int  Version,
int  tw,
const char *  TaskName,
const int *  Messages
 

Referenced by main().

_kernel_oserror* Wimp_LoadTemplate char **  Template,
char **  Indirect,
char *  IndirLimit,
char *  Fonts,
char *  Name,
int *  Position
 

_kernel_oserror* Wimp_OpenTemplate char *  Name  ) 
 

_kernel_oserror* Wimp_OpenWindow const int *  Window  ) 
 

Referenced by Window::open().

_kernel_oserror* Wimp_PlotIcon int *  Block  ) 
 

int Wimp_Poll unsigned int  Mask,
int *  Block,
int *  PollWord
 

int Wimp_PollIdle unsigned int  Mask,
int *  Block,
int  MinTime,
int *  PollWord
 

_kernel_oserror* Wimp_ProcessKey int  Key  ) 
 

int Wimp_RedrawWindow int *  Block  ) 
 

Referenced by Window::redraw().

_kernel_oserror* Wimp_ReportError const _kernel_oserror *  Error,
unsigned int  Flags,
const char *  AppName
 

Referenced by DigitalRenderer::init_sound(), OutOfMemory(), ROScreen::ReadMode(), ROScreen::ROScreen(), ShowRequester(), Window::Window(), and DigitalRenderer::~DigitalRenderer().

_kernel_oserror* Wimp_SendMessage int  Event,
int *  Block,
int  THandle,
int  IHandle
 

_kernel_oserror* Wimp_SetCaretPosition int  WHandle,
int  IHandle,
int  xoff,
int  yoff,
int  height,
int  index
 

_kernel_oserror* Wimp_SetExtent int  Handle,
int *  Block
 

Referenced by Window::extent().

_kernel_oserror* Wimp_SetIconState int *  Block  ) 
 

Referenced by Window::SetIconState(), and Icon::setstate().

_kernel_oserror* Wimp_SpriteInfo char *  name,
int *  width,
int *  height,
int *  mode
 

_kernel_oserror* Wimp_SpriteOp int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int 
 

int Wimp_StartTask char *  command  ) 
 

_kernel_oserror* Wimp_TransferBlock int  SHandle,
char *  SBuff,
int  DHandle,
char *  DBuff,
int  BuffSize
 

int Wimp_UpdateWindow int *  Block  ) 
 

Referenced by Window::update(), and Window::UpdateIcon().


Variable Documentation

RO_IconDesc IBarIcon
 

Definition at line 322 of file ROlib.h.

unsigned int TaskHandle
 

Definition at line 323 of file ROlib.h.

Referenced by main(), and OutOfMemory().

int WimpMessages[]
 

Definition at line 324 of file ROlib.h.

Referenced by main().


Generated on Tue Feb 8 04:10:47 2005 for E32frodo by doxygen 1.3.3