4.6 Graphics Context
All Graphics Context objects have methods that perform drawing
operations. They are listed here, with the argument types they
expect. XPoint is a pair of integers; XRectangle is a tuple of four
integers; XSegment is a tuple of four integers; XArc is a tuple of
six integers; <type>[] stands for a list of <type> objects.
All GC objects have data attributes representing the individual
values. These are gc.line_width, gc.line_style, etc. (The dash
attribute is not supported.) These attributes can be assigned to if
the GC object is writable.
The Pixmap arguments are Pixmap objects; the Font arguments are Font
objects; the Image arguments are Image objects.
Graphics Context objects (gc_objects) have the following methods and
variables:
- arc_mode
-
Field in XGCValues structure.
- background
-
Field in XGCValues structure.
- cap_style
-
Field in XGCValues structure.
- clip_mask
-
Field in XGCValues structure.
- clip_x_origin
-
Field in XGCValues structure.
- clip_y_origin
-
Field in XGCValues structure.
- dash_offset
-
Field in XGCValues structure.
- file_style
-
Field in XGCValues structure.
- fill_rule
-
Field in XGCValues structure.
- font
-
Field in XGCValues structure.
- foreground
-
Field in XGCValues structure.
- function
-
Field in XGCValues structure.
- graphics_exposures
-
Field in XGCValues structure.
- join_style
-
Field in XGCValues structure.
- line_style
-
Field in XGCValues structure.
- line_width
-
Field in XGCValues structure.
- plane_mask
-
Field in XGCValues structure.
- stipple
-
Field in XGCValues structure.
- subwindow_mode
-
Field in XGCValues structure.
- tile
-
Field in XGCValues structure.
- ts_x_origin
-
Field in XGCValues structure.
- ts_y_origin
-
Field in XGCValues structure.
-
This function corresponds with XChangeGC.
DrawArc( |
x, y, width, height, angle1, angle2) |
-
This function corresponds with XDrawArc.
-
This function corresponds with XDrawArcs.
-
This function corresponds with XDrawImageString.
-
This function corresponds with XDrawLine.
-
This function corresponds with XDrawLines.
-
This function corresponds with XDrawPoint.
-
This function corresponds with XDrawPoints.
-
This function corresponds with XDrawRectangle.
-
This function corresponds with XDrawRectangles.
-
This function corresponds with XDrawSegments.
-
This function corresponds with XDrawString.
FillArc( |
x, y, width, height, angle1, angle2) |
-
This function corresponds with XFillArc.
-
This function corresponds with XFillArcs.
-
This function corresponds with XFillPolygon.
-
This function corresponds with XFillRectangle.
-
This function corresponds with XFillRectangles.
PutImage( |
Image, src_x, src_y, dest_x, dest_y, width, height) |
-
This function corresponds with XPutImage.
-
This function corresponds with XSetArcMode.
-
This function corresponds with XSetBackground.
-
This function corresponds with XSetClipMask.
-
This function corresponds with XSetClipOrigin.
-
This function corresponds with XSetClipRectangles.
-
This function corresponds with XSetDashes.
-
This function corresponds with XSetFillRule.
-
This function corresponds with XSetFillStyle.
-
This function corresponds with XSetFont.
-
This function corresponds with XSetForeground.
-
This function corresponds with XSetFunction.
-
This function corresponds with XSetGraphicsExposures.
-
This function corresponds with XSetLineAttributes.
-
This function corresponds with XSetPlaneMask.
-
This function corresponds with XSetRegion.
SetState( |
foreground, background, function, plane_mask) |
-
This function corresponds with XSetState.
-
This function corresponds with XSetStipple.
-
This function corresponds with XSetSubwindowMode.
-
This function corresponds with XSetTSOrigin.
-
This function corresponds with XSetTile.
|
|
|
X Python Reference Manual |
|
|
|
Previous:
4.5 Image
Up:
4. Xt
Next:
4.7 Colormap
Release 2.3, documentation updated on September 30, 2003.