home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-06-06 | 28.7 KB | 1,234 lines |
- TABLE OF CONTENTS
-
- egsgfx.library/EG_AreaCircle
- egsgfx.library/EG_AreaCurve
- egsgfx.library/EG_AreaCurveL
- egsgfx.library/EG_AreaDraw
- egsgfx.library/EG_AreaEnd
- egsgfx.library/EG_AreaMove
- egsgfx.library/EG_CheckRectangle
- egsgfx.library/EG_CloseFont
- egsgfx.library/EG_CopyBitMapRastPort
- egsgfx.library/EG_CopyRectangle
- egsgfx.library/EG_CreateRastPort
- egsgfx.library/EG_CreateSubRastPort
- egsgfx.library/EG_Curve
- egsgfx.library/EG_CurveL
- egsgfx.library/EG_DeleteRastPort
- egsgfx.library/EG_Draw
- egsgfx.library/EG_Ellipse
- egsgfx.library/EG_FillMask
- egsgfx.library/EG_FillMaskSeg
- egsgfx.library/EG_Flood
- egsgfx.library/EG_GetBoundingBox
- egsgfx.library/EG_InitArea
- egsgfx.library/EG_InstallClipRegion
- egsgfx.library/EG_Move
- egsgfx.library/EG_MoveSubRastPort
- egsgfx.library/EG_OpenFont
- egsgfx.library/EG_ReadPixel
- egsgfx.library/EG_RectFill
- egsgfx.library/EG_RemoveClipRegion
- egsgfx.library/EG_ScrollRaster
- egsgfx.library/EG_ScrollRasterNoClear
- egsgfx.library/EG_SetAPen
- egsgfx.library/EG_SetBPen
- egsgfx.library/EG_SetDrMd
- egsgfx.library/EG_SetFont
- egsgfx.library/EG_SetMask
- egsgfx.library/EG_SetSoftStyle
- egsgfx.library/EG_SizeSubRastPort
- egsgfx.library/EG_StdFont
- egsgfx.library/EG_Text
- egsgfx.library/EG_TextLength
- egsgfx.library/EG_WritePixel
- egsgfx.library/EG_ZoomBitMapRastPort
- egsgfx.library/EG_ZoomFillMaskSeg
-
- egsgfx.library/EG_AreaCircle egsgfx.library/EG_AreaCircle
-
- NAME
- EG_AreaCircle -- draw a filled circle
-
- SYNOPSIS
- EG_AreaCircle(rast, x, y, r)
- A0 D0 D1 D2
-
- void EG_AreaCircle(EG_RastPortPtr, WORD, WORD, WORD)
-
- FUNCTION
- Draws a filled circle in the aPen color. This function requiers a
- tmpRas bitmap. If there is none, it allocates one and frees it
- afterwards. This allocation requires time, which can be saved by
- allocating an own tmpRas bitmap for the RastPort.
-
- INPUTS
- rast - RastPort in which to draw
- x, y - centre of the circle
- r - radius
-
- RESULT
-
- SEE ALSO
- EG_AreaCurve(), EG_AreaEllipse(), EG_AreaMove(), EG_AreaEnd()
-
-
- egsgfx.library/EG_AreaCurve egsgfx.library/EG_AreaCurve
-
- NAME
- EG_AreaCurve -- draw a filled bezier curve
-
- SYNOPSIS
- EG_AreaCurve(rast, x2, y2, x3, y3, x4, y4)
- A0 D0 D1 D2 D3 D4 D5
-
- void EG_AreaCurve(EG_RastPortPtr, WORD, WORD, WORD, WORD, WORD, WORD)
-
- FUNCTION
- Adds a bezier curve to a filled object (see also AreaMove, AreaDraw
- and AreaEnd). The curve is halved until the pieces are smaller then
- the limit given in the RastPort. Then the pieces are drawn using
- AreaDraw. This function requiers a large areaInfo structure. The
- current area cursor in the RastPort is the starting location, the
- point x4/y4 is the end location.
-
- INPUTS
- rast - destination RastPort
- x2, y2 - direction at curve start
- x3, y3 - direction at curve end
- x4, y4 - endpoint
-
- RESULT
-
- SEE ALSO
-
-
- egsgfx.library/EG_AreaCurveL egsgfx.library/EG_AreaCurveL
-
- NAME
- EG_AreaCurveL -- draw a filled bezier curve
-
- SYNOPSIS
- EG_AreaCurveL(rast, x2, y2, x3, y3, x4, y4)
- A0 D0 D1 D2 D3 D4 D5
-
- void EG_AreaCurveL(EG_RastPortPtr, LONG, LONG, LONG, LONG, WORD, WORD)
-
- FUNCTION
- Adds a bezier curve to a filled object (see also AreaMove, AreaDraw
- and AreaEnd). The curve is halved until the pieces are smaller then
- the limit given in the RastPort. Then the pieces are drawn using
- AreaDraw. This function requiers a large areaInfo structure. The
- current area cursor in the RastPort is the starting location, the
- point x4/y4 is the end location. The values of x2 to y3 are 32 bit
- fractionals with the fractional part starting at bit 16. This
- function is usefull to draw small curves very accurate.
-
- INPUTS
- rast - destination RastPort
- x2, y2 - direction at curve start (multiplied by 65536)
- x3, y3 - direction at curve end (multiplied by 65536)
- x4, y4 - endpoint
-
- RESULT
-
- EXAMPLE
- This function can be used to draw a filled ellipse.
-
- x, y : median
- a, b : halfaxis
-
- AreaMove(rast, x, y-b);
- AreaCurveL(rast, 36194*a, 0, 0, -36194*b, x+a, y);
- AreaCurveL(rast, 0, 36194*b, 36194*a, 0, x, y+b);
- AreaCurveL(rast, -36194*a, 0, 0, 36194*b, x-a, y);
- AreaCurveL(rast, 0, -36194*b, -36194*a, 0, x, y-b);
- AreaEnd(rast);
-
- SEE ALSO
-
-
- egsgfx.library/EG_AreaDraw egsgfx.library/EG_AreaDraw
-
- NAME
- EG_AreaDraw -- draw a edge of a filled polygon
-
- SYNOPSIS
- EG_AreaDraw(rast, x, y)
- A0 D0 D1
-
- void EG_AreaDraw(EG_RastPortPtr, WORD, WORD)
-
- FUNCTION
- Adds an edge to a filled polygon (see also AreaMove, AreaCurve and
- AreaEnd). The polygon is drawn using AreaEnd. This function requires
- a areaInfo structure attached to the RastPort.
-
- INPUTS
- rast - destination RastPort
- x, y - end of line, startpoint is current areacursor location.
-
- RESULT
-
- SEE ALSO
-
-
- egsgfx.library/EG_AreaEnd egsgfx.library/EG_AreaEnd
-
- NAME
- EG_AreaEnd -- end area polygon definition and draw
-
- SYNOPSIS
- EG_AreaEnd(rast)
- A0
-
- void EG_AreaEnd(EG_RastPortPtr)
-
- FUNCTION
- Ends an open area polygon and draws it, using the aPen color. This
- function needs a tmpRas bitmap. If there is none the function creates
- one and frees it afterwards.
-
- INPUTS
- rast - destination RastPort
-
- RESULT
-
- SEE ALSO
-
-
- egsgfx.library/EG_AreaMove egsgfx.library/EG_AreaMove
-
- NAME
- EG_AreaMove -- begin new area polygon
-
- SYNOPSIS
- EG_AreaMove(rast, x, y)
- A0 D0 D1
-
- void EG_AreaMove(EG_RastPortPtr, WORD, WORD)
-
- FUNCTION
- Moves the area cursor to a new starting location. Closes an open
- polygon. You can draw several polygons with one AreaEnd. If the
- polygons intersect each other the intersection will be excluded
- (exclusiv or). This can be used to draw free areas in polygons.
-
- INPUTS
- rast - destination RastPort
- x, y - absolut coordinates to move to
-
- RESULT
-
- SEE ALSO
-
-
- egsgfx.library/EG_CheckRectangle egsgfx.library/EG_CheckRectangle
-
- NAME
- EG_CheckRectangle -- checks if rectangle in inside current clipping area
-
- SYNOPSIS
- EG_CheckRectangle(rast, cliprect)
- A0 A1
-
- BOOL EG_CheckRectangle(EG_RastPortPtr, EB_ClipRectPtr)
-
- FUNCTION
- Checks the rect against the current clipping region and finds out if
- the area specified in rect is completely clipped out or not. This is
- useful during refresh of windows where some areas could take a long
- time to refresh. If this function, however, returns FALSE, there is
- no need to refresh the rectangle in question. This function is quite
- fast, and compared to e.g. loading a bitmap from disk or rendering
- text or graphic elements, the time is well spent.
-
- INPUTS
- rast - RastPort in question
- cliprect - rectangle to check
-
- RESULT
- TRUE - if at least one pixel in the specified rectangle is
- writable, and updating the area will have an effect.
- FALSE - if the entire area specified in rect is clipped out, and
- rendering into the area will have no effect at all.
-
- SEE ALSO
-
-
- egsgfx.library/EG_CloseFont egsgfx.library/EG_CloseFont
-
- NAME
- EG_CloseFont -- close a font
-
- SYNOPSIS
- EG_CloseFont(font)
- A0
-
- void EG_CloseFont(EG_EFontPtr)
-
- FUNCTION
- Close a font which was opened using EG_OpenFont().
-
- INPUTS
- font - the font to close, must have been opened using
- EG_OpenFond()
-
- RESULT
-
- SEE ALSO
-
-
- egsgfx.library/EG_CopyBitMapRastPort egsgfx.library/EG_CopyBitMapRastPort
-
- NAME
- EG_CopyBitMapRastPort -- copy rectangle of a bitmap into a RastPort
-
- SYNOPSIS
- EG_CopyBitMapRastPort(src, rast, xs, ys, w, h, xd, yd)
- A0 A1 D0 D1 D2 D3 D4 D5
-
- void EG_CopyBitMapRastPort(E_EBitMapPtr, EG_RastPortPtr, WORD, WORD, WORD, WORD, WORD, WORD)
-
- FUNCTION
- Copies a rectangluar area from a bitmap into a RastPort. Clipping is
- done for the destination RastPort as specified.
-
- INPUTS
- src - source bitmap
- rast - destination RastPort
- xs, ys - starting location in the bitmap
- w, h - dimensions of the rectangle
- xd, yd - destination location in the RastPort
-
- RESULT
-
- SEE ALSO
-
-
- egsgfx.library/EG_CopyRectangle egsgfx.library/EG_CopyRectangle
-
- NAME
- EG_CopyRectangle -- copy rectangle of a RastPort into a RastPort
-
- SYNOPSIS
- EG_CopyRectangle(src, dst, xs, ys, w, h, dx, dy)
- A0 A1 D0 D1 D2 D3 D4 D5
-
- void EG_CopyRectangle(EG_RastPortPtr, EG_RastPortPtr, WORD, WORD, WORD, WORD, WORD, WORD)
-
- FUNCTION
- Copies a rectangluar area from a RastPort into a RastPort. Clipping
- is done for the destination RastPort as specified. The source should
- not exceed the limits of its RastPort. The two RastPorts may be
- identical
-
- INPUTS
- src - source RastPort
- rast - destination RastPort
- xs, ys - starting location in the source RastPort
- w, h - dimensions of the rectangle
- xd, yd - destination location in the destination RastPort
-
- RESULT
-
- SEE ALSO
-
-
- egsgfx.library/EG_CreateRastPort egsgfx.library/EG_CreateRastPort
-
- NAME
- EG_CreateRastPort -- create a RastPort
-
- SYNOPSIS
- EG_CreateRastPort(layer, screen, map)
- A0 A1 A2
-
- EG_RastPortPtr EG_CreateRastPort(EL_LayerPtr, E_EScreenPtr, E_EBitMapPtr)
-
- FUNCTION
- Creates a RastPort for a layer, a screen or a bitmap. If a screen is
- specified, it is used for MouseOn/MouseOff. If neither a layer nor a
- map is specified, the destination bitmap will be that of the screen.
- A layer and a bitmap exclude each other.
-
- You are allowed to use several RastPorts for one object in order to
- work more independent. If layers are used then even several tasks
- may use the same RastPort simultaneously.
-
- INPUTS
- layer - layer on which to create or NULL, for a non layer
- RastPort
- screen - screen, on which the RastPort resides or NULL, if the
- RastPort is not on a screen
- map - bitmap on which the RastPort exists or NULL
-
- RESULT
-
- SEE ALSO
-
-
- egsgfx.library/EG_CreateSubRastPort egsgfx.library/EG_CreateSubRastPort
-
- NAME
- EG_CreateSubRastPort -- create secondary rast port
-
- SYNOPSIS
- EG_CreateSubRastPort(super, x, y, w, h)
- A0 D0 D1 D2 D3
-
- EG_RastPortPtr EG_CreateSubRastPort(EG_RastPortPtr, WORD, WORD, WORD, WORD)
-
- FUNCTION
- Creates a secondary RastPort inside an other RastPort. If the sub
- rastport is larger than the source RastPort, it can be scrolled. Subrastports
- are organized as a tree, so a subrastport may have any number of own
- subrastports and so on. All rendering in the subrastport is done
- with out interfering with it's super RastPort.
-
- INPUTS
- super - the parent RastPort
- x - left edge of the sub RastPort
- y - top edge of the sub RastPort
- w - witdh of the sub RastPort
- h - height of the sub RastPort
-
- RESULT
- A subrastport to the super RastPort
-
- SEE ALSO
-
-
- egsgfx.library/EG_Curve egsgfx.library/EG_Curve
-
- NAME
- EG_Curve -- draw a bezier curve
-
- SYNOPSIS
- EG_Curve(rast, x2, y2, x3, y3, x4, y4)
- A0 D0 D1 D2 D3 D4 D5
-
- void EG_Curve(EG_RastPortPtr, WORD, WORD, WORD, WORD, WORD, WORD)
-
- FUNCTION
- Draws a bezier curve. The curve is halfed until the pieces are
- smaller as in the RastPort defined. Then the curve is drawn using
- draw. The current cursor in the RastPort is the starting location,
- the point x4/y4 is the end location. The point x2/y2 is a relative
- vector to the starting point, x3/y3 is a relative vector to the
- ending point. This to vectors specify the curves dirction.
-
- INPUTS
- rast - destination RastPort
- x2, y2 - direction at curve start
- x3, y3 - direction at curve end
- x4, y4 - endpoint
-
- RESULT
-
- SEE ALSO
-
-
- egsgfx.library/EG_CurveL egsgfx.library/EG_CurveL
-
- NAME
- EG_CurveL -- draw a bezier curve
-
- SYNOPSIS
- EG_CurveL(rast, x2, y2, x3, y3, x4, y4)
- A0 D0 D1 D2 D3 D4 D5
-
- void EG_CurveL(EG_RastPortPtr, LONG, LONG, LONG, LONG, WORD, WORD)
-
- FUNCTION
- Draws a bezier curve. The curve is halfed until the pieces are
- smaller as in the RastPort defined. Then the curve is drawn using
- draw. The current cursor in the RastPort is the starting location,
- the point x4/y4 is the end location. The point x2/y2 is a relative
- vector to the starting point, x3/y3 is a relative vector to the
- ending point. This to vectors specify the curves dirction. The values
- of x2 to y3 must be given as a 32 bit fractional number with the
- fractional part starting at bit 16. This is usefull to draw small
- curves very accurate.
-
- INPUTS
- rast - destination RastPort
- x2, y2 - direction at curve start (multipiled by 65536)
- x3, y3 - direction at curve end (multipiled by 65536)
- x4, y4 - endpoint
-
- RESULT
-
- SEE ALSO
-
-
- egsgfx.library/EG_DeleteRastPort egsgfx.library/EG_DeleteRastPort
-
- NAME
- EG_DeleteRastPort -- deletes a RastPort
-
- SYNOPSIS
- EG_DeleteRastPort(rast)
- A0
-
- void EG_DeleteRastPort(EG_RastPortPtr)
-
- FUNCTION
- Deletes a RastPort which was created by EG_CreateRastPort() or
- EG_CreateSubRastPort().
-
- INPUTS
- rast - the RastPort to delete
-
- RESULT
-
- SEE ALSO
-
-
- egsgfx.library/EG_Draw egsgfx.library/EG_Draw
-
- NAME
- EG_Draw -- draws a line
-
- SYNOPSIS
- EG_Draw(rast, x, y)
- A0 D0 D1
-
- void EG_Draw(EG_RastPortPtr, WORD, WORD)
-
- FUNCTION
- Draws a line from the current cursor location to x, y. The cursor
- location becomes x, y. The line is clipped according to the RastPort.
-
- INPUTS
- rast - destination RastPort
- x, y - coordinates of last point
-
- RESULT
-
- SEE ALSO
-
-
- egsgfx.library/EG_Ellipse egsgfx.library/EG_Ellipse
-
- NAME
- EG_Ellipse -- draws an ellipse
-
- SYNOPSIS
- EG_Ellipse(rast, x, y, a, b)
- A0 D0 D1 D2 D3
-
- void EG_Ellipse(EG_RastPortPtr, WORD, WORD, WORD, WORD)
-
- FUNCTION
- Draws an ellipse, around x, y the horizontal halfaxis is a, the
- vertical is b. This function uses EG_CurveL(), so the resolution of the
- ellipse depends on the curvStep field of the RastPort.
-
- INPUTS
- rast - destination RastPort
- x, y - centerpoint
- a - horizontal halfaxis
- b - vertical halfaxis
-
- RESULT
-
- SEE ALSO
-
-
- egsgfx.library/EG_FillMask egsgfx.library/EG_FillMask
-
- NAME
- EG_FillMask -- copies a one bit deep bitmap to a RastPort
-
- SYNOPSIS
- EG_FillMask(rast, src, xd, yd)
- A0 A1 D0 D1
-
- void EG_FillMask(EG_RastPortPtr, E_EBitMapPtr, WORD, WORD)
-
- FUNCTION
- Copies a one bitplane deep bitmap into a RastPort, using aPen and
- bPen, or aPen and transparency.
-
- INPUTS
- rast - destination RastPort
- src - source bitmap
- xd, yd - destination location
-
- RESULT
-
- SEE ALSO
-
-
- egsgfx.library/EG_FillMaskSeg egsgfx.library/EG_FillMaskSeg
-
- NAME
- EG_FillMaskSeg -- copies a rectangle of an one bit deep bitmap to a RastPort
-
- SYNOPSIS
- EG_FillMaskSeg(rast, src, xs, ys, w, h, xd, yd)
- A0 A1 D0 D1 D2 D3 D4 D5
-
- void EG_FillMaskSeg(EG_RastPortPtr, E_EBitMapPtr, WORD, WORD, WORD, WORD, WORD, WORD)
-
- FUNCTION
- Copies a rectangle out of an one bitplane deep bitmap into a
- rastport, using aPen and bPen, or aPen and transparency.
-
- INPUTS
- rast - destination RastPort
- src - source bitmap
- xs, ys - starting locations in source bitmap
- w, h - size of rectangular area
- xd, yd - destination location
-
- RESULT
-
- SEE ALSO
-
-
- egsgfx.library/EG_Flood egsgfx.library/EG_Flood
-
- NAME
- EG_Flood -- Flood RastPort like areafill.
-
- SYNOPSIS
- EG_Flood(rast, x, y, mode)
- A0 D0 D1 D2
-
- void EG_Flood(EG_RastPortPtr, WORD, WORD, ULONG)
-
- FUNCTION
- Fill all adjacent pixels to (x,y) if they are: Mode 0: Different
- color than APen Mode 1: The same color as the pixel at (x,y)
-
- INPUTS
- rp - destination rast port
- x, y - coordinate in RastPort to start the flood fill at.
- mode - 0 fill all adjacent pixels searching for border
- of color APen.
- 1 fill all adjacent pixels that have same pen number
- as the one at x, y.
-
- NOTE
- Having a temporary rast in the RastPort, will speed up the flood fill.
-
- RESULT
-
- SEE ALSO
-
-
- egsgfx.library/EG_GetBoundingBox egsgfx.library/EG_GetBoundingBox
-
- NAME
- EG_GetBoundingBox -- get a active area bounding box
-
- SYNOPSIS
- EG_GetBoundingBox(rast, rect)
- A0 A1
-
- BOOL EG_GetBoundingBox(EG_RastPortPtr, EB_ClipRectPtr)
-
- FUNCTION
- Calculates a bounding box of the active drawing area. This is
- usefull for refreshes, in order to check which regions of the
- rastport have to be refreshed.
-
- INPUTS
- rast - the RastPort to check in
- rect - pointer to a cliprect, that is filled with the
- coordinates of the bounding box
-
- RESULT
- TRUE, if the drawing area is not empty
-
- SEE ALSO
-
-
- egsgfx.library/EG_InitArea egsgfx.library/EG_InitArea
-
- NAME
- EG_InitArea -- init area info structure
-
- SYNOPSIS
- EG_InitArea(info, buffer, size)
- A0 A1 D0
-
- EG_AreaInfoPtr EG_InitArea(EG_AreaInfoPtr, EG_PolyPtr, WORD)
-
- FUNCTION
- Initializes an areainfo structure.
-
- INPUTS
- info - unintialized areainfo structure
- buffer - pointer to a memory area for areapolygon vertices
- size - number of vertices that can be stored in this buffer
-
- RESULT
- initialized area info structure, that can be assigned to a RastPort
-
- SEE ALSO
-
-
- egsgfx.library/EG_InstallClipRegion egsgfx.library/EG_InstallClipRegion
-
- NAME
- EG_InstallClipRegion -- installs a clip region
-
- SYNOPSIS
- EG_InstallClipRegion(rast, rect)
- A0 A1
-
- void EG_InstallClipRegion(EG_RastPortPtr, EB_ClipRectPtr)
-
- FUNCTION
- ClipRegions describe which regions of a RastPort may be written
- into.
-
- If a RastPort has no ClipRegion (only possible for unlayered
- RastPorts) there might be some drawing outside the BitMap. On the
- other hand, drawing without clipping is slightly faster.
-
- If the RastPort uses a layer an additional ClipRegion restricts the
- ordinary rectangular drawing region.
-
- A RastPort's ClipRegion consists of a list of ClipRects. This list
- is not changed by the EGSGfx library, i.e. a constant list is
- allowed.
-
- Before deleting a RastPort its ClipRegion should be removed.
-
- The ClipRegion must not be changed while it is connected to the
- RastPort.
-
- The old ClipRegion gets lost, so it should be removed using
- EB_RemoveClipRegin before, or cached in a variable.
-
- INPUTS
- rast - destination rast port
- rect - list of cliprects defining the region
-
- RESULT
-
- SEE ALSO
-
-
- egsgfx.library/EG_Move egsgfx.library/EG_Move
-
- NAME
- EG_Move -- move graphics cursor
-
- SYNOPSIS
- EG_Move(rast, x, y)
- A0 D0 D1
-
- void EG_Move(EG_RastPortPtr, WORD, WORD)
-
- FUNCTION
- Moves the graphic cursor to x, y.
-
- INPUTS
- rast - destination RastPort
- x, y - new cursor location
-
- RESULT
-
- SEE ALSO
-
-
- egsgfx.library/EG_MoveSubRastPort egsgfx.library/EG_MoveSubRastPort
-
- NAME
- EG_MoveSubRastPort -- move a sub RastPort
-
- SYNOPSIS
- EG_MoveSubRastPort(rast, dx, dy)
- A0 D0 D1
-
- void EG_MoveSubRastPort(EG_RastPortPtr, WORD, WORD)
-
- FUNCTION
- Moves a subrastport in its parents RastPort. This can be used to
- actually move the RastPort, if it is totaly visible, or to scroll
- it inside it's super RastPort if the subrastport is larger.
-
- INPUTS
- rast - the rasport to move
- dx, dy - relative coordinates to move
-
- RESULT
-
- SEE ALSO
-
-
- egsgfx.library/EG_OpenFont egsgfx.library/EG_OpenFont
-
- NAME
- EG_OpenFont -- opens a font
-
- SYNOPSIS
- EG_OpenFont(attr)
- A0
-
- EG_EFontPtr EG_OpenFont(struct TextAttr *)
-
- FUNCTION
- Opens a diskfont, and does some additional work, to optimize text
- rendering.
-
- INPUTS
- attr - TextAttr structure known from graphics
-
- RESULT
- an open font (EG_EFont) or NULL if not successfull
-
- SEE ALSO
-
-
- egsgfx.library/EG_ReadPixel egsgfx.library/EG_ReadPixel
-
- NAME
- EG_ReadPixel -- reads a pixel
-
- SYNOPSIS
- EG_ReadPixel(rast, x, y)
- A0 D0 D1
-
- ULONG EG_ReadPixel(EG_RastPortPtr, WORD, WORD)
-
- FUNCTION
- Returns a pixels color.
-
- INPUTS
- rast - source rast port
- x, y - location to look at
-
- RESULT
- color or -1 if the color can not be find
-
- SEE ALSO
-
-
- egsgfx.library/EG_RectFill egsgfx.library/EG_RectFill
-
- NAME
- EG_RectFill -- fill rectangular area
-
- SYNOPSIS
- EG_RectFill(rast, x, y, w, h)
- A0 D0 D1 D2 D3
-
- void EG_RectFill(EG_RastPortPtr, WORD, WORD, WORD, WORD)
-
- FUNCTION
- Fills a rectangular area according to the actual drawmode and aPen.
-
- INPUTS
- rast - destination rast port
- x, y - top left coordinate
- w, h - with and height of the rectangle
-
- RESULT
-
- SEE ALSO
-
-
- egsgfx.library/EG_RemoveClipRegion egsgfx.library/EG_RemoveClipRegion
-
- NAME
- EG_RemoveClipRegion -- remove clipregion
-
- SYNOPSIS
- EG_RemoveClipRegion(rast)
- A0
-
- EB_ClipRectPtr EG_RemoveClipRegion(EG_RastPortPtr)
-
- FUNCTION
- Removes the current clip region from a RastPort, and returns it. All
- later graphics operations are only clipped using layer information.
-
- INPUTS
- rast - the RastPort to remove the clipregion
-
- RESULT
- the old clipregion
-
- SEE ALSO
-
-
- egsgfx.library/EG_ScrollRaster egsgfx.library/EG_ScrollRaster
-
- NAME
- EG_ScrollRaster -- scroll rectangular area in a RastPort
-
- SYNOPSIS
- EG_ScrollRaster(rast, xs, ys, w, h, dx, dy)
- A0 D0 D1 D2 D3 D4 D5
-
- void EG_ScrollRaster(EG_RastPortPtr, WORD, WORD, WORD, WORD, WORD, WORD)
-
- FUNCTION
- Scrolls a rectangular area in a RastPort. Modifies the damage list of
- a layer if necessary and sends a refresh message.
-
- INPUTS
- rast - destination RastPort
- xs, ys - upper left edge
- w, h - size of rectangular area
- dx, dy - destination and amount in which to scroll
-
- RESULT
-
- SEE ALSO
-
-
- egsgfx.library/EG_ScrollRasterNoClear egsgfx.library/EG_ScrollRasterNoClear
-
- NAME
- EG_ScrollRasterNoClear -- scroll rectangle but do not clear
-
- SYNOPSIS
- EG_ScrollRasterNoClear(rast, xs, ys, w, h, dx, dy)
- A0 D0 D1 D2 D3 D4 D5
-
- void EG_ScrollRasterNoClear(EG_RastPortPtr, WORD, WORD, WORD, WORD, WORD, WORD)
-
- FUNCTION
- Like EG_ScrollRaster(), but does not clear the newly exposed regions.
-
- INPUTS
- rast - destination RastPort
- xs, ys - upper left edge
- w, h - size of rectangular area
- dx, dy - destination and amount in which to scroll
-
- RESULT
-
- SEE ALSO
-
-
- egsgfx.library/EG_SetAPen egsgfx.library/EG_SetAPen
-
- NAME
- EG_SetAPen -- modifies froeground pen
-
- SYNOPSIS
- EG_SetAPen(rast, color)
- A0 D0
-
- void EG_SetAPen(EG_RastPortPtr, ULONG)
-
- FUNCTION
- Modifies the color of the froeground pen.
-
- INPUTS
- rast - destination RastPort
- color - new a pen
-
- RESULT
-
- SEE ALSO
-
-
- egsgfx.library/EG_SetBPen egsgfx.library/EG_SetBPen
-
- NAME
- EG_SetBPen -- modifies background pen
-
- SYNOPSIS
- EG_SetBPen(rast, color)
- A0 D0
-
- void EG_SetBPen(EG_RastPortPtr, ULONG)
-
- FUNCTION
- Modifies the color of the background pen.
-
- INPUTS
- rast - destination RastPort
- color - new b pen
-
- RESULT
-
- SEE ALSO
-
-
- egsgfx.library/EG_SetDrMd egsgfx.library/EG_SetDrMd
-
- NAME
- EG_SetDrMd -- modifies the current drawmode
-
- SYNOPSIS
- EG_SetDrMd(rast, mode)
- A0 D0
-
- void EG_SetDrMd(EG_RastPortPtr, UBYTE)
-
- FUNCTION
- Modifies the current drawmode to mode.
-
- INPUTS
- rast - destination RastPort
- mode - new draw mode
-
- RESULT
-
- SEE ALSO
-
-
- egsgfx.library/EG_SetFont egsgfx.library/EG_SetFont
-
- NAME
- EG_SetFont -- defines current font
-
- SYNOPSIS
- EG_SetFont(rast, font)
- A0 A1
-
- void EG_SetFont(EG_RastPortPtr, EG_EFontPtr)
-
- FUNCTION
- Sets a new font for a RastPort. This has to be a EG_EFont, which has
- been opened using EG_OpenFont().
-
- INPUTS
- rast - destination RastPort
- font - new font to use
-
- RESULT
-
- SEE ALSO
-
-
- egsgfx.library/EG_SetMask egsgfx.library/EG_SetMask
-
- NAME
- EG_SetMask -- obsolete
-
- SYNOPSIS
- EG_SetMask(rast, mask)
- A0 D0
-
- void EG_SetMask(EG_RastPortPtr, ULONG)
-
- FUNCTION
- ???
- INPUTS
- rast - RastPort for Mask
- mask - Mask
-
- RESULT
-
- SEE ALSO
-
-
- egsgfx.library/EG_SetSoftStyle egsgfx.library/EG_SetSoftStyle
-
- NAME
- EG_SetSoftStyle --
-
- SYNOPSIS
- EG_SetSoftStyle(rast, style, mask)
- A0 D0 D1
-
- UBYTE EG_SetSoftStyle(EG_RastPortPtr, UBYTE, UBYTE)
-
- FUNCTION
- Sets a text softwarestyle for an RastPort.
-
- INPUTS
- rast - destination RastPort
- style - new values
- nask - mask for bits to change
-
- RESULT
-
- SEE ALSO
-
-
- egsgfx.library/EG_SizeSubRastPort egsgfx.library/EG_SizeSubRastPort
-
- NAME
- EG_SizeSubRastPort -- change the size of a subrastport
-
- SYNOPSIS
- EG_SizeSubRastPort(rast, dx, dy)
- A0 D0 D1
-
- void EG_SizeSubRastPort(EG_RastPortPtr, WORD, WORD)
-
- FUNCTION
- Change the size of a subrastport
-
- INPUTS
- rast - the RastPort to change
- dx, dy - relative size changes
-
- RESULT
-
- SEE ALSO
-
-
- egsgfx.library/EG_StdFont egsgfx.library/EG_StdFont
-
- NAME
- EG_StdFont --
-
- SYNOPSIS
- EG_StdFont()
-
-
- EG_EFontPtr EG_StdFont(void)
-
- FUNCTION
- The EGSBlit library has a special font which can be written
- extremely quick. That font (8 by 10 Pixels non-proportional) should
- be used whenever fast text output is wanted. As it must not be
- opened by EG_OpenFont(), a handle to it is obtained by EG_StdFont().
-
-
- INPUTS
-
- RESULT
- E_FontPtr to the standard font
-
- SEE ALSO
-
-
- egsgfx.library/EG_Text egsgfx.library/EG_Text
-
- NAME
- EG_Text -- render text into a RastPort
-
- SYNOPSIS
- EG_Text(rast, text, len)
- A0 A1 D0
-
- void EG_Text(EG_RastPortPtr, char *, WORD)
-
- FUNCTION
- Renders a text into a RastPort at the current cursorposition, using
- current font and drawmode. After this operation the graphiccursor is
- located at the end of the text.
-
- INPUTS
- rast - destination RastPort
- text - pointer to first character of text
- len - number of characters
-
- RESULT
-
- SEE ALSO
-
-
- egsgfx.library/EG_TextLength egsgfx.library/EG_TextLength
-
- NAME
- EG_TextLength -- evaluates the width of a text
-
- SYNOPSIS
- EG_TextLength(rast, text, len)
- A0 A1 D0
-
- ULONG EG_TextLength(EG_RastPortPtr, char *, WORD)
-
- FUNCTION
- Evaluates the width of a text, as if it would be rendered using
- EG_Text().
-
- INPUTS
- rast - destination RastPort
- text - pointer to first character of text
- len - number of characters
-
- RESULT
- width in pixels
-
- SEE ALSO
-
-
- egsgfx.library/EG_WritePixel egsgfx.library/EG_WritePixel
-
- NAME
- EG_WritePixel -- writes a pixel
-
- SYNOPSIS
- EG_WritePixel(rast, x, y)
- A0 D0 D1
-
- void EG_WritePixel(EG_RastPortPtr, WORD, WORD)
-
- FUNCTION
- Writes a pixel in to RastPort, using the current drawmode and aPen.
-
- INPUTS
- rast - destination RastPort
- x, y - pixel coordinates to draw at
-
- RESULT
-
- SEE ALSO
-
-
- egsgfx.library/EG_ZoomBitMapRastPort egsgfx.library/EG_ZoomBitMapRastPort
-
- NAME
- EG_ZoomBitMapRastPort -- zoom bitmap into RastPort
-
- SYNOPSIS
- EG_ZoomBitMapRastPort(src, rast, xs, ys, w, h, xd, yd, zoom)
- A0 A1 D0 D1 D2 D3 D4 D5 D6
-
- void EG_ZoomBitMapRastPort(E_EBitMapPtr, EG_RastPortPtr, WORD, WORD, WORD, WORD, WORD, WORD, WORD)
-
- FUNCTION
- ???
-
- INPUTS
- src - bitmap of the screen
- rast -
- xs -
- ys -
- w -
- h -
- xd -
- yd -
- zoom -
-
- RESULT
-
- SEE ALSO
-
-
- egsgfx.library/EG_ZoomFillMaskSeg egsgfx.library/EG_ZoomFillMaskSeg
-
- NAME
- EG_ZoomFillMaskSeg --
-
- SYNOPSIS
- EG_ZoomFillMaskSeg(rast, src, xs, ys, w, h, xd, yd, zoom)
- A0 A1 D0 D1 D2 D3 D4 D5 D6
-
- void EG_ZoomFillMaskSeg(EG_RastPortPtr, E_EBitMapPtr, WORD, WORD, WORD, WORD, WORD, WORD, WORD)
-
- FUNCTION
- ???
- INPUTS
- rast -
- src -
- xs -
- ys -
- w -
- h -
- xd -
- yd -
- zoom -
-
- RESULT
-
- SEE ALSO
-
-
-