home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ARM Club 3
/
TheARMClub_PDCD3.iso
/
mag_discs
/
16
/
modules
/
Drawfile
/
Hdr
/
DrawFile
Wrap
Text File
|
1995-01-18
|
13KB
|
354 lines
;Assembler header file for DrawFile
;written by DefMod (Oct 26 1994) on Wed Jan 18 13:38:22 1995
;Copyright © Acorn Computers Ltd, 1994
[ :LNOT: :DEF: Get_Types
GBLS Get_Types
]
[ :LNOT: :DEF: Types_Hdr
Get_Types SETS "GET OS:Hdr.Types"
|
Get_Types SETS ""
]
$Get_Types
[ :LNOT: :DEF: Get_OS
GBLS Get_OS
]
[ :LNOT: :DEF: OS_Hdr
Get_OS SETS "GET OS:Hdr.OS"
|
Get_OS SETS ""
]
$Get_OS
[ :LNOT: :DEF: Get_OSSpriteOp
GBLS Get_OSSpriteOp
]
[ :LNOT: :DEF: OSSpriteOp_Hdr
Get_OSSpriteOp SETS "GET OS:Hdr.OSSpriteOp"
|
Get_OSSpriteOp SETS ""
]
$Get_OSSpriteOp
[ :LNOT: :DEF: Get_Draw
GBLS Get_Draw
]
[ :LNOT: :DEF: Draw_Hdr
Get_Draw SETS "GET OS:Hdr.Draw"
|
Get_Draw SETS ""
]
$Get_Draw
[ :LNOT: :DEF: Get_Font
GBLS Get_Font
]
[ :LNOT: :DEF: Font_Hdr
Get_Font SETS "GET OS:Hdr.Font"
|
Get_Font SETS ""
]
$Get_Font
[ :LNOT: :DEF: Get_Wimp
GBLS Get_Wimp
]
[ :LNOT: :DEF: Wimp_Hdr
Get_Wimp SETS "GET OS:Hdr.Wimp"
|
Get_Wimp SETS ""
]
$Get_Wimp
[ :LNOT: :DEF: DrawFile_Hdr
GBLS DrawFile_Hdr
;Symbols for constants
Error_DrawFileNotDraw * &20C00
Error_DrawFileVersion * &20C01
Error_DrawFileFontTab * &20C02
Error_DrawFileBadFontNo * &20C03
Error_DrawFileBadMode * &20C04
Error_DrawFileBadFile * &20C05
Error_DrawFileBadGroup * &20C06
Error_DrawFileBadTag * &20C07
Error_DrawFileSyntax * &20C08
Error_DrawFileFontNo * &20C09
Error_DrawFileAreaVer * &20C0A
Error_DrawFileNoAreaVer * &20C0B
DrawFile_TypeFontTable * 0
DrawFile_TypeText * 1
DrawFile_TypePath * 2
DrawFile_TypeSprite * 5
DrawFile_TypeGroup * 6
DrawFile_TypeTagged * 7
DrawFile_TypeTextArea * 9
DrawFile_TypeTextColumn * 10
DrawFile_TypeOptions * 11
DrawFile_TypeTrfmText * 12
DrawFile_TypeTrfmSprite * 13
DrawFile_PathMitred * &0
DrawFile_PathRound * &1
DrawFile_PathBevelled * &2
DrawFile_PathButt * &0
DrawFile_PathSquare * &2
DrawFile_PathTriangle * &3
DrawFile_PathJoinShift * 0
DrawFile_PathJoin * &3
DrawFile_PathEndShift * 2
DrawFile_PathEnd * &C
DrawFile_PathStartShift * 4
DrawFile_PathStart * &30
DrawFile_PathWindingEvenOdd * &40
DrawFile_PathDashed * &80
DrawFile_PathCapWidthShift * 16
DrawFile_PathCapWidth * &FF0000
DrawFile_PathCapLengthShift * 24
DrawFile_PathCapLength * &FF000000
DrawFile_TextKern * &1
DrawFile_TextRightToLeft * &2
DrawFile_TextUnderline * &4
DrawFile_RenderBBoxes * &1
DrawFile_RenderSuppress * &2
DrawFile_RenderGivenFlatness * &4
DrawFile_NoDownload * &1
;Symbols for structure offsets and sizes
^ 0
DrawFile_FontDef_font_index # Byte
DrawFile_FontDef_font_name # Char
DrawFile_FontDef * @
^ 0
DrawFile_TextStyle_font_index # Byte
DrawFile_TextStyle_reserved # 3*Byte
DrawFile_TextStyle * @
^ 0
DrawFile_PathStyle_flags # Byte
DrawFile_PathStyle_reserved # Byte
DrawFile_PathStyle_cap_width # Byte
DrawFile_PathStyle_cap_length # Byte
DrawFile_PathStyle * @
^ 0
DrawFile_FontTable_font_def # DrawFile_FontDef
DrawFile_FontTable * @
^ 0
DrawFile_Text_bbox # OS_Box
DrawFile_Text_fill # OS_Colour
DrawFile_Text_bg_hint # OS_Colour
DrawFile_Text_style # DrawFile_TextStyle
DrawFile_Text_xsize # Int
DrawFile_Text_ysize # Int
DrawFile_Text_base # OS_Coord
DrawFile_Text_text # Char
DrawFile_Text * @
^ 0
DrawFile_Path_bbox # OS_Box
DrawFile_Path_fill # OS_Colour
DrawFile_Path_outline # OS_Colour
DrawFile_Path_width # Int
DrawFile_Path_style # DrawFile_PathStyle
DrawFile_Path_path # Draw_Path
DrawFile_Path * @
^ 0
DrawFile_PathWithPattern_bbox # OS_Box
DrawFile_PathWithPattern_fill # OS_Colour
DrawFile_PathWithPattern_outline # OS_Colour
DrawFile_PathWithPattern_width # Int
DrawFile_PathWithPattern_style # DrawFile_PathStyle
DrawFile_PathWithPattern_pattern # Draw_DashPattern
DrawFile_PathWithPattern_path # Draw_Path
DrawFile_PathWithPattern * @
^ 0
DrawFile_Sprite_bbox # OS_Box
DrawFile_Sprite_header # OSSpriteOp_Header
DrawFile_Sprite_data # Byte
DrawFile_Sprite * @
^ 0
DrawFile_Group_bbox # OS_Box
DrawFile_Group_name # 12*Char
DrawFile_Group_objects # Int
DrawFile_Group * @
^ 0
DrawFile_Tagged_bbox # OS_Box
DrawFile_Tagged_tag # Int
DrawFile_Tagged_object # Int
DrawFile_Tagged * @
^ 0
DrawFile_TextColumn_box # OS_Box
DrawFile_TextColumn * @
^ 0
DrawFile_TextColumnList_columns_type # Int
DrawFile_TextColumnList_columns_size # Int
DrawFile_TextColumnList_columns_data # DrawFile_TextColumn
DrawFile_TextColumnList * @
^ 0
DrawFile_AreaText_type # Int
DrawFile_AreaText_reserved # 2*Int
DrawFile_AreaText_fill # OS_Colour
DrawFile_AreaText_bg_hint # OS_Colour
DrawFile_AreaText_text # Char
DrawFile_AreaText * @
^ 0
DrawFile_TextArea_bbox # OS_Box
DrawFile_TextArea_header # DrawFile_TextColumnList
DrawFile_TextArea_area_text # DrawFile_AreaText
DrawFile_TextArea * @
^ 0
DrawFile_Options_bbox # OS_Box
DrawFile_Options_paper_size # Int
DrawFile_Options_paper_options # Bits
DrawFile_Options_grid_spacing # Float
DrawFile_Options_grid_division # Int
DrawFile_Options_isometric # Bool
DrawFile_Options_auto_adjust # Bool
DrawFile_Options_show # Bool
DrawFile_Options_lock # Bool
DrawFile_Options_cm # Bool
DrawFile_Options_zoom_mul # Int
DrawFile_Options_zoom_div # Int
DrawFile_Options_zoom_lock # Bool
DrawFile_Options_toolbox # Bool
DrawFile_Options_entry_mode # Bits
DrawFile_Options_undo_size # Int
DrawFile_Options * @
^ 0
DrawFile_TrfmText_bbox # OS_Box
DrawFile_TrfmText_trfm # OS_Trfm
DrawFile_TrfmText_flags # Bits
DrawFile_TrfmText_fill # OS_Colour
DrawFile_TrfmText_bg_hint # OS_Colour
DrawFile_TrfmText_style # DrawFile_TextStyle
DrawFile_TrfmText_xsize # Int
DrawFile_TrfmText_ysize # Int
DrawFile_TrfmText_base # OS_Coord
DrawFile_TrfmText_text # Char
DrawFile_TrfmText * @
^ 0
DrawFile_TrfmSprite_bbox # OS_Box
DrawFile_TrfmSprite_trfm # OS_Trfm
DrawFile_TrfmSprite_header # OSSpriteOp_Header
DrawFile_TrfmSprite_data # Byte
DrawFile_TrfmSprite * @
^ 0
DrawFile_Object_type # Int
DrawFile_Object_size # Int
DrawFile_Object_data * @
DrawFile_Object_data_font_table # DrawFile_FontTable
^ DrawFile_Object_data
DrawFile_Object_data_text # DrawFile_Text
^ DrawFile_Object_data
DrawFile_Object_data_path # DrawFile_Path
^ DrawFile_Object_data
DrawFile_Object_data_path_with_pattern # DrawFile_PathWithPattern
^ DrawFile_Object_data
DrawFile_Object_data_sprite # DrawFile_Sprite
^ DrawFile_Object_data
DrawFile_Object_data_group # DrawFile_Group
^ DrawFile_Object_data
DrawFile_Object_data_tagged # DrawFile_Tagged
^ DrawFile_Object_data
DrawFile_Object_data_text_column # DrawFile_TextColumn
^ DrawFile_Object_data
DrawFile_Object_data_text_area # DrawFile_TextArea
^ DrawFile_Object_data
DrawFile_Object_data_options # DrawFile_Options
^ DrawFile_Object_data
DrawFile_Object_data_trfm_text # DrawFile_TrfmText
^ DrawFile_Object_data
DrawFile_Object_data_trfm_sprite # DrawFile_TrfmSprite
DrawFile_Object * @
^ 0
DrawFile_Diagram_tag # 4*Char
DrawFile_Diagram_major_version # Int
DrawFile_Diagram_minor_version # Int
DrawFile_Diagram_source # 12*Char
DrawFile_Diagram_bbox # OS_Box
DrawFile_Diagram_objects # DrawFile_Object
DrawFile_Diagram * @
^ 0
DrawFile_RenderState_object # Ptr
DrawFile_RenderState_diagram # Ptr
DrawFile_RenderState_font_table # Ptr
DrawFile_RenderState_flags # Bits
DrawFile_RenderState_trfm # Ptr
DrawFile_RenderState_clip # Ptr
DrawFile_RenderState_flatness # Int
DrawFile_RenderState_error # Ptr
DrawFile_RenderState * @
^ 0
DrawFile_DeclareFontsState_object # Ptr
DrawFile_DeclareFontsState_diagram # Ptr
DrawFile_DeclareFontsState_font_table # Ptr
DrawFile_DeclareFontsState_flags # Bits
DrawFile_DeclareFontsState_error # Ptr
DrawFile_DeclareFontsState * @
;Symbols for SWI's and SWI reason codes
XDrawFile_Render * &65540
DrawFile_Render * &45540
;Entry
; R0 = flags (Bits)
; R1 -> diagram (DrawFile_Diagram)
; R2 = size (Int)
; R3 -> trfm (OS_Trfm)
; R4 -> clip (OS_Box)
; R5 = flatness (Int)
XDrawFile_BBox * &65541
DrawFile_BBox * &45541
;Entry
; R0 = flags (Bits)
; R1 -> diagram (DrawFile_Diagram)
; R2 = size (Int)
; R3 -> trfm (OS_Trfm)
; R4 = bbox (pointer to OS_Box)
XDrawFile_DeclareFonts * &65542
DrawFile_DeclareFonts * &45542
;Entry
; R0 = flags (Bits)
; R1 -> diagram (DrawFile_Diagram)
; R2 = size (Int)
Service_DrawObjectRender * &45540
;Entry
; R0 = type (Int)
; R1 = &45540
; R2 -> state (DrawFile_RenderState)
;Exit
; R1 = unclaimed (Bool)
Service_DrawObjectDeclareFonts * &45541
;Entry
; R0 = type (Int)
; R1 = &45541
; R2 -> state (DrawFile_DeclareFontsState)
;Exit
; R1 = unclaimed (Bool)
]
END