#include "clientlib.h"Functions | |
| void | pgMoveTo (pgcontext c, pgu x, pgu y) |
| Sets a position to draw lines from. | |
| pgprim | pgLineTo (pgcontext c, pgu x, pgu y) |
| Draws a line from the position last set with pgMoveTo or pgLineTo. | |
| void | pgDeleteContext (pgcontext c) |
| Delete a PGFX context. | |
| pgprim | pgPixel (pgcontext c, pgu x, pgu y) |
| Plot a single pixel in the current color. | |
| pgprim | pgLine (pgcontext c, pgu x1, pgu y1, pgu x2, pgu y2) |
| Plot a line between two specified coordinate pairs. | |
| pgprim | pgRect (pgcontext c, pgu x, pgu y, pgu w, pgu h) |
| Draw a filled rectangle in the current color. | |
| pgprim | pgBlur (pgcontext c, pgu x, pgu y, pgu w, pgu h, pgu radius) |
| Blur an area of the screen. | |
| pgprim | pgFrame (pgcontext c, pgu x, pgu y, pgu w, pgu h) |
| Draw a non-filled rectangle in the current color. | |
| pgprim | pgSlab (pgcontext c, pgu x, pgu y, pgu w) |
Draw a horizontal line beginning at (x,y) and extending right w pixels. | |
| pgprim | pgEllipse (pgcontext c, pgu x, pgu y, pgu w, pgu h) |
| Draw a non-filled ellipse in the current color. | |
| pgprim | pgFEllipse (pgcontext c, pgu x, pgu y, pgu w, pgu h) |
| Draw a filled ellipse in the current color. | |
| pgprim | pgFPolygon (pgcontext c, pghandle array) |
| Draw a filled polygon in the current color. | |
| pgprim | pgText (pgcontext c, pgu x, pgu y, pghandle string) |
| Draw a string in the current color, font, and angle. | |
| pgprim | pgBitmap (pgcontext c, pgu x, pgu y, pgu w, pgu h, pghandle bitmap) |
| Draw a bitmap. | |
| pgprim | pgRotateBitmap (pgcontext c, pgu x, pgu y, pgu w, pgu h, pghandle bitmap) |
| Rotate and draw a bitmap. | |
| pgprim | pgTileBitmap (pgcontext c, pgu x, pgu y, pgu w, pgu h, pghandle bitmap) |
| Tile a portion of a bitmap. | |
| pgprim | pgGradient (pgcontext c, pgu x, pgu y, pgu w, pgu h, pgu angle, pgcolor c1, pgcolor c2) |
| Render a linear color gradient. | |
| pgprim | pgSetColor (pgcontext c, pgcolor color) |
| Set the current color. | |
| pgprim | pgSetFont (pgcontext c, pghandle font) |
| Set the current font. | |
| pgprim | pgSetLgop (pgcontext c, short lgop) |
| Set the current logical operation. | |
| pgprim | pgSetAngle (pgcontext c, pgu angle) |
| Set the angle for text and bitmap. | |
| pgprim | pgSetSrc (pgcontext c, pgu x, pgu y, pgu w, pgu h) |
| Set the bitmap source rectangle. | |
| pgprim | pgSetMapping (pgcontext c, pgu x, pgu y, pgu w, pgu h, short type) |
| Set coordinate system mapping. | |
| pgprim | pgSetClip (pgcontext c, pgu x, pgu y, pgu w, pgu h) |
| Sets the context's clipping rectangle. | |
| void | pgContextUpdate (pgcontext c) |
| Draws any undrawn primitives. | |
|
||||||||||||||||||||||||||||
|
Draw a bitmap. If the specified width and height are larger than the bitmap, the bitmap will be tiled. The (x,y) coordinate on the source bitmap that is mapped to the destination (x,y) is determined by the x any y components of the source rectangle.
|
|
||||||||||||||||||||||||||||
|
Blur an area of the screen.
|
|
|
Draws any undrawn primitives. This must be called after a drawing primitives to force them to actually appear. It will flush any buffers necessary and instructs the server to draw changed areas of the screen if necessary. |
|
|
Delete a PGFX context.
|
|
||||||||||||||||||||||||
|
Draw a non-filled ellipse in the current color.
|
|
||||||||||||||||||||||||
|
Draw a filled ellipse in the current color.
|
|
||||||||||||
|
Draw a filled polygon in the current color.
|
|
||||||||||||||||||||||||
|
Draw a non-filled rectangle in the current color.
|
|
||||||||||||||||||||||||||||||||||||
|
Render a linear color gradient.
c1 and c2. |
|
||||||||||||||||||||||||
|
Plot a line between two specified coordinate pairs.
|
|
||||||||||||||||
|
Draws a line from the position last set with pgMoveTo or pgLineTo.
|
|
||||||||||||||||
|
Sets a position to draw lines from.
|
|
||||||||||||||||
|
Plot a single pixel in the current color.
|
|
||||||||||||||||||||||||
|
Draw a filled rectangle in the current color.
|
|
||||||||||||||||||||||||||||
|
Rotate and draw a bitmap. The source bitmap is rotated around the top-left corner, and shifted of the given x,y. So, if with all other parameters remain the same and you change the rotation angle, the bitmap will appear to rotate around it's original top-left corner. The angle for the rotation is given via pgSetAngle. The portion of the original bitmap to rotate is choosed via pgSetSrc.
|
|
||||||||||||
|
Set the angle for text and bitmap. The angle is measured in degrees:
|
|
||||||||||||||||||||||||
|
Sets the context's clipping rectangle. Set the clipping rectangle to the supplied coordinates |
|
||||||||||||
|
Set the current color.
|
|
||||||||||||
|
Set the current font.
|
|
||||||||||||
|
Set the current logical operation. The logical operation ("LGOP" for short) defines how the the color of a drawn primitive is combined with the color already on the screen.
|
|
||||||||||||||||||||||||||||
|
Set coordinate system mapping. This function defines how the coordinates in a primitive are converted to device coordinates. The following types are supported:
PG_MAP_SCALE is particularly useful in conjunction with PGFX_PERSISTENT and the canvas widget. When the canvas is resized, its contents will stretch automatically with no client-side intervention. |
|
||||||||||||||||||||||||
|
Set the bitmap source rectangle. The bitmap source rectangle is selects which piece of the source bitmap to use in bitmap primitives
|
|
||||||||||||||||||||
|
Draw a horizontal line beginning at
|
|
||||||||||||||||||||
|
Draw a string in the current color, font, and angle. The upper-left corner of the string is drawn at the given (x,y) coordinates. If the string is rotated with pgSetAngle the origin is at the corresponding point on the rotated text. By default PicoGUI inserts a small font-dependant gap between the specified coordinates and the actual edge of the text. To override this, create a font with the PG_FSTYLE_FLUSH flag set.
|
|
||||||||||||||||||||||||||||
|
Tile a portion of a bitmap. pgBitmap will automatically tile the source bitmap if the width and height are sufficiently large. However, pgBitmap tiles the entire bitmap. pgTileBitmap tiles a portion of the bitmap, defined by the current source rectangle.
|
1.3-rc3