Xfce Foundation Classes
Main Page | Index | Namespace 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

- namespace Xfc
- namespace Xfc::Gdk

## Classes

- class Xfc::Gdk::GCValues
    A GdkGCValues C++ wrapper class. More...
- class Xfc::Gdk::GC
    A GdkGC C++ wrapper class. More...

## Enumerations

- enum CapStyle {
  CAP_NOT_LAST = GDK_CAP_NOT_LAST,
  CAP_BUTT = GDK_CAP_BUTT,
  CAP_ROUND = GDK_CAP_ROUND,
  CAP_PROJECTING = GDK_CAP_PROJECTING
  }
    Determines how the end of lines are drawn. More...
- enum Fill {
  SOLID = GDK_SOLID,
  TILED = GDK_TILED,
  STIPPLED = GDK_STIPPLED,
  OPAQUE_STIPPLED = GDK_OPAQUE_STIPPLED
  }
    Determines how primitives are drawn. More...
- enum Function {
  COPY = GDK_COPY,
  INVERT = GDK_INVERT,
  XOR = GDK_XOR,
  CLEAR = GDK_CLEAR,
  AND = GDK_AND,
  AND_REVERSE = GDK_AND_REVERSE,
  AND_INVERT = GDK_AND_INVERT,
  NOOP = GDK_NOOP,
  OR = GDK_OR,
  EQUIV = GDK_EQUIV,
  OR_REVERSE = GDK_OR_REVERSE,
  COPY_INVERT = GDK_COPY_INVERT,
  OR_INVERT = GDK_OR_INVERT,
  NAND = GDK_NAND,
  NOR = GDK_NOR,
  SET = GDK_SET
  }
    Determines how the bit values for the source pixels are combined with the bit values for destination pixels to produce the final result. More...
- enum JoinStyle {
  JOIN_MITER = GDK_JOIN_MITER,
  JOIN_ROUND = GDK_JOIN_ROUND,
  JOIN_BEVEL = GDK_JOIN_BEVEL
  }
    Determines how the joins between segments of a polygon are drawn. More...
- enum LineStyle {
  LINE_SOLID = GDK_LINE_SOLID,
  LINE_ON_OFF_DASH = GDK_LINE_ON_OFF_DASH,
  LINE_DOUBLE_DASH = GDK_LINE_DOUBLE_DASH
  }
    Determines how lines are drawn. More...
- enum SubwindowMode {
  CLIP_BY_CHILDREN = GDK_CLIP_BY_CHILDREN,
  INCLUDE_INFERIORS = GDK_INCLUDE_INFERIORS
  }
    Determines how drawing onto a window will affect child windows of that window. More...

## 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