12.07.2015 Views

Xlib − C Language X Interface

Xlib − C Language X Interface

Xlib − C Language X Interface

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Xlib</strong> − C LibraryX11, Release 6.7 DRAFTchar dashes;}XGCValues;The default GC values are:ComponentDefaultfunctionGXcopyplane_mask All onesforeground 0background 1line_width 0line_styleLineSolidcap_styleCapButtjoin_styleJoinMiterfill_styleFillSolidfill_ruleEvenOddRulearc_modeArcPieSlicetilePixmap of unspecified size filled with foreground pixel(that is, client specified pixel if any, else 0)(subsequent changes to foreground do not affect this pixmap)stipplePixmap of unspecified size filled with onests_x_origin 0ts_y_origin 0fontsubwindow_mode ClipByChildrengraphics_exposures Trueclip_x_origin 0clip_y_origin 0clip_maskNonedash_offset 0dashes 4 (that is, the list [4, 4])Note that foreground and background are not set to any values likely to be useful in a window.The function attributes of a GC are used when you update a section of a drawable (the destination)with bits from somewhere else (the source). The function in a GC defines how the new destinationbits are to be computed from the source bits and the old destination bits. GXcopy is typicallythe most useful because it will work on a color display, but special applications may useother functions, particularly in concert with particular planes of a color display. The 16 GC functions,defined in , are:Function Name Value OperationGXclear 0x0 0GXand 0x1 src AND dstGXandReverse 0x2 src AND NOT dstGXcopy 0x3 src129

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!