home *** CD-ROM | disk | FTP | other *** search
-
- Base Object Class Functions: from the include files
-
- PObject.h
- ===========
- Name: CleanUp( self )
- Syntax: void CleanUp( self );
- |struct PObject *self;
-
- Description: release any special resources allocated by PObject
-
-
- Name: PObject_Init( self )
- Syntax: void PObject_Init( self );
- |struct PObject *self;
-
- Description: initialize a PObject structure
-
-
- Name: ClassName( self )
- Syntax: name = ClassName( self );
- | const char *name;
- | struct PObject *self;
-
- Description: returns the name of the class to which object belongs
-
-
- Name: isa( self, class )
- Syntax: return = isa( self, class );
- | BOOL return;
- | const PObject *self;
- | const PClass *class
-
- Description: returns TRUE if 'self' is an instance of type 'class'
-
-
- Name: SetObjectName( self, name )
- Syntax: void SetObjectName( self, name );
- | struct PObject *self;
- | char *name;
-
- Description: used to set the name of a PObject
-
-
- GraphicObject.h
- ===============
- Name: Location( self )
- Syntax: where = Location( self );
- | Point where;
- | struct GraphicObject *self;
-
- Description: returns top/left edge coordinates of GraphicObject 'self'
-
-
- Name: SetLocation( self, LeftEdge, TopEdge )
- Syntax: where = SetLocation( self, LeftEdge, TopEdge );
- | Point where;
- | struct GraphicObject *self;
- | PIXELS LeftEdge;
- | PIXELS RightEdge;
-
- Description: tries to set the left/top edges of GraphicObject 'self' to
- variables 'LeftEdge' and 'TopEdge' and returns the actual
- results
-
- Name: Size( self )
- Syntax: return = Size( self );
- | Point return;
- | struct GraphicObject *self;
-
- Description: returns the width,height of GraphicObject 'self'
-
- Name: AskSize( self, Width, Height )
- Syntax: return = AskSize( self, Width, Height );
- | Point return;
- | struct GraphicObject *self;
- | PIXELS Width;
- | PIXELS Height;
-
- Description: Given a (Width, Height), returns the nearest (Width, Height)
- that 'self' modify itself to be. Does NOT actually change
- the dimensions of 'self'. (Some graphic objects have
- constraints on their size.)
-
- Name: MinSize( self )
- Syntax: return = MinSize( self );
- | Point return;
- | struct GraphicObject *self;
-
- Description: macro for AskSize( self, 0, 0 );
-
- Name: MaxSize( self )
- Syntax: return = MaxSize( self );
- | Point return;
- | struct GraphicObject *self;
-
- Description: macro for AskSize( self, 32767, 32767 );
-
-
- Name: SetSize( self, Width, Height )
- Syntax: return = SetSize( self, Width, Height );
- | Point return;
- | struct GraphicObject *self;
- | PIXELS Width;
- | PIXELS Height;
-
- Description: Sets 'selfs' size to be as near (Width, Height) as possible,
- returns the actual (Width, Height)
-
-
- Name: SizeFlags( self )
- Syntax: return = SizeFlags( self );
- | UWORD return;
- | struct GraphicObject *self;
-
- Description: Returns the flags which define the axis's on which this object may
- be sized. (Useful for the Builder, for example)
-
-
- Name: Render( self, RPort )
- Syntax: void Render( self, RPort );
- | struct GraphicObject *self;
- | RastPort *RPort;
-
- Description: Draws the GraphicObject 'self' on the RastPort 'RPort'
- using 'selfs' Location for placement of top-left corner.
-
-
- Name: SetTitle( self, title )
- Syntax: return = SetTitle( self, title );
- | BOOL return;
- | struct GraphicObject *self;
- | char *title;
-
- Description: Returns FALSE if object does not support Titles
- Returns TRUE if object supports titles, and replaces current
- object title with 'title'.
-
- Name: Title( self )
- Syntax: return = Title( self );
- | char *return;
- | struct GraphicObject *self;
-
- Description: Returns character string if object supports titles
- else returns NULL;
-
-
- Name: DefaultFont( self );
- Syntax: return = DefaultFont( self );
- | TextAttr *return;
- | struct GraphicObject *self;
-
- Description: returns pointer to TextAttr if object supports default fonts
- else returns NULL;
-
-
- Name: SetDefaultFont( self, this_font )
- Syntax: return = SetDefaultFont( self, this_font );
- | BOOL return;
- | struct GraphicObject *self;
- | TextAttr *default_font;
-
- Description: returns TRUE if object supports default font 'this_font'
- returns FALSE if object does not support default fonts
- returns FALSE if object could not open 'this_font'
-
- Name: TextAlignment( self )
- Syntax: return = TextAlignment( self );
- | AlignInfo *return;
- | struct GraphicObject *self;
-
- Description: returns pointer to the AlignInfo of a GraphicObject or NULL if none.
-
-
- Name: SetTextAlignment( self, Flags, Xpad, Ypad )
- Syntax: return = SetTextAlignment( self, Flags, Xpad, Ypad );
- | BOOL return;
- | struct GraphicObject *self;
- | UBYTE Flags;
- | BYTE Xpad;
- | BYTE Ypad;
-
- Description: returns FALSE if GraphicObject cannot support the given arguments
-
- Name: GraphicObject_Init( self )
- Syntax: void GraphicObject_Init( self );
- | struct GraphicObject *self;
-
- Description: initializes the GraphicObject structure 'self'
-
-
- Interactor.h
- =================
-
- Name: Interactor_Init( self )
- Syntax: void Interactor_Init( self );
- | struct Interactor *self;
-
- Description: initializes an Interactor structure
-
-
- Name: InteractorWindow( self )
- Syntax: return = InteractorWindow( self );
- | struct pcgWindow *return;
- | struct Interactor *self;
-
- Description: returns a pointer to the Precognition Window to which this
- interactor belongs or NULL if none.
-
-
- Name: SetInteractorWindow( self, window )
- Syntax: void SetInteractorWindow( self, window );
- | struct Interactor *self;
- | struct pcgWindow *window;
-
- Description: set the pcgWindow that interactor belongs to
-
-
- Name: FirstGadget( self )
- Syntax: return = FirstGadget( self );
- | struct Gadget *return;
- | struct Interactor *self;
-
- Description: returns the address of the first gadget in the interactor.
- If there are no gadgets, returns NULL.
- This is useful for building composite Interactors out of
- other Interactors (scrolling lists, for example)
-
-
- Name: nGadgets( self )
- Syntax: return = nGadgets( self );
- | USHORT nGadgets;
- | struct Interactor *self;
-
- Description: returns the number of gadgets in an interactor
-
-
- Name: IDCMPFlags( self )
- Syntax: return = IDCMPFlags( self );
- | ULONG return;
- | struct Interactor *self;
-
- Description: returns the IDCMP flags that 'self' needs to function
-
-
- Name: ClaimEvent( self, event )
- Syntax: return = ClaimEvent( self, event );
- | USHORT return;
- | struct Interactor *self;
- | IntuiMessage *event;
-
- Description: returns true if 'self' would respond to 'event'
- This is useful to determine if an Interactor will respond before
- it actually does.
-
-
- Name: Respond( self, event )
- Syntax: return = Respond( self, event );
- | USHORT return;
- | struct Interactor *self;
- | IntuiMessage *event;
-
- Description: Respond() is THE routine for Interactors. Calling Respond()
- for an IntuiMessage tells the Interactor to do whatever it should
- do for that message.
-
- Returns a response code with the following bits:
-
- RESPONDED : Interactor paid attention to this event.
- If not set, Interactor ignored event.
-
- CONSUMED_EVENT : Interactor guarantees that this event
- is _only_ for this Interactor. This signals
- the event loop that it need not bother sending
- this event to any other interactor.
-
- CHANGED_STATE : The event caused the Interactor to change state.
- (e.g. Slider moved, text entered, button
- pressed.)
- Certain events (e.g. REFRESHWINDOW) cause
- the Interactor to respond without changing
- state.
-
- DEACTIVATED : The event caused the interactor to go from an active
- to an inactive state (string gadgets)
-
-
- Name: Refresh( self )
- Syntax: void Refresh( self );
-
- Description: Draws a interactor to a window.
- I know what you're thinking: "Class 'GraphicObject' already has a
- Render() methOD which does this, why do we need another?". Because
- Render() draws to a RastPort, and the Intuition function to refresh
- Gadgets requires a pointer to a Window. Therefore, we need a new
- method. (although the default action of 'Refresh()' is simply to
- call 'Render() with the window's RastPort).
-
- Name: EnableIactor( self, enable )
- Syntax: return = EnableIactor( self, enable )
- | BOOL return;
- | struct Interactor *self;
- | BOOL enable;
-
- Description: This turns an Interactor On/Off.
- i.e. 'EnableIactor( interactor, FALSE )'
- will ghost an interactor.
- 'EnableIactor( interactor, TRUE )' un-ghosts.
-
- Name: isEnabled( self )
- Syntax: return = isEnabled( self );
- | BOOL return;
- | struct Interactor *self;
-
- Description: returns TRUE if 'self' is currently enbabled
-
-
- Name: Activate( self, activate )
- Syntax: return = Activate( self, activate );
- | BOOL return;
- | struct Interactor *self;
- | BOOL activate;
-
- Description: If 'activate' == TRUE, Interactor gains control of the keyboard.
- returns FALSE if Interactor does not use the keyboard.
- (mostly for string/integer gadgets)
-
-
- Name: isActive( self )
- Syntax: return = isActive( self );
- | BOOL return;
- | struct Interactor *self;
-
- Description: returns TRUE if 'self' is active
-
- Name: ActivateNext( self )
- Syntax: return = ActivateNext( self );
- | BOOL return;
- | struct Interactor *self;
-
- Description: Attempts to activate the next interactor in a chain
- returns TRUE if successful.
-
-
- Valuator.h
- ================
-
- Name: Valuator_Init( self )
- Syntax: void Valuator_Init( self );
- | struct Valuator *self;
-
- Description: initializes a Valuator object structure
-
-
- Name: Value( self )
- Syntax: return = Value( self );
- | LONG return;
- | struct Valuator *self;
-
- Description: returns the current value of 'self'
-
-
- Name: SetValue( self, selection )
- Syntax: return = SetValue( self, selection );
- | LONG return;
- | struct Valuator *self;
- | LONG selection;
-
- Description: attempts to set the current value of 'self' to 'selection'
- returns actual value
-
- Name: StringValue( self )
- Syntax: return = StringValue( self );
- | char *return;
- | struct Valuator *self
-
- Description: macro for (char *)Value( i )
-
- Name: SetStringValue( self, string )
- Syntax: return = SetStringValue( self, string );
-
- Description macro for (char *)SetValue( self, (LONG)string );
-
- pcgWindow.h
- ================
-
- Name: pcgWindow_Init( self, leftedge, topedge, width, height, minwidth,
- minheight, maxwidth, maxheight, title, IDCMPFlags, screen )
-
- Syntax: void pcgWindow_Init( self, leftedge, topedge, width, height, minwidth,
- minheight, maxwidth, maxheight, title, IDCMPFlags, screen );
- | struct pcgWindow *self;
- | UWORD leftedge;
- | UWORD topedge;
- | UWORD width;
- | UWORD height;
- | UWORD minwidth;
- | UWORD minheight;
- | UWORD maxwidth;
- | UWORD maxheight;
- | char *title;
- | ULONG IDCMPFlags;
- | ULONG flags;
- | struct Screen *screen;
-
- Description: initializes a pcgWindow object structure
-
-
- Name: pcgOpenWindow( self )
- Syntax: return = pcgOpenWindow( self );
- | struct Window *return;
- | struct pcgWindow *self;
-
- Description: opens a pcgWindow
-
-
- Name: pcgCloseWindow( self )
- Syntax: void pcgCloseWindow( self );
- | struct pcgWindow *self;
-
- Description: closes a pcgWindow
-
-
- Name: iWindow( self )
- Syntax: return = iWindow( self );
- | struct Window *return;
- | struct pcgWindow *self;
-
- Description: returns a pointer to the actual Intuition window
- used/created by 'self'
-
- Name: RPort( self )
- Syntax: return = RPort( self );
- | struct RastPort *return;
- | struct pcgWindow *self;
-
- Description: returns a pointer to the Intuition Window's RastPort of 'self'
-
-
- Name: SetIDCMPFlags( self, newflags )
- Syntax: return = SetIDCMPFlags( self, newflags )
- | ULONG return;
- | struct pcgWindow *self;
- | ULONG newflags;
-
- Description: trys to set the IDCMPFlags of 'self' with 'newflags'
- returns actual IDCMPFlags.
-
-
- Name: AddWindowPObject( self, graphic )
- Syntax: void AddWindowPObject( self, graphic );
- | struct pcgWindow *self;
- | struct GraphicObject *graphic;
-
- Description: Adds GraphicObject 'graphic' to list of GraphicObjects owned by 'self'
-
-
- Name: RemoveWindowPObject( self, graphic )
- Syntax: void RemoveWindowPObject( self, graphic );
- | struct pcgWindow *self;
- | struct GraphicObject *graphic;
-
- Description: Removes GraphicObject 'graphic' from list of GraphicObjects owned by 'self'
-
-
- Name: AddMenuStrip( self, menustrip )
- Syntax: void AddMenuStrip( self, menustrip );
- | struct pcgWindow *self;
- | struct Menu *menustrip;
-
- Description: Adds Menu 'menustrip' to pcgWindow 'self'
-
-
- Name: RemoveMenuStrip( self, menustrip )
- Syntax: void RemoveMenuStrip( self );
- | struct pcgWindow *self;
-
- Description: removes any current menustrip from 'self'
-
-
- Name: AddInteractor( self, inter )
- Syntax: void AddInteractor( self, inter );
- | struct pcgWindow *self;
- | struct Interactor *inter;
-
- Description: Adds Interactor Object 'inter' to list of interactors of 'self'
-
-
- Name: AddGraphicObject( self, graphic )
- Syntax: void AddGraphicObject( self, graphic );
- | struct pcgWindow *self;
- | struct GraphicObject *graphic;
-
- Description: Adds GraphicObject 'graphic' to list of graphic objects of 'self'
-
-
-
-
-