197 lines
4.9 KiB
HTML
197 lines
4.9 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of XGC</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>XGC</H1>
|
|
Section: User Commands (1)<BR>Updated: xgc 1.0.5<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
xgc - X graphics demo
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
|
|
|
|
<B>xgc</B> [-<I>toolkitoption</I> ...]
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
The
|
|
<I>xgc</I>
|
|
|
|
program demonstrates various features of the X graphics primitives.
|
|
In X, most of the details about the graphics to be generated are
|
|
stored in a resource called a graphics context (GC). The
|
|
<B>xgc</B>
|
|
|
|
program provides a user interface for setting various GC components.
|
|
Pressing the "Run" button causes these results to be displayed in
|
|
the large drawing window on the right. Timing information is
|
|
displayed in the window immediately below.
|
|
<P>
|
|
|
|
The items in the upper left hand window work as follows:
|
|
<P>
|
|
|
|
<I>Function</I>
|
|
|
|
- specify the logical function with which primitives
|
|
will drawn. The most usual setting is "set", i.e. simply to render
|
|
pixels without regard to what has been drawn before.
|
|
<P>
|
|
|
|
<I>LineStyle</I>
|
|
|
|
- specify whether lines should be drawn solid in foreground,
|
|
dashed in foreground or alternating foreground and background.
|
|
<P>
|
|
|
|
<I>CapStyle</I>
|
|
|
|
- specify the appearance of the ends of a line.
|
|
<P>
|
|
|
|
<I>JoinStyle</I>
|
|
|
|
- specify the appearance of joints between consecutive
|
|
lines drawn within a single graphics primitive.
|
|
<P>
|
|
|
|
<I>FillStyle</I>
|
|
|
|
- specify whether lines, text and fill requests are
|
|
solid, tiled with a pixmap or stippled.
|
|
<P>
|
|
|
|
<I>FillRule</I>
|
|
|
|
- specifies the rule used to fill polygons. The EvenOdd
|
|
rule means that if areas overlap an odd number of times, they are not
|
|
drawn. Winding rule means that overlapping areas are always filled,
|
|
regardless of how many times they overlap.
|
|
<P>
|
|
|
|
<I>ArcMode</I>
|
|
|
|
- specifies the rule for filling of arcs. The boundary
|
|
of the arc is either a Chord or two radii.
|
|
<P>
|
|
|
|
<I>planemask</I>
|
|
|
|
- specifies which planes of the drawing window are
|
|
modified. By default, all planes are modified.
|
|
<P>
|
|
|
|
<I>dashlist</I>
|
|
|
|
- specifies a pattern to be used when drawing dashed lines.
|
|
<P>
|
|
|
|
<I>Line Width</I>
|
|
|
|
- specifies the width in pixels of lines to be drawn.
|
|
Zero means to draw using the server's fastest algorithm with a line width of
|
|
one pixel.
|
|
<P>
|
|
|
|
<I>Font</I>
|
|
|
|
- specifies the font to be used for text primitives.
|
|
<P>
|
|
|
|
<I>Foreground</I>
|
|
|
|
and
|
|
<I>Background</I>
|
|
|
|
- specify the pixel values to be
|
|
applied when drawing primitives.
|
|
The Foreground value is used as the
|
|
pixel value for set bits in the source in all primitives.
|
|
The Background value is used as the
|
|
pixel value for unset bits in the source when using Copy Plane, drawing
|
|
lines with LineStyle of DoubleDash and filling with FillStyle of
|
|
OpaqueStippled.
|
|
<P>
|
|
|
|
<I>Percentage of Test</I>
|
|
|
|
- scrollbar permits specifying only
|
|
a percentage of the test to be run. The number at the left indicates
|
|
the current setting, which defaults to 100%.
|
|
<P>
|
|
The window labeled "Test" permits choice of one a number of graphics
|
|
primitive tests, including Points, Segments, Lines, Arcs and Filled Arcs,
|
|
8-bit Text and Image Text, Rectangles and Filled Rectangles, Image draws,
|
|
as well as Copy Plane and Copy Area.
|
|
<P>
|
|
|
|
The window to the right of this has buttons which permit record/playback
|
|
of the primitives rendered.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>OPTIONS</H2>
|
|
|
|
<I>Xgc</I>
|
|
|
|
accepts all of the standard X Toolkit command line options.
|
|
<A NAME="lbAF"> </A>
|
|
<H2>X DEFAULTS</H2>
|
|
|
|
This program accepts the usual defaults for toolkit applications.
|
|
<A NAME="lbAG"> </A>
|
|
<H2>ENVIRONMENT</H2>
|
|
|
|
<P>
|
|
|
|
<DL COMPACT>
|
|
<DT id="1"><B>DISPLAY</B>
|
|
|
|
<DD>
|
|
to get the default host and display number.
|
|
<DT id="2"><B>XENVIRONMENT</B>
|
|
|
|
<DD>
|
|
to get the name of a resource file that overrides the global resources
|
|
stored in the RESOURCE_MANAGER property.
|
|
</DL>
|
|
<A NAME="lbAH"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<A HREF="/cgi-bin/man/man2html?7+X">X</A>(7)
|
|
<A NAME="lbAI"> </A>
|
|
<H2>BUGS</H2>
|
|
|
|
This program isn't really finished yet, but it probably never will be,
|
|
since it only demonstrates the original X11 core protocol rendering
|
|
operations, which few modern programs use anymore.
|
|
<A NAME="lbAJ"> </A>
|
|
<H2>AUTHORS</H2>
|
|
|
|
Dan Schmidt, MIT
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="3"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="4"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="5"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="6"><A HREF="#lbAE">OPTIONS</A><DD>
|
|
<DT id="7"><A HREF="#lbAF">X DEFAULTS</A><DD>
|
|
<DT id="8"><A HREF="#lbAG">ENVIRONMENT</A><DD>
|
|
<DT id="9"><A HREF="#lbAH">SEE ALSO</A><DD>
|
|
<DT id="10"><A HREF="#lbAI">BUGS</A><DD>
|
|
<DT id="11"><A HREF="#lbAJ">AUTHORS</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:30 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|