Xfce Foundation Classes
Main Page  | IndexNamespace List  |  Alphabetical List  |  Class List  |  File List


gdk/gc.hh File Reference

A GdkGC C++ wrapper interface. More...

#include <xfc/stackobject.hh>
#include <xfc/glib/object.hh>
#include <gdk/gdkgc.h>
#include <vector>
#include <xfc/gdk/inline/gc.inl>

Namespaces

Classes

Enumerations


Detailed Description

A GdkGC C++ wrapper interface.

Provides GC, a graphics context that encapsulates drawing properties.


Enumeration Type Documentation

enum CapStyle
 

Determines how the end of lines are drawn.

Enumeration values:
CAP_NOT_LAST  The same as CAP_BUTT for lines of non-zero width; for zero width lines, the final point on the line will not be drawn.
CAP_BUTT  The ends of the lines are drawn squared off and extending to the coordinates of the end point.
CAP_ROUND  The ends of the lines are drawn as semicircles with the diameter equal to the line width and centered at the end point.
CAP_PROJECTING  The ends of the lines are drawn squared off and extending half the width of the line beyond the end point.

enum Fill
 

Determines how primitives are drawn.

Enumeration values:
SOLID  Draw with the foreground color.
TILED  Draw with a tiled pixmap.
STIPPLED  Draw using the stipple bitmap; pixels corresponding to bits in the stipple bitmap that are set will be drawn in the foreground color; pixels corresponding to bits that are not set will be left untouched.
OPAQUE_STIPPLED  Draw using the stipple bitmap; pixels corresponding to bits in the stipple bitmap that are set will be drawn in the foreground color; pixels corresponding to bits that are not set will be left untouched.

enum Function
 

Determines how the bit values for the source pixels are combined with the bit values for destination pixels to produce the final result.

The sixteen values here correspond to the 16 different possible 2x2 truth tables. Only a couple of these values are usually useful; for colored images, only COPY, XOR and INVERT are generally useful. For bitmaps, AND and OR are also useful.

Enumeration values:
COPY  Overwrites destination pixels with the source pixels (GXcopy).
INVERT  Inverts the destination pixels (GXinvert).
XOR  Xor's the destination pixels with the source pixels (GXxor).
CLEAR  Set pixels to 0 (GXclear).
AND  Source AND destination (GXand).
AND_REVERSE  Source AND NOT destination (GXandReverse).
AND_INVERT  NOT source AND destination (GXandInverted).
NOOP  Destination (GXnoop).
OR  Source OR destination (GXor).
EQUIV  NOT source XOR destination (GXequiv).
OR_REVERSE  Source OR NOT destination (GXorReverse).
COPY_INVERT  NOT source (GXcopyInverted).
OR_INVERT  NOT source OR destination (GXorInverted).
NAND  NOT source OR NOT destination (GXnand).
NOR  NOT source AND NOT destination (GXset).
SET  Set pixels to 1.

enum JoinStyle
 

Determines how the joins between segments of a polygon are drawn.

Enumeration values:
JOIN_MITER  The sides of each line are extended to meet at an angle.
JOIN_ROUND  The sides of the two lines are joined by a circular arc.
JOIN_BEVEL  The sides of the two lines are joined by a straight line which makes an equal angle with each line.

enum LineStyle
 

Determines how lines are drawn.

Enumeration values:
LINE_SOLID  Lines are drawn solid.
LINE_ON_OFF_DASH  Even segments are drawn; odd segments are not drawn.
LINE_DOUBLE_DASH  Even segments are drawn normally.

Odd segments are drawn in the background color if the fill style is SOLID, or in the background color masked by the stipple if the fill style is STIPPLED.

enum SubwindowMode
 

Determines how drawing onto a window will affect child windows of that window.

Enumeration values:
CLIP_BY_CHILDREN  Only draw onto the window itself.
INCLUDE_INFERIORS  Draw onto the window and child windows.
Xfce Foundation Classes


Copyright © 2004-2005 The XFC Development Team XFC 4.3