class Fox::FXDC

A device context is used to maintain the state of the graphics drawing system. Defining your drawing code in terms of the Abstract Device Context allows the drawing commands to be rendered on different types of surfaces, such as windows and images (FXDCWindow), or on paper (FXDCPrint). WYSYWYG may be obtained by using the same identical drawing code in your application regardless of the actual device surface being utilized.

Drawing (BITBLT) functions

BLT_CLR

D := 0

BLT_SRC_AND_DST

D := S & D

BLT_SRC_AND_NOT_DST

D := S & ~D

BLT_SRC

D := S

BLT_NOT_SRC_AND_DST

D := ~S & D

BLT_DST

D := D

BLT_SRC_XOR_DST

D := S ^ D

BLT_SRC_OR_DST

D := S | D

BLT_NOT_SRC_AND_NOT_DST

D := ~S & ~D == D := ~(S | D)

BLT_NOT_SRC_XOR_DST

D := ~S ^ D

BLT_NOT_DST

D := ~D

BLT_SRC_OR_NOT_DST

D := S | ~D

BLT_NOT_SRC

D := ~S

BLT_NOT_SRC_OR_DST

D := ~S | D

BLT_NOT_SRC_OR_NOT_DST

D := ~S | ~D == ~(S & D)

BLT_SET

D := 1

Line Styles

LINE_SOLID

Solid lines

LINE_ONOFF_DASH

On-off dashed lines

LINE_DOUBLE_DASH

Double dashed lines

Line Cap Styles

CAP_NOT_LAST

Don’t include last end cap

CAP_BUTT

Butting line end caps

CAP_ROUND

Round line end caps

CAP_PROJECTING

Projecting line end caps

Line Join Styles

JOIN_MITER

Mitered or pointy joints

JOIN_ROUND

Round line joints

JOIN_BEVEL

Beveled or flat joints

Fill Styles

FILL_SOLID

Fill with solid color

FILL_TILED

Fill with tiled bitmap

FILL_STIPPLED

Fill where stipple mask is 1

FILL_OPAQUESTIPPLED

Fill with foreground where mask is 1, background otherwise

Fill Rules

RULE_EVEN_ODD

Even odd polygon filling

RULE_WINDING

Winding rule polygon filling

Stipple/dither patterns

STIPPLE_0

Stipple pattern 0

STIPPLE_NONE

Stipple pattern 0

STIPPLE_BLACK

All ones

STIPPLE_1

Stipple pattern 1

STIPPLE_2

Stipple pattern 2

STIPPLE_3

Stipple pattern 3

STIPPLE_4

Stipple pattern 4

STIPPLE_5

Stipple pattern 5

STIPPLE_6

Stipple pattern 6

STIPPLE_7

Stipple pattern 7

STIPPLE_8

Stipple pattern 8

STIPPLE_GRAY

50% gray

STIPPLE_9

Stipple pattern 9

STIPPLE_10

Stipple pattern 10

STIPPLE_11

Stipple pattern 11

STIPPLE_12

Stipple pattern 12

STIPPLE_13

Stipple pattern 13

STIPPLE_14

Stipple pattern 14

STIPPLE_15

Stipple pattern 15

STIPPLE_16

Stipple pattern 16

STIPPLE_WHITE

All zeroes

STIPPLE_HORZ

Horizontal hatch pattern

STIPPLE_VERT

Vertical hatch pattern

STIPPLE_CROSS

Cross-hatch pattern

STIPPLE_DIAG

Diagonal // hatch pattern

STIPPLE_REVDIAG

Reverse diagonal \ hatch pattern

STIPPLE_CROSSDIAG

Cross-diagonal hatch pattern