home *** CD-ROM | disk | FTP | other *** search
- TABLE OF CONTENTS
-
- triton.lib/TR_CloseTriton
- triton.lib/TR_OpenTriton
- triton.library/class_Button
- triton.library/class_CheckBox
- triton.library/class_Cycle
- triton.library/class_DropBox
- triton.library/class_FrameBox
- triton.library/class_Group
- triton.library/class_Line
- triton.library/class_Listview
- triton.library/class_Palette
- triton.library/class_Progress
- triton.library/class_Scroller
- triton.library/class_Slider
- triton.library/class_Space
- triton.library/class_String
- triton.library/class_Text
- triton.library/TR_AutoRequest
- triton.library/TR_CloseProject
- triton.library/TR_CloseWindowSafely
- triton.library/TR_CreateApp
- triton.library/TR_DeleteApp
- triton.library/TR_EasyRequest
- triton.library/TR_FirstOccurance
- triton.library/TR_GetAttribute
- triton.library/TR_GetErrorString
- triton.library/TR_GetMsg
- triton.library/TR_LockProject
- triton.library/TR_NumOccurances
- triton.library/TR_OpenProject
- triton.library/TR_ReplyMsg
- triton.library/TR_SetAttribute
- triton.library/TR_UnlockProject
- triton.library/TR_Wait
- triton.lib/TR_CloseTriton triton.lib/TR_CloseTriton
-
- NAME
- TR_CloseTriton -- Closes Triton easily.
-
- SYNOPSIS
- TR_CloseTriton()
-
- VOID TR_CloseTriton(VOID);
-
- FUNCTION
- Closes the application created by OpenTriton()
- and closes triton.library.
-
- SEE ALSO
- TR_OpenTriton()
-
- triton.lib/TR_OpenTriton triton.lib/TR_OpenTriton
-
- NAME
- TR_OpenTriton -- Opens Triton ready to use.
-
- SYNOPSIS
- success = TR_OpenTriton(version, tag1,...)
- D0
-
- BOOL TR_OpenTriton(ULONG, ULONG,...);
-
- FUNCTION
- Opens triton.library with the specified minimum
- version and creates an application.
- The supplied tags are passed as a taglist to
- TR_CreateApp().
-
- RESULT
- success - Was everything opened successful?
-
- SEE ALSO
- TR_CloseTriton(), TR_CreateApp()
-
- triton.library/class_Button triton.library/class_Button
-
- NAME
- class_Button -- A BOOPSI button gadget
-
- SYNOPSIS
- TROB_Button
-
- ATTRIBUTES
- <Default> : ULONG buttontype
- - TRBT_TEXT : Text button (default)
- - TRBT_GETFILE : GetFile image button
- - TRBT_GETDRAWER : GetDrawer image button
- - TRBT_GETENTRY : GetEntry image button
- TRAT_ID : ULONG objectid
- TRAT_Text : STRPTR text
- TRAT_Disabled : BOOL disabled
- TRAT_Flags : ULONG flags
- - TRBU_RETURNOK : Activated by <Return>
- - TRBU_ESCOK : Activated by <Esc>
- - TRBU_SHIFTED : Shifted shortcut only
- - TRBU_UNSHIFTED : Unshifted shortcut only
-
- triton.library/class_CheckBox triton.library/class_CheckBox
-
- NAME
- class_CheckBox -- A GadTools checkbox gadget
-
- SYNOPSIS
- TROB_CheckBox
-
- ATTRIBUTES
- <Default> : <unused>
- TRAT_ID : ULONG objectid
- TRAT_Value : BOOL checked
- TRAT_Disabled : BOOL disabled
-
- triton.library/class_Cycle triton.library/class_Cycle
-
- NAME
- class_Cycle -- A GadTools cycle gadget
-
- SYNOPSIS
- TROB_Cycle
-
- ATTRIBUTES
- <Default> : STRPTR *entries
- TRAT_ID : ULONG objectid
- TRAT_Value : BOOL checked
- TRAT_Disabled : BOOL disabled
-
- triton.library/class_DropBox triton.library/class_DropBox
-
- NAME
- class_DropBox -- An icon drop box
-
- SYNOPSIS
- TROB_DropBox
-
- ATTRIBUTES
- <Default> : <unused>
- TRAT_ID : ULONG objectid
-
- triton.library/class_FrameBox triton.library/class_FrameBox
-
- NAME
- class_FrameBox -- A framing box
-
- SYNOPSIS
- TROB_FrameBox
-
- ATTRIBUTES
- <Default> : <unused>
- TRAT_Backfill : ULONG pattern
- <other> : <Child object>
-
- triton.library/class_Group triton.library/class_Group
-
- NAME
- class_Group -- A grouping object
-
- SYNOPSIS
- TRGR_Horiz
- TRGR_Vert
-
- ATTRIBUTES
- <Default> : ULONG flags
- - TRGR_PROPSHARE : Divide objects
- proportionally
- - TRGR_EQUALSHARE : Divide objects equally
- - TRGR_PROPSPACES : Divide spaces
- proportionally
- - TRGR_ARRAY : Top group of an array. Lines
- or culumns can be built
- using TRGR_PROPSHARE groups.
- At least one group object
- must be contained in an array.
- - TRGR_ALIGN : Align resizeable objects in
- their secondary dimension
- - TRGR_CENTER : Center non-resizeable
- objects in their secondary
- dimension
- - TRGR_FIXHORIZ : Don't allow horizontal
- resizing
- - TRGR_FIXVERT : Don't allow vertical
- resizing
- <other> : <treated as elements of the group>
- TRGR_End : <unused> : Marks the end of the group
-
- triton.library/class_Line triton.library/class_Line
-
- NAME
- class_Line -- A 3D line
-
- SYNOPSIS
- TROB_Line
-
- ATTRIBUTES
- <Default> : ULONG flags
- - TROF_HORIZ : Horizontal line
- (Overrides group dimension)
- - TROF_VERT : Vertical line
- (Overrides group dimension)
- - TROF_RAISED : Raised line
-
- triton.library/class_Listview triton.library/class_Listview
-
- NAME
- class_Listview -- A GadTools Listview gadget
-
- SYNOPSIS
- TROB_Listview
-
- ATTRIBUTES
- <Default> : struct List *entries
- TRAT_ID : ULONG objectid
- TRAT_Disabled : BOOL disabled
- TRAT_Flags : ULONG flags
- - Listview type (mutually exclusive):
- - TRLV_READONLY : A read-only list
- - TRLV_SELECT : You may select an entry
- - TRLV_SHOWSELECTED : Show selected entry
- - TRLV_NOCURSORKEYS : Don't use arrow keys
- - TRLV_NONUMPADKEYS : Don't use keypad keys
- - TRLV_FWFONT : Use the fixed-width font
- TRAT_Value : ULONG actual
- TRLV_Top : ULONG top
- TRAT_MinWidth : ULONG minwidth : Minimum width
- (Default: 10 characters)
- TRAT_MinHeight : ULONG minheight : Minimum height
- (Default: 4 lines)
-
- triton.library/class_Palette triton.library/class_Palette
-
- NAME
- class_Palette -- A GadTools palette gadget
-
- SYNOPSIS
- TROB_Palette
-
- ATTRIBUTES
- <Default> : <unused>
- TRAT_ID : ULONG objectid
- TRAT_Value : BOOL checked
- TRAT_Disabled : BOOL disabled
-
- triton.library/class_Progress triton.library/class_Progress
-
- NAME
- class_Progress -- A progress indicator
-
- SYNOPSIS
- TROB_Progress
-
- ATTRIBUTES
- <Default> : ULONG maximum
- TRAT_Flags : ULONG orientation
- - TROF_HORIZ (default)
- - TROF_VERT
- TRAT_ID : ULONG objectid
- TRAT_Value : ULONG current
-
- triton.library/class_Scroller triton.library/class_Scroller
-
- NAME
- class_Scroller -- A GadTools scroller gadget
-
- SYNOPSIS
- TROB_Scroller
-
- ATTRIBUTES
- <Default> : ULONG flags
- - TROF_HORIZ : Horizontal scroller
- - TROF_VERT : Vertical scroller
- TRAT_ID : ULONG objectid
- TRAT_Value : WORD top
- TRAT_Disabled : BOOL disabled
- TRSC_Total : WORD total
- TRSC_Visible : WORD visible
-
- triton.library/class_Slider triton.library/class_Slider
-
- NAME
- class_Slider -- A GadTools slider gadget
-
- SYNOPSIS
- TROB_Slider
-
- ATTRIBUTES
- <Default> : ULONG flags
- - TROF_HORIZ (default)
- - TROF_VERT
- TRAT_ID : ULONG objectid
- TRAT_Value : WORD level
- TRAT_Disabled : BOOL disabled
- TRSL_Min : WORD min
- TRSL_Max : WORD max
-
- triton.library/class_Space triton.library/class_Space
-
- NAME
- class_Space -- A class of spaces with various sizes
-
- SYNOPSIS
- TROB_Space
-
- ATTRIBUTES
- <Default> : ULONG spacetype
- - TRST_NONE : No space
- - TRST_SMALL : Small space
- - TRST_NORMAL : Normal space (default)
- - TRST_BIG : Big space
-
- triton.library/class_String triton.library/class_String
-
- NAME
- class_String -- A GadTools string gadget
-
- SYNOPSIS
- TROB_String
-
- ATTRIBUTES
- <Default> : STRPTR string
- TRAT_ID : ULONG objectid
- TRAT_Disabled : BOOL disabled
- TRAT_Value : UWORD maxchars (default: 64)
- [create only]
-
- triton.library/class_Text triton.library/class_Text
-
- NAME
- class_Text -- A line of text / A value
-
- SYNOPSIS
- TROB_Text
-
- ATTRIBUTES
- <Default> : <unused>
- TRAT_ID : ULONG objectid
- TRAT_Text : STRPTR text
- TRAT_Value : ULONG number
- TRAT_MinWidth : ULONG number_of_average_chars
- TRAT_Flags : ULONG flags
- - TRTX_NOUNDERSCORE : Don't interpret underscores
- - TRTX_HIGHLIGHT : Highlight text
- - TRTX_3D : Highlight with shadows
- - TRTX_TITLE : Use this for titles (e.g.
- of groups). Currently this
- is identical to TRTX_3D, but
- it will be user-modifiable
- in future versions.
-
- BUGS
- Changing TRAT_Text while the text is displayed is currently working
- with text on a TRBF_NONE object only.
-
- triton.library/TR_AutoRequest triton.library/TR_AutoRequest
-
- NAME
- TR_AutoRequest -- A (relatively ;-) low-level requester function.
-
- SYNOPSIS
- selection = TR_AutoRequest(App, Project, TagList)
- D0 A1 A0 A2
-
- ULONG TR_AutoRequest(struct TR_App *, struct TR_Project *,
- struct AppItem *);
-
- selection = TR_AutoRequestTags(App, Project, Tag,...)
- D0
-
- ULONG TR_AutoRequestTags(struct TR_App *, struct TR_Project *,
- struct AppItem *);
-
- FUNCTION
- Pops up a requester which is described by the supplied tag list.
- As soon as a TRMS_ACTION message is sent by one of the objects,
- the requester will close. If a project is supplied, it will be
- locked when opening the requester and unlocked when closing it.
-
- RESULT
- selection - The ID of the object which triggered the action,
- NULL for an error, -1 for the close gadget.
-
- NOTES
- Simple requesters with just text and buttons can be done easier
- with TR_EasyRequest(). If you need more complex requesters, you
- have to use your own message polling loop instead of
- TR_AutoRequest(). You may still use the requester macros though.
-
- SEE ALSO
- TR_EasyRequest()
-
- triton.library/TR_CloseProject triton.library/TR_CloseProject
-
- NAME
- TR_CloseProject -- Closes a project/window.
-
- SYNOPSIS
- TR_CloseProject(Project)
- A0
-
- VOID TR_CloseProject(struct TR_Project *);
-
- FUNCTION
- Closes a Triton project.
-
- SEE ALSO
- TR_OpenProject()
-
- triton.library/TR_CloseWindowSafely triton.library/TR_CloseWindowSafely
-
- NAME
- TR_CloseWindowSafely -- Closes as window with a shared IDCMP port.
-
- SYNOPSIS
- TR_CloseWindowSafely(Window)
- A0
-
- VOID TR_CloseWindowSafely(struct Window *);
-
- FUNCTION
- Closes a window which shares its IDCMP port with another window.
- All the pending messages (concerning this window) on the port
- will be removed and the window will be closed.
-
- Do *NOT* use this function to close windows which have an IDCMP
- port set up by Intuition. If you do the port will be left in memory!
-
- If you intend to open a lot of windows all sharing the same IDCMP
- port it is easiest if you create a port yourself and open all
- windows with newwin.IDCMPFlags set to 0 (this tells Intuition NOT to
- set up an IDCMP port). After opening the window set win->UserPort
- to your message port and call ModifyIDCMP() to set your IDCMP flags.
-
- When you then receive messages from Intuition check their
- imsg->IDCMPWindow field to find out what window they came from
- and act upon them.
-
- When closing your windows call GT_CloseWindowSafely() for all of
- them and delete your message port.
-
- INPUTS
- Window - pointer to the window to be closed.
-
- NOTE
- This function is for the advanced Triton user.
-
- SEE ALSO
- intuition.library/CloseWindow()
-
- triton.library/TR_CreateApp triton.library/TR_CreateApp
-
- NAME
- TR_CreateApp -- Creates a Triton application.
-
- SYNOPSIS
- app = TR_CreateApp(TagList)
- D0 A1
-
- struct TR_App * TR_CreateApp(struct TagItem *);
-
- FUNCTION
- Creates an application. An application is required
- for opening windows and polling messages. All projects
- of an application will share one IDCMP port and one
- memory pool.
-
- TAGS
- TRCA_Name - (STRPTR)
- Unique name for the application. Must not be
- longer than 20 characters. Case-insensitive.
- ' ', '/' and ':' are not allowed.
- TRCA_LongName - (STRPTR)
- A user-readable name for the application.
- Up to 60 characters allowed.
- TRCA_Info - (STRPTR)
- Information about the application. Should not
- be more than 2 lines with 60 characters each.
- TRCA_Version - (STRPTR)
- Internal version of the application.
- TRCA_Release - (STRPTR)
- Release number of the application.
- TRCA_Date - (STRPTR)
- Creation/compilation date. Should be given in
- standard version string format.
-
- Example:
- Name : TRITON-PREFS
- LongName : Triton Prefs editor
- Info : Prefs editor for Triton applications
- Triton is © 1993-1994 by Stefan Zeiger
- Version : 37.114
- Release : 1.0a
- Date : 7.4.1994
-
- RESULT
- app - A pointer to the created application structure
-
- SEE ALSO
- TR_DeleteApp()
-
- triton.library/TR_DeleteApp triton.library/TR_DeleteApp
-
- NAME
- TR_DeleteApp -- Deletes a Triton application.
-
- SYNOPSIS
- TR_DeleteApp(App)
- A1
-
- VOID TR_DeleteApp(struct TR_App *);
-
- FUNCTION
- Deletes an application created by TR_CreateApp().
-
- NOTES
- All windows have to be closed before deleting the
- corresponding application!
-
- SEE ALSO
- TR_CreateApp()
-
- triton.library/TR_EasyRequest triton.library/TR_EasyRequest
-
- NAME
- TR_EasyRequest -- A high-level requester function.
-
- SYNOPSIS
- selection = TR_EasyRequest(App, BodyFmt, GadFmt, TagList)
- D0 A1 A2 A3 A0
-
- ULONG TR_EasyRequest(struct TR_App *, STRPTR, STRPTR, struct TagItem *);
-
- selection = TR_EasyRequestTags(App, BodyFmt, GadFmt, Tag,...)
- D0
-
- ULONG TR_EasyRequestTags(struct TR_App *, STRPTR, STRPTR, ULONG,...);
-
- FUNCTION
- Pops up a requester and waits for the user to select a gadget.
-
- INPUTS
- App - A valid Triton application.
- BodyFmt - A formatted text which will be displayed in the
- requester body. A <newline> (\n) will start a new line
- with a small space above it. A <return> (\r) will add
- a normal space instead. A <tab> (\t) will add a normal
- space, then a 3D separator line and again a normal
- space. '%b' will switch to boldface, '%3' to 3D text,
- '%h' to highlight and '%n' to normal style (at the moment
- styles may only be changed at the beginning of a line!).
- GadFmt - The gadget texts, separated by '|'.
- TagList - Pointer to a TagItem array.
-
- TAGS
- TREZ_ReqPos - (ULONG)
- The requester's position (TRWP_...).
- The default is TRWP_MOUSEPOINTER.
- TREZ_LockProject - (struct TR_Project *)
- This project will be locked while the
- requester is displayed. Information about
- screen and activity state of the requester
- are taken from this project.
- TREZ_Return - (ULONG)
- Number of the default gadget which can be
- activated by <RETURN>. Defaults to 1.
- TREZ_Title - (STRPTR)
- Requester window title. Default is
- "System request".
- TREZ_Activate - (BOOL)
- If this tag is supplied, the activity state
- of the requester window will be taken from
- this tag's argument instead of being inherited
- from the locked project (if applicable).
-
- RESULT
- selection - The number of the selected gadget. The gadgets are
- numbered from left to right beginning with 1. The
- rightmost gadget (or the only gadget in a 1-gadget
- requester) has got number 0. -1 is returned for an
- error.
-
- SEE ALSO
- TR_AutoRequest()
-
- triton.library/TR_FirstOccurance triton.library/TR_FirstOccurance
-
- NAME
- TR_FirstOccurance -- Finds a character in a string.
-
- SYNOPSIS
- Position = TR_FirstOccurance(Character, String)
- D0 D0 A0
-
- LONG TR_FirstOccurance(UBYTE, STRPTR);
-
- FUNCTION
- Finds the specified character in the string.
-
- RESULT
- Position - The position of the first occurance of the
- character in the string or -1 if the character couldn't
- be found in the string.
-
- triton.library/TR_GetAttribute triton.library/TR_GetAttribute
-
- NAME
- TR_GetAttribute -- Gets an attribute of an object.
-
- SYNOPSIS
- value = TR_GetAttribute(Project, ID, Attribute)
- D0 A0 D0 D1
-
- ULONG TR_GetAttribute(struct TR_Project *, ULONG,
- ULONG, ULONG);
-
- FUNCTION
- Gets an attribute of a Triton object. Only attributes
- of objects with an ID can be queried.
-
- RESULT
- value - Value of the specified attribute. Depends
- on specific class and attribute.
-
- SEE ALSO
- Class descriptions, TR_SetAttribute()
-
- triton.library/TR_GetErrorString triton.library/TR_GetErrorString
-
- NAME
- TR_GetErrorString -- Creates an error message
-
- SYNOPSIS
- Message = TR_GetErrorString(Number)
- D0 D0
-
- STRPTR TR_GetErrorString(UWORD);
-
- FUNCTION
- Creates an error message which matches the supplied
- Triton error code.
-
- RESULT
- Message - A pointer to the error message in user-readable
- form or NULL if the supplied number was TRER_OK.
-
- triton.library/TR_GetMsg triton.library/TR_GetMsg
-
- NAME
- TR_GetMsg -- Gets a Triton message.
-
- SYNOPSIS
- message = TR_GetMsg(App)
- D0 A1
-
- struct TR_Message * TR_GetMsg(struct TR_App *);
-
- FUNCTION
- Gets a message from a Triton application created
- by TR_CreateApp(). You may first wait for a message
- with TR_Wait().
-
- NOTES
- Please reply all messages as quickly as possible
- with TR_ReplyMsg(). This will reduce memory usage.
- All pending messages will be freed automatically when
- you shut down the application with TR_DeleteApp().
- It is *NOT* guaranteed that all reserved resources
- *within* the messages will be freed (like AppMessages)!
-
- SEE ALSO
- TR_ReplyMsg(), TR_Wait()
-
- triton.library/TR_LockProject triton.library/TR_LockProject
-
- NAME
- TR_LockProject -- Locks a Triton project.
-
- SYNOPSIS
- TR_LockProject(Project)
- A0
-
- VOID TR_LockProject(struct TR_Project *);
-
- FUNCTION
- Locks a Triton project. Only window resizing will
- still work in a locked project. All other kinds of
- input (i.e. all input which requires interaction
- by your program and not only by Triton) are not
- possible.
-
- SEE ALSO
- TR_UnlockProject()
-
- triton.library/TR_NumOccurances triton.library/TR_NumOccurances
-
- NAME
- TR_NumOccurances -- Counts a character in a string.
-
- SYNOPSIS
- Number = TR_NumOccurances(Character, String)
- D0 D0 A0
-
- LONG TR_NumOccurances(UBYTE, STRPTR);
-
- FUNCTION
- Counts the number of occurances of the character in the string.
-
- RESULT
- Number - The number of occurances found.
-
- triton.library/TR_OpenProject triton.library/TR_OpenProject
-
- NAME
- TR_OpenProject -- Opens a project/window.
- TR_OpenProjectTags -- Varargs stub for TR_OpenProject.
-
- SYNOPSIS
- Project = TR_OpenProject(App, TagItems)
- D0 A1 A0
-
- struct TR_Project *TR_OpenProject(struct TR_App *,
- struct TagItem *);
-
- Project = TR_OpenProjectTags(App, Tag1,...)
-
- struct TR_Project *TR_OpenProjectTags(struct TR_App *,
- ULONG,...);
-
- FUNCTION
- Opens a Triton project. The supplied taglist may contain
- window tags, menu tags and object tags (in that order).
- A valid application pointer must be supplied.
-
- INPUTS
- App = Valid application pointer
- TagItems = List of tags describing the project
-
- TAGS
- The taglist may contain window tags, menu tags and object tags
- (in that order!). The following list shows the window and menu
- tags. See the class descriptions for the object tags.
-
- TRWI_Title (STRPTR) - The window title
-
- TRWI_Flags (ULONG) - The Triton window flags:
- - TRWF_BACKDROP : Create a backdrop borderless window
- in full screen size
- - TRWF_NODRAGBAR : No dragging bar
- - TRWF_NODEPTHGADGET : No depth arranging gadget
- - TRWF_NOCLOSEGADGET : No close gadget
- - TRWF_NOACTIVE : Don't activate window
- - TRWF_NOESCCLOSE : Don't send TRMS_CLOSEWINDOW when
- Esc is pressed
- - TRWF_NOPSCRFALLBACK : Don't fall back onto default PubScreen
- - TRWF_NOZIPGADGET : No zip/zoom gadget
- - TRWF_ZIPCENTERTOP : Center zipped window on screen title bar
- - TRWF_NOMINTEXTWIDTH : Window title text length doesn't count
- for window size calculation
- - TRWF_NOSIZEGADGET : No size gadget
- - TRWF_NOFONTFALLBACK : Don't fall back to topaz/8
- - TRWF_NODELZIP : Don't zip the window when Del is pressed
- - TRWF_SIMPLEREFRESH : Use simple refresh
- (Default: smart refresh)
- - TRWF_ZIPTOCURRENTPOS : Zip the window without changing its
- position. Requires OS3.0 or higher.
- - TRWF_APPWINDOW : Create an AppWindow even if no object
- reacts on dropped icons
- - TRWF_ACTIVATESTRGAD : Activate the first string gadget after
- opening the window
-
- TRWI_Underscore (UBYTE *) - The underscore for menu and gadget
- shortcuts
-
- TRWI_Position (ULONG) - The window position:
- - TRWP_DEFAULT : Let Triton choose a good position for
- the window
- - TRWP_BELOWTITLEBAR : Left side of screen; below the title bar
- - TRWP_CENTERTOP : Top of screen; centered on the title bar
- - TRWP_TOPLEFTSCREEN : Top left corner of screen
- - TRWP_CENTERSCREEN : Centered on the screen
- - TRWP_CENTERDISPLAY : Centered on the currently displayed clip
- - TRWP_MOUSEPOINTER : Centered under the mouse pointer
-
- TRWI_CustomScreen (struct Screen *) - A custom screen on which
- the window will be opened
-
- TRWI_PubScreen (struct Screen *) - A public screen on which the
- window will be opened. The screen *must* have been locked.
-
- TRWI_PubScreenName (STRPTR) - A public screen on which the window
- will be opened. Triton will try to lock the screen with the
- specified name. It will fall back onto the default public
- screen in case the screen can't be found/locked if you don't
- specify TRWF_NOPSCRFALLBACK.
-
- TRWI_PropFontAttr (struct TextAttr *) - The proportional font. If
- Triton can't open the font or the window would become too big
- for the screen with this font and you didn't specify
- TRWF_NOFONTFALLBACK, Triton will try to use topaz/8 instead.
-
- TRWI_FixedWidthFontAttr (struct TextAttr *) - The fixed-width
- font. If Triton can't open the font or the window would
- become too big for the screen with this font and you didn't
- specify TRWF_NOFONTFALLBACK, Triton will try to use topaz/8
- instead.
-
- TRWI_Backfill (ULONG) - The backfill type:
- - TRBF_WINDOWBACK : Default window background; Will be
- user-configurable in future versions
- of Triton; Use wherever possible.
- - TRBF_REQUESTERBACK : Default requester background; Will be
- user-configurable in future versions
- of Triton; Use wherever possible.
- - TRBF_NONE : No backfill (i.e. fill with
- BACKGROUNDPEN)
- - TRBF_SHINE : Fill with SHINEPEN
- - TRBF_SHINE_SHADOW : Fill with a pattern composed of
- ~ SHINEPEN and SHADOWPEN
- - TRBF_SHINE_FILL : ~ SHINEPEN and FILLPEN
- - TRBF_SHINE_BACKGROUND : ~ SHINEPEN and BACKGROUNDPEN
- - TRBF_SHADOW : ~ SHADOWPEN
- - TRBF_SHADOW_FILL : ~ SHADOWPEN and FILLPEN
- - TRBF_SHADOW_BACKGROUND : ~ SHADOWPEN and BACKGROUNDPEN
- - TRBF_FILL : ~ FILLPEN
- - TRBF_FILL_BACKGROUND : ~ FILLPEN and BACKGROUNDPEN
-
- TRWI_ID (ULONG) - An ID for the window. Identical windows (e.g.
- several identical data editor windows) should share the same
- ID. The same ID may be used in different applications.
-
- TRWI_Dimensions (struct TR_Dimensions *) - A window dimension
- structure. The user program must supply a structure on its
- own if it wants to use this feature. Triton will *not*
- allocate it. If you use a dimensions structure, Triton will
- always hold the actual window dimensions in it. If you supply
- a filled-in dimension structure, Triton will try to open
- the window with these dimensions. Supply an empty structure
- if you want Triton to use the default dimensions (the
- position may then be specified with TRWI_Position) and fill
- in the structure for later use.
-
- TRMN_Title (STRPTR) - A menu label
-
- TRMN_Item (STRPTR) - A menu item label. You may attach a
- keyboard shortcut to a menu by starting the label string
- with the shortcut followed by the project's underscore
- character and then the actual label. You may also use
- extended menu shortcuts composed of more than one character.
- Extended shortcuts can be specified with an underscore at
- the beginning, then the shortcut, again an underscore and
- the label. You may specify TRMN_BARLABEL instead of a string
- to create a separator bar in the menu.
-
- TRMN_Sub (STRPTR) - A sub-menu item label. See TRMN_Item.
-
- TRMN_Flags (ULONG) - Flags for a menu item:
- - TRMF_CHECKIT : The menu item may be checked.
- - TRMF_CHECKED : The menu item is checked. You may, but
- you do not need to specify TRMF_CHECKIT
- in addition.
- - TRMF_DISABLED : The menu (item) will be ghosted.
-
- RESULT
- Project - The pointer to the TR_Project structure
-
- SEE ALSO
- TR_CloseProject()
-
- triton.library/TR_ReplyMsg triton.library/TR_ReplyMsg
-
- NAME
- TR_ReplyMsg -- Replies a Triton message.
-
- SYNOPSIS
- TR_ReplyMsg(Message)
- A1
-
- VOID TR_ReplyMsg(struct TR_Message *);
-
- FUNCTION
- Replies a message allocated by TR_GetMsg().
-
- NOTES
- Please reply all messages as quickly as possible
- with TR_ReplyMsg(). This will reduce memory usage.
- All pending messages will be freed automatically when
- you shut down the application with TR_DeleteApp().
- It is *NOT* guaranteed that all reserved resources
- *within* the messages will be freed (like AppMessages)!
-
- SEE ALSO
- TR_GetMsg(), TR_Wait()
-
- triton.library/TR_SetAttribute triton.library/TR_SetAttribute
-
- NAME
- TR_SetAttribute -- Sets an attribute of an object.
-
- SYNOPSIS
- TR_SetAttribute(Project, ID, Attribute, Value)
- A0 D0 D1 D2
-
- VOID TR_SetAttribute(struct TR_Project *, ULONG,
- ULONG, ULONG, ULONG);
-
- FUNCTION
- Sets an attribute of a Triton object. Only attributes
- of objects with an ID can be changed.
-
- SEE ALSO
- Class descriptions, TR_GetAttribute()
-
- triton.library/TR_UnlockProject triton.library/TR_UnlockProject
-
- NAME
- TR_UnlockProject -- Unlocks a Triton project.
-
- SYNOPSIS
- TR_UnlockProject(Project)
- A0
-
- VOID TR_UnlockProject(struct TR_Project *);
-
- FUNCTION
- Unlocks a Triton project previously locked by
- TR_LockProject().
-
- SEE ALSO
- TR_LockProject()
-
- triton.library/TR_Wait triton.library/TR_Wait
-
- NAME
- TR_Wait -- Waits for exec signals.
-
- SYNOPSIS
- Signals = TR_Wait(App, OtherBits)
- A1 D0
-
- ULONG TR_Wait(struct TR_App *, ULONG);
-
- FUNCTION
- Waits until a signal of the specified application
- or one of the other signal bits is set.
-
- RESULT
- Signals - The mask of set signals
-
- SEE ALSO
- TR_GetMsg(), TR_ReplyMsg()
-
-