home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / programming / oslib / oslib_1 / OSLib / Toolbox / Hdr / FontMenu < prev    next >
Encoding:
Text File  |  1995-09-05  |  3.2 KB  |  105 lines

  1. ;Assembler header file for FontMenu
  2. ;written by DefMod (Jun 30 1995) on Tue Sep  5 15:15:13 1995
  3. ;Jonathan Coxhead, Acorn Computers Ltd
  4.  
  5.         [       :LNOT: :DEF: Get_Types
  6.         GBLS    Get_Types
  7.         ]
  8.         [       :LNOT: :DEF: Types_Hdr
  9. Get_Types                       SETS    "GET OS:Hdr.Types"
  10.         |
  11. Get_Types                       SETS    ""
  12.         ]
  13.         $Get_Types
  14.  
  15.         [       :LNOT: :DEF: Get_Toolbox
  16.         GBLS    Get_Toolbox
  17.         ]
  18.         [       :LNOT: :DEF: Toolbox_Hdr
  19. Get_Toolbox                     SETS    "GET OS:Hdr.Toolbox"
  20.         |
  21. Get_Toolbox                     SETS    ""
  22.         ]
  23.         $Get_Toolbox
  24.  
  25.         [       :LNOT: :DEF: Get_Menu
  26.         GBLS    Get_Menu
  27.         ]
  28.         [       :LNOT: :DEF: Menu_Hdr
  29. Get_Menu                        SETS    "GET OS:Hdr.Menu"
  30.         |
  31. Get_Menu                        SETS    ""
  32.         ]
  33.         $Get_Menu
  34.  
  35.         [       :LNOT: :DEF: FontMenu_Hdr
  36.         GBLS    FontMenu_Hdr
  37.  
  38. ;Symbols for constants
  39. Class_FontMenu                  *       &82A40
  40. FontMenu_GenerateAboutToBeShown *       &1
  41. FontMenu_GenerateDialogueCompleted *       &2
  42. FontMenu_IncludeSystemFont      *       &4
  43. Action_FontMenuAboutToBeShown   *       &82A40
  44. Action_FontMenuDialogueCompleted *       &82A41
  45. Action_FontMenuSelection        *       &82A42
  46. Error_FontMenuTasksActive       *       &80B000
  47. Error_FontMenuAllocFailed       *       &80B001
  48. Error_FontMenuShortBuffer       *       &80B002
  49. Error_FontMenuNoSuchTask        *       &80B011
  50. Error_FontMenuNoSuchMethod      *       &80B012
  51. Error_FontMenuNoSuchMiscOpMethod *       &80B013
  52.  
  53. ;Symbols for structure offsets and sizes
  54. FontMenu_Flags                  *       Bits
  55.  
  56.                                 ^       0
  57. FontMenu_Object_flags           #       FontMenu_Flags
  58. FontMenu_Object_ticked_font     #       Toolbox_StringReference
  59. FontMenu_Object                 *       @
  60.  
  61. FontMenu_Full                   *       OS_Coord
  62.  
  63.                                 ^       0
  64. FontMenu_ActionAboutToBeShown_tag #       Toolbox_PositionTag
  65. FontMenu_ActionAboutToBeShown_position *       @
  66. FontMenu_ActionAboutToBeShown_position_top_left #       OS_Coord
  67.                                 ^       FontMenu_ActionAboutToBeShown_position
  68. FontMenu_ActionAboutToBeShown_position_full #       FontMenu_Full
  69. FontMenu_ActionAboutToBeShown   *       @
  70.  
  71.                                 ^       0
  72. FontMenu_ActionSelection_font_identifier #       216*Char
  73. FontMenu_ActionSelection        *       @
  74.  
  75.  
  76. ;Symbols for SWI's and SWI reason codes
  77. XFontMenu_ClassSWI              *       &A2A40
  78. FontMenu_ClassSWI               *       &82A40
  79.  
  80. XFontMenu_PostFilter            *       &A2A41
  81. FontMenu_PostFilter             *       &82A41
  82.  
  83. XFontMenu_PreFilter             *       &A2A42
  84. FontMenu_PreFilter              *       &82A42
  85.  
  86. FontMenu_SetFont                *       &0
  87.    ;Entry
  88.    ;  R0 = flags (Bits)
  89.    ;  R1 = font_menu (Toolbox_O)
  90.    ;  R2 = &0
  91.    ;  R3 -> font_identifier (String)
  92.  
  93. FontMenu_GetFont                *       &1
  94.    ;Entry
  95.    ;  R0 = flags (Bits)
  96.    ;  R1 = font_menu (Toolbox_O)
  97.    ;  R2 = &1
  98.    ;  R3 = buffer (pointer to String)
  99.    ;  R4 = size (Int)
  100.    ;Exit
  101.    ;  R4 = used (Int)
  102.  
  103.         ]
  104.         END
  105.