Main Page Modules Alphabetical List Compound List File List Compound Members File Members

# pgfx_context Struct Reference
[Data Structures]

Rendering context. More...

`#include <pgfx.h>`

List of all members.

## Public Attributes
pgfx_lib * | lib
| Pointers to the rendering functions.
pghandle | device
| Output device (canvas, bitmap, etc.).
pgcolor | color
| Current color.
pgu | cx
| Current x position for moveto/lineto.
pgu | cy
| Current y position for moveto/lineto.
unsigned long | flags
| Backend-defined.
int | sequence
| Backend-defined.

## Detailed Description

Rendering context.

This defines a rendering method and a device to output to. It may be a canvas, bitmap, or any other device.

The members of this structure are not to be used by the client, only the PGFX rendering backend. Their values are defined by the rendering functions, and modification or interpretation by the client may have unexpected results.

See also:
  pgNewCanvasContext, pgDeleteContext

## Member Data Documentation

pgcolor pgfx_context::color

| Current color.

pgu pgfx_context::cx

| Current x position for moveto/lineto.

pgu pgfx_context::cy

| Current y position for moveto/lineto.

pghandle pgfx_context::device

| Output device (canvas, bitmap, etc.).

unsigned long pgfx_context::flags

| Backend-defined.

struct pgfx_lib* pgfx_context::lib

| Pointers to the rendering functions.

int pgfx_context::sequence

| Backend-defined.

The documentation for this struct was generated from the following file:

- /home/micah/picogui/pg1/client/c/include/picogui/pgfx.h