
Home / Autodocs
space.gadget
a placeholder gadget class.
FUNCTIONS
SUPERCLASS
gadgetclass
REQUIRES
bevel.image
DESCRIPTION
This class does more than just take up space. space.gadget allows you to create a GREL or layout resizable input areabox. You might render custom graphics in the area, for example, a icon editor graphic area might be based on space.gadget. This lets space.gadget handle its domain in a way compatible with not only the present layout, but any future custom layout domain methods. The application can handle rendering and clipping in this area on the application task. It presently sends notification of Mouse X/Y and the inner custom application rendering area of the space accounting for any outer bevel (including preference bevel sizes changes).
ATTRIBUTES
- GA_ID (WORD)
-
Applicability is (OM_NEW, OM_SET, OM_UPDATE, OM_GET, OM_NOTIFY)
- GA_ReadOnly (BOOL)
-
Set to TRUE to make the gadget non-selectable, but without a ghost pattern.
Defaults to TRUE.
Applicability is (OM_NEW, OM_SET, OM_UPDATE, OM_GET)
- GA_Disabled (BOOL)
-
Set to TRUE to disable gadget, FALSE otherwise
Defaults to FALSE.
Applicability is (OM_NEW, OM_SET, OM_UPDATE, OM_GET)
- SPACE_MinWidth (WORD)
-
Minimum width of the space.gadget object.
Defaults to 6.
Applicability is (OM_NEW, OM_SET, OM_UPDATE)
- SPACE_MinHeight (WORD)
-
Minimum height of the space.gadget object.
Defaults to 4.
Applicability is (OM_NEW, OM_SET, OM_UPDATE)
- SPACE_MouseX (WORD)
-
X Position of the mouse within the space gadget.
Applicability is (OM_NOTIFY).
- SPACE_MouseY (WORD)
-
Y Position of the mouse within the space gadget.
Applicability is (OM_NOTIFY).
- SPACE_Transparent (BOOL)
-
If true, the gadget background won't be cleared before redraw.
Defaults to TRUE.
Applicability is (OM_NEW,OM_SET,OM_UPDATE).
- SPACE_AreaBox (struct IBox *)
-
Inner area IBox application rendering bounds.
Applicability is (OM_GET,OM_NOTIFY).
- SPACE_RenderHook (struct Hook *)
-
Hook to call when the gadget refreshes. The hook function will find the pointer to its own struct Hook in A0, a pointer to the space.gadget object in A2 and a struct gpRender pointer in A1.
Defaults to NULL.
(OM_NEW,OM_SET,OM_UPDATE)
- SPACE_BevelStyle (WORD)
-
Specifies the bevel box style (see images/bevel.h). NOTE: Before v45.2 the gadget didn't change the size of the bevel box, it was always 6x4 pixels.
Defaults to BVS_NONE.
(OM_NEW,OM_SET,OM_UPDATE)