|
BB2 C port
API reference: Blitz libraries in C and the shared code
|
#include "blitzlib.h"#include "blitzexec.h"#include <exec/memory.h>#include <intuition/intuition.h>#include <libraries/gadtools.h>#include <proto/gadtools.h>#include <proto/intuition.h>Data Structures | |
| struct | gtmenulist |
| struct | gtentry |
Macros | |
| #define | __NOLIBBASE__ |
| #define | GADTOOLS_BASE_NAME gtbase |
| #define | INTUITION_BASE_NAME intuibase |
| #define | W BL_WORD |
| #define | S BL_STRING |
| #define | LG BL_LONG |
| #define | TITLESIZE 12 |
| #define | ITEMSIZE 30 |
| #define | HEAD(head) |
| #define | FLAGS_HI(f) |
| #define | FLAGS_LO(f) |
| #define | gtitem do_gtitem |
| #define | ITEMARGS |
| #define | SUBARGS |
| #define | MENU(obj, menu) |
| #define | SUBITEM(mi, subno) |
| #define | CHKARGS ULONG menu BL_REG(d1), ULONG itemno BL_REG(d2), ULONG subno BL_REG(d3) |
Functions | |
| void | _CreateMenuStrip (void) |
| void | _setmenu (void) |
| void | _gtunsetmenu (void) |
| void | _gtmenutitle (void) |
| void | _gtmenuitem2 (void) |
| void | _gtmenuitem3 (void) |
| void | _gtmenuitem (void) |
| void | _gtmenuitem4 (void) |
| void | _gtmenuitem5 (void) |
| void | rigtmenulib_domenustate (void) |
| void | rigtmenulib_domenustate2 (void) |
| void | rigtmenulib_domenustate3 (void) |
| void | rigtmenulib_domenustate4 (void) |
| void | _gtsubitem2 (void) |
| void | _gtsubitem3 (void) |
| void | _gtsubitem (void) |
| void | _gtsubitem4 (void) |
| void | _gtsubitem5 (void) |
| void | rigtmenulib_domenuchecked (void) |
| void | rigtmenulib_domenuchecked2 (void) |
| void | setmenuchecked (void) |
| void | setmenuchecked2 (void) |
| void | _freetitle (void) |
| void | _freeitem (void) |
| void | _freesubitem (void) |
| void | _GetUserData (void) |
| void | _GetUserData2 (void) |
| void | rigtmenulib_libinit (void) |
| void | rigtmenulib_libfinit (void) |
| void | freemenu (void) |
| void | createchk (void) |
| void | setchk (void) |
| void | rigtmenulib_statechk2 (void) |
| void | rigtmenulib_statechk3 (void) |
| void | rigtmenulib_statechk4 (void) |
| void | rigtmenulib_chkchk3 (void) |
| void | rigtmenulib_chkchk4 (void) |
| void | chkchk5 (void) |
| void | rigtmenulib_freechk (void) |
| static ULONG | galloc (ULONG size, ULONG fl) |
| static void | gfree (APTR mem, ULONG size) |
| static ULONG | allocst (ULONG s, ULONG len) |
| static void | freest (ULONG s) |
| static APTR | walk (APTR *slot, UWORD n) |
| static void | libinit_c (void) |
| init: open gadtools.library (any version). | |
| static void | libfinit_c (void) |
| finit: close gadtools.library. | |
| static struct NewMenu * | makearray (struct gtmenulist *obj) |
| static BB_BOOL | createmenustrip (struct gtmenulist *obj, struct Screen **scr) |
| static BB_BOOL | createmenustrip_c (struct Screen **scr, struct gtmenulist *obj) |
| CreateMenuStrip GTMenuList#: make the menu strip of the object's lists (gadtools CreateMenusA, LayoutMenusA with new look menus). | |
| static void | setmenu_c (struct Screen **scr, struct Window **win, struct gtmenulist *obj, struct Library *intui) |
| GTSetMenu GTMenuList#: attach the object's menu strip to the used window. | |
| static void | gtunsetmenu_c (struct Window **win, struct Library *intui) |
| GTUnSetMenu: remove the menu strip from the used window (if it has one). | |
| static void | gtmenutitle_c (ULONG menu, ULONG text, const ULONG *args, struct gtmenulist *obj) |
| GTMenuTitle GTMenuList#,menu,title$: insert a menu title as title menu of the list. | |
| static void | additem (struct gtmenulist *obj, struct gtentry *link, UWORD n, int sub, ULONG text, ULONG sc, const ULONG *sp) |
| static void | do_gtitem (ULONG itemflags, ULONG menu, ULONG itemno, ULONG text, ULONG shortcut, const ULONG *sp, struct gtmenulist *obj) |
| static void | gtmenuitem2_c (ULONG itemflags, ULONG menu, ULONG itemno, ULONG text, ULONG shortcut, ULONG exclude, const ULONG *stack, struct gtmenulist *obj) |
| GTMenuItem GTMenuList#,flags,menu,item: insert a bar label (NM_BARLABEL) as item item of title menu. | |
| static void | gtmenuitem3_c (ULONG itemflags, ULONG menu, ULONG itemno, ULONG text, ULONG shortcut, ULONG exclude, const ULONG *stack, struct gtmenulist *obj) |
| GTMenuItem GTMenuList#,flags,menu,item,itemtext$: insert an item without a shortcut. | |
| static void | gtmenuitem_c (ULONG itemflags, ULONG menu, ULONG itemno, ULONG text, ULONG shortcut, ULONG exclude, const ULONG *stack, struct gtmenulist *obj) |
| GTMenuItem GTMenuList#,flags,menu,item,itemtext$,shortcut$: insert an item with a shortcut. | |
| static void | gtmenuitem4_c (ULONG itemflags, ULONG menu, ULONG itemno, ULONG text, ULONG shortcut, ULONG exclude, const ULONG *stack, struct gtmenulist *obj) |
| GTMenuItem ...,itemtext$,shortcut$,mutualexclude: insert an item with a mutual exclude mask. | |
| static void | gtmenuitem5_c (ULONG itemflags, ULONG menu, ULONG itemno, ULONG text, ULONG shortcut, ULONG exclude, const ULONG *stack, struct gtmenulist *obj) |
| GTMenuItem ...,itemtext$,shortcut$,mutualexclude,UserData: insert an item with UserData. | |
| static void | do_gtsubitem (ULONG itemflags, ULONG menu, ULONG itemno, ULONG subno, ULONG text, ULONG shortcut, const ULONG *sp, struct gtmenulist *obj) |
| static void | gtsubitem2_c (ULONG itemflags, ULONG menu, ULONG itemno, ULONG subno, ULONG text, ULONG shortcut, const ULONG *stack, struct gtmenulist *obj) |
| GTSubItem GTMenuList#,flags,menu,item,subitem: insert a bar label as sub item subitem of item item of title menu. | |
| static void | gtsubitem3_c (ULONG itemflags, ULONG menu, ULONG itemno, ULONG subno, ULONG text, ULONG shortcut, const ULONG *stack, struct gtmenulist *obj) |
| GTSubItem GTMenuList#,flags,menu,item,subitem,itemtext$: insert a sub item without a shortcut. | |
| static void | gtsubitem_c (ULONG itemflags, ULONG menu, ULONG itemno, ULONG subno, ULONG text, ULONG shortcut, const ULONG *stack, struct gtmenulist *obj) |
| GTSubItem ...,itemtext$,shortcut$: insert a sub item with a shortcut. | |
| static void | gtsubitem4_c (ULONG itemflags, ULONG menu, ULONG itemno, ULONG subno, ULONG text, ULONG shortcut, const ULONG *stack, struct gtmenulist *obj) |
| GTSubItem ...,itemtext$,shortcut$,mutualexclude: insert a sub item with a mutual exclude mask. | |
| static void | gtsubitem5_c (ULONG itemflags, ULONG menu, ULONG itemno, ULONG subno, ULONG text, ULONG shortcut, const ULONG *stack, struct gtmenulist *obj) |
| GTSubItem ...,itemtext$,shortcut$,mutualexclude,UserData: insert a sub item with a mutual exclude mask and UserData. | |
| static void | freeitemlist (struct gtentry *it, ULONG n) |
| static void | freetitle (struct gtentry *title) |
| static void | freemenu_c (struct gtmenulist *obj) |
| The free routine of a GTMenuList object: the menu strip, the titles and their items. | |
| static struct gtentry * | finditem (struct gtmenulist *obj, ULONG menu, ULONG itemno, ULONG subno, struct gtentry **prev) |
| static void | freetitle_c (ULONG menu, struct gtmenulist *obj) |
| GTFreeMenu GTMenuList#,menu: remove a title with its items from the list. | |
| static void | freeitem_c (ULONG menu, ULONG itemno, struct gtmenulist *obj) |
| GTFreeMenu GTMenuList#,menu,item: remove an item with its sub items and strings from the list. | |
| static void | freesubitem_c (ULONG menu, ULONG itemno, ULONG subno, struct gtmenulist *obj) |
| GTFreeMenu GTMenuList#,menu,item,subitem: remove a sub item with its strings from the list. | |
| static struct MenuItem * | item (struct gtmenulist *obj, UWORD menu, UWORD itemno) |
| static void | changestate (struct Menu *m, UWORD on, UBYTE bit) |
| static void | domenustate_c (ULONG on, struct gtmenulist *obj) |
| GTMenuState GTMenuList#,On|Off: enable or disable every menu of the strip (MENUENABLED). | |
| static void | domenustate2_c (ULONG menu, ULONG on, struct gtmenulist *obj) |
| GTMenuState GTMenuList#,menu,On|Off: enable or disable a menu (MENUENABLED). | |
| static void | domenustate3_c (ULONG menu, ULONG itemno, ULONG on, struct gtmenulist *obj) |
| GTMenuState GTMenuList#,menu,item,On|Off: enable or disable an item (ITEMENABLED, bit 4 of the low byte of Flags). | |
| static void | domenustate4_c (ULONG menu, ULONG itemno, ULONG subno, ULONG on, struct gtmenulist *obj) |
| GTMenuState GTMenuList#,menu,item,subitem,On|Off: enable or disable a sub item (ITEMENABLED). | |
| static ULONG | domenuchecked_c (ULONG result, ULONG menu, ULONG itemno, struct gtmenulist *obj) |
| GTMenuChecked(GTMenuList#,Menu,Item): whether an item of the strip is checked (CHECKED, bit 0 of the high byte of Flags). | |
| static ULONG | domenuchecked2_c (ULONG result, ULONG menu, ULONG itemno, ULONG subno, struct gtmenulist *obj) |
| GTMenuChecked(GTMenuList#,Menu,Item,Subitem): whether a sub item is checked. | |
| static void | setchecked (struct MenuItem *mi, UWORD on) |
| static void | setmenuchecked_c (ULONG menu, ULONG itemno, ULONG on, struct gtmenulist *obj) |
| GTSetMenuChecked GTMenuList#,Menu,Item,Off|On: check or uncheck an item of the strip (CHECKED). | |
| static void | setmenuchecked2_c (ULONG menu, ULONG itemno, ULONG subno, ULONG on, struct gtmenulist *obj) |
| GTSetMenuChecked GTMenuList#,Menu,Item,Subitem,Off|On: check or uncheck a sub item. | |
| static ULONG | getuserdata (struct gtmenulist *obj, ULONG menu, ULONG itemno, ULONG subno) |
| static ULONG | getuserdata_c (ULONG menu, ULONG itemno, struct gtmenulist *obj) |
| GTGetUserData(GTMenuList#,Menu,Item): the UserData of an item of the strip (GadTools' long behind the MenuItem). | |
| static ULONG | getuserdata2_c (ULONG menu, ULONG itemno, ULONG subno, struct gtmenulist *obj) |
| GTGetUserData(GTMenuList#,Menu,Item,Subitem): the UserData of a sub item (of the item if Subitem is negative as a word). | |
| static void | listchk_c (struct gtmenulist *obj) |
| static int | existschk (APTR **slot, UWORD n) |
| static void | statechk (struct gtmenulist *obj, int depth, UWORD menu, UWORD itemno, UWORD subno) |
| static void | statechk2_c (CHKARGS, struct gtmenulist *obj) |
| static void | statechk3_c (CHKARGS, struct gtmenulist *obj) |
| static void | statechk4_c (CHKARGS, struct gtmenulist *obj) |
| static void | chkchk3_c (CHKARGS, struct gtmenulist *obj) |
| static void | chkchk4_c (CHKARGS, struct gtmenulist *obj) |
| static void | chkchk5_c (CHKARGS, struct gtmenulist *obj) |
| static void | freechk_c (ULONG itemno) |
Variables | |
| static struct Library * | gtbase |
| static struct Library * | intuibase |
| static ULONG | me |
| static ULONG | userdata |
| static UWORD | flags |
| static ULONG | marraysize |
| static struct NewMenu * | marray |
| static APTR | vi |
| static const char | gtname [] = "gadtools.library" |
| static const struct TagItem | taglist [] = { { GTMN_FullMenu, (ULONG)-1 }, { 0, 0 } } |
| static const struct TagItem | tl_layout [] = { { GTMN_NewLookMenus, (ULONG)-1 }, { 0, 0 } } |
| #define __NOLIBBASE__ |
| #define FLAGS_HI | ( | f | ) |
| #define FLAGS_LO | ( | f | ) |
| #define GADTOOLS_BASE_NAME gtbase |
| #define gtitem do_gtitem |
| #define INTUITION_BASE_NAME intuibase |
| #define ITEMARGS |
| #define ITEMSIZE 30 |
| #define LG BL_LONG |
| #define MENU | ( | obj, | |
| menu ) |
| #define S BL_STRING |
| #define SUBARGS |
| #define SUBITEM | ( | mi, | |
| subno ) |
| #define TITLESIZE 12 |
| #define W BL_WORD |
| void _CreateMenuStrip | ( | void | ) |
| void _freeitem | ( | void | ) |
| void _freesubitem | ( | void | ) |
| void _freetitle | ( | void | ) |
| void _GetUserData | ( | void | ) |
| void _GetUserData2 | ( | void | ) |
| void _gtmenuitem | ( | void | ) |
| void _gtmenuitem2 | ( | void | ) |
| void _gtmenuitem3 | ( | void | ) |
| void _gtmenuitem4 | ( | void | ) |
| void _gtmenuitem5 | ( | void | ) |
| void _gtmenutitle | ( | void | ) |
| void _gtsubitem | ( | void | ) |
| void _gtsubitem2 | ( | void | ) |
| void _gtsubitem3 | ( | void | ) |
| void _gtsubitem4 | ( | void | ) |
| void _gtsubitem5 | ( | void | ) |
| void _gtunsetmenu | ( | void | ) |
| void _setmenu | ( | void | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
| void chkchk5 | ( | void | ) |
|
static |
| void createchk | ( | void | ) |
|
static |
|
static |
CreateMenuStrip GTMenuList#: make the menu strip of the object's lists (gadtools CreateMenusA, LayoutMenusA with new look menus).
An old strip is freed first. The NewMenu array ((count + 1) * 20 bytes, memlib) is freed again afterwards. Fixed (#689): a list without titles gives 0 and builds nothing: the old strip is freed, the object has none, a later GTSetMenu attaches nothing (the original frees the old strip too and reads the list at address 0); when CreateMenusA, GetVisualInfoA or LayoutMenusA fails, the strip is freed and the result is 0 (the original checks none of them and returns -1). Error check (createchk): "GTMenu has no data to build GTMenuList from!".
| scr | a0: the used screen object (screenslib), its first long the Screen |
| obj | a3: the GTMenuList object (ia3|pd0 of list#) |
|
static |
|
static |
|
static |
GTMenuChecked(GTMenuList#,Menu,Item,Subitem): whether a sub item is checked.
Not checked (error check chkchk4).
| result | d0: its upper word stays |
| menu | d1.w: the menu |
| itemno | d2.w: the item |
| subno | d3.w: the sub item |
| obj | a2: the GTMenuList object |
|
static |
GTMenuChecked(GTMenuList#,Menu,Item): whether an item of the strip is checked (CHECKED, bit 0 of the high byte of Flags).
Not checked (error check chkchk3).
| result | d0: its upper word stays (SNE:EXT.w, a word result) |
| menu | d1.w: the menu |
| itemno | d2.w: the item |
| obj | a2: the GTMenuList object (0x1280: ia2) |
|
static |
GTMenuState GTMenuList#,menu,On|Off: enable or disable a menu (MENUENABLED).
The menu is not checked (a missing one reads address 0; error check statechk2: "Illegal Menu number"). Directly, as above (#693).
| menu | d1.w: the menu |
| on | d2.w: 0 off, else on |
| obj | a3: the GTMenuList object |
|
static |
GTMenuState GTMenuList#,menu,item,On|Off: enable or disable an item (ITEMENABLED, bit 4 of the low byte of Flags).
Not checked (error check statechk3); directly, as above (#693).
| menu | d1.w: the menu |
| itemno | d2.w: the item |
| on | d3.w: 0 off, else on |
| obj | a3: the GTMenuList object |
|
static |
GTMenuState GTMenuList#,menu,item,subitem,On|Off: enable or disable a sub item (ITEMENABLED).
Not checked (error check statechk4); directly, as above (#693).
| menu | d1.w: the menu |
| itemno | d2.w: the item |
| subno | d3.w: the sub item |
| on | d4.w: 0 off, else on |
| obj | a3: the GTMenuList object |
|
static |
GTMenuState GTMenuList#,On|Off: enable or disable every menu of the strip (MENUENABLED).
The flags are changed directly, also while the strip is attached to a window, as documented (no defect, #693).
| on | d1.w: 0 off, else on |
| obj | a3: the GTMenuList object (0x1380: ia3) |
|
static |
|
static |
|
static |
|
static |
GTFreeMenu GTMenuList#,menu,item: remove an item with its sub items and strings from the list.
Fixed (#691): the item number is tested as a word; the original tests it as a long (TST.l), so the upper word of the word argument decided whether it is given. A negative item number frees the title (as an item); Fixed (#1089): the error check (freechk) refuses it, "Illegal Menu Item number" (the original has no check).
| menu | d1.w: the title |
| itemno | d2.w: the item |
| obj | a3: the GTMenuList object |
|
static |
| void freemenu | ( | void | ) |
|
static |
The free routine of a GTMenuList object: the menu strip, the titles and their items.
FreeMenus with the gadtools base unchecked, like the original (a strip exists only if it was open). Fixed (#695): the title strings are freed too (the original: the nodes only). The object is cleared (+0, +4, the long at +8).
| obj | a3: the object |
|
static |
|
static |
GTFreeMenu GTMenuList#,menu,item,subitem: remove a sub item with its strings from the list.
Fixed (#691): the numbers are tested as words (the original: as longs, TST.l). Fixed (#1089): the error check (freechk) refuses a negative item number, "Illegal Menu Item number" (the original has no check; a negative item frees the title as an item). A negative sub item number frees the whole item, as in the original, also with the debugger.
| menu | d1.w: the title |
| itemno | d2.w: the item |
| subno | d3.w: the sub item |
| obj | a3: the GTMenuList object |
|
static |
|
static |
GTFreeMenu GTMenuList#,menu: remove a title with its items from the list.
Nothing without gadtools.library or if it is missing. Fixed (#695): its string is freed too (the original: it stays). The menu strip is not changed (it is made again by CreateMenuStrip).
| menu | d1.w: the title |
| obj | a3: the GTMenuList object |
|
static |
|
static |
|
static |
GTGetUserData(GTMenuList#,Menu,Item,Subitem): the UserData of a sub item (of the item if Subitem is negative as a word).
Not checked (error check chkchk5: as chkchk3 for Subitem -1).
| menu | d1.w: the menu |
| itemno | d2.w: the item |
| subno | d3.w: the sub item |
| obj | a2: the GTMenuList object |
|
static |
GTGetUserData(GTMenuList#,Menu,Item): the UserData of an item of the strip (GadTools' long behind the MenuItem).
Not checked (error check chkchk3).
| menu | d1.w: the menu |
| itemno | d2.w: the item |
| obj | a2: the GTMenuList object |
|
static |
|
static |
GTMenuItem GTMenuList#,flags,menu,item: insert a bar label (NM_BARLABEL) as item item of title menu.
Mutual exclude and UserData 0. Nothing without gadtools.library or if the title or item - 1 is missing.
| itemflags | d1.w: the NewMenu flags |
| menu | d2.w: the title |
| itemno | d3.w: the item's number |
| stack | a2: the argument stack |
| obj | a3: the GTMenuList object |
|
static |
GTMenuItem GTMenuList#,flags,menu,item,itemtext$: insert an item without a shortcut.
As the form without text; the text is copied with AllocSt.
| itemflags | d1.w: the NewMenu flags |
| menu | d2.w: the title |
| itemno | d3.w: the item's number |
| text | d4: itemtext$ |
| stack | a2: the argument stack (the string lengths) |
| obj | a3: the GTMenuList object |
|
static |
GTMenuItem ...,itemtext$,shortcut$,mutualexclude: insert an item with a mutual exclude mask.
|
static |
GTMenuItem ...,itemtext$,shortcut$,mutualexclude,UserData: insert an item with UserData.
Fixed (#692): the mutual exclude is taken from -12(a2), where the compiler pushes the 7th argument (from the 7th on the arguments are pushed, d6 holds the last one: here UserData). The original jumps past MOVE.l d6,me and keeps the mutual exclude of the GTMenuItem/GTSubItem before.
|
static |
GTMenuItem GTMenuList#,flags,menu,item,itemtext$,shortcut$: insert an item with a shortcut.
Fixed (#694): shortcut$ is tested by its whole address; the original tests its low word, a string at an address with low word 0 counted as none.
|
static |
GTMenuTitle GTMenuList#,menu,title$: insert a menu title as title menu of the list.
Nothing without gadtools.library or if title menu - 1 is missing. The title (12 bytes) is allocated uncleared (MEMF_PUBLIC; all its fields are written, no defect), the text copied with maxslib AllocSt.
|
static |
GTSubItem GTMenuList#,flags,menu,item,subitem: insert a bar label as sub item subitem of item item of title menu.
Mutual exclude and UserData 0. Nothing without gadtools.library or if the title, the item or subitem - 1 is missing.
| itemflags | d1.w: the NewMenu flags |
| menu | d2.w: the title |
| itemno | d3.w: the item |
| subno | d4.w: the sub item's number |
| stack | a2: the argument stack |
| obj | a3: the GTMenuList object |
|
static |
GTSubItem GTMenuList#,flags,menu,item,subitem,itemtext$: insert a sub item without a shortcut.
| itemflags | d1.w: the NewMenu flags |
| menu | d2.w: the title |
| itemno | d3.w: the item |
| subno | d4.w: the sub item's number |
| text | d5: itemtext$ |
| stack | a2: the argument stack (the string lengths) |
| obj | a3: the GTMenuList object |
|
static |
GTSubItem ...,itemtext$,shortcut$,mutualexclude: insert a sub item with a mutual exclude mask.
|
static |
GTSubItem ...,itemtext$,shortcut$,mutualexclude,UserData: insert a sub item with a mutual exclude mask and UserData.
|
static |
GTSubItem ...,itemtext$,shortcut$: insert a sub item with a shortcut.
shortcut$ is a push argument: its address and length are taken from the a2 stack (the d6 value only decides whether there is one; fixed #694: the whole address, the original tests its low word).
|
static |
GTUnSetMenu: remove the menu strip from the used window (if it has one).
| win | a2: the used window object |
| intui | a6: intuition.library |
|
static |
|
static |
finit: close gadtools.library.
Fixed (#690): it closes the library if it is open; the original tests the base the wrong way round (TST.l:BNE 'ok) and so never closes it.
|
static |
init: open gadtools.library (any version).
Without it the list commands and CreateMenuStrip do nothing.
|
static |
|
static |
| void rigtmenulib_chkchk3 | ( | void | ) |
| void rigtmenulib_chkchk4 | ( | void | ) |
| void rigtmenulib_domenuchecked | ( | void | ) |
| void rigtmenulib_domenuchecked2 | ( | void | ) |
| void rigtmenulib_domenustate | ( | void | ) |
| void rigtmenulib_domenustate2 | ( | void | ) |
| void rigtmenulib_domenustate3 | ( | void | ) |
| void rigtmenulib_domenustate4 | ( | void | ) |
| void rigtmenulib_freechk | ( | void | ) |
| void rigtmenulib_libfinit | ( | void | ) |
| void rigtmenulib_libinit | ( | void | ) |
| void rigtmenulib_statechk2 | ( | void | ) |
| void rigtmenulib_statechk3 | ( | void | ) |
| void rigtmenulib_statechk4 | ( | void | ) |
|
static |
| void setchk | ( | void | ) |
|
static |
GTSetMenu GTMenuList#: attach the object's menu strip to the used window.
Without a strip, CreateMenuStrip makes it first (nothing if that fails); a strip already on the window is cleared first.
| scr | a0: the used screen object |
| win | a1: the used window object, its first long the Window |
| obj | a3: the GTMenuList object |
| intui | a6: intuition.library |
| void setmenuchecked | ( | void | ) |
| void setmenuchecked2 | ( | void | ) |
|
static |
GTSetMenuChecked GTMenuList#,Menu,Item,Subitem,Off|On: check or uncheck a sub item.
Not checked (error check chkchk4). Directly, as above (#693).
| menu | d1.w: the menu |
| itemno | d2.w: the item |
| subno | d3.w: the sub item |
| on | d4.w: 0 off, else on |
| obj | a2: the GTMenuList object |
|
static |
GTSetMenuChecked GTMenuList#,Menu,Item,Off|On: check or uncheck an item of the strip (CHECKED).
Not checked (error check chkchk3). Directly (no defect, #693), also while the strip is attached to a window.
| menu | d1.w: the menu |
| itemno | d2.w: the item |
| on | d3.w: 0 off, else on |
| obj | a2: the GTMenuList object |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |