XGContext class documentation
Authors
- Generated by fedor
-
This class is a reasonable attempt at mapping PostScript
operators to an Xlib library implementation. Don't
even begin to think that this is a full PostScript
implementation, however. Many, many operators
are not implemented or do not work as expected. Before
using an operator, check to make sure it is implemented,
otherwise the opstack may be screwed up and nothing
else will work!. No errors are returned for
non-implemneted operators. The documentation
below mostly describes methods that are specific to this
backend and wouldn't necessarily be used in other
backends. The methods that this class does implement
that would need to be in every backend are the methods of
its NSGraphicContext superclass. See the documentation for
NSGraphicContext for more information.
Declared in: XGContext.h
Inherits from: NSGraphicsContext
Instance Variables
Methods
Class Methods
+ (Display*) currentXDisplay;
Returns a pointer to the current X-Windows display
variable for the current context.
Instances Methods
- (XGDrawMechanism) drawMechanism;
Returns the XGDrawMechanism, which roughly
describes the depth of the screen and how pixels
should be drawn to the screen for maximum speed.
- (void) setXDisplay: (Display*)xdisplay;
- (Window) xAppRootWindow;
Returns the application root window, which is used
for many things such as window hints
- (XColor) xColorFromColor: (XColor)color;
Returns the closest color in the current
colormap to the indicated X color
- (Display*) xDisplay;
- (Window) xDisplayRootWindow;
Returns the root window of the display
- (void*) xrContext;
Returns a pointer to a structure which describes
aspects of the X windows display
- (XGGState*) xrCurrentGState;
Returns the current XGGState object
Declared in: XGContext.h
Methods
Instances Methods
- (BOOL) xSyncMap: (void*)window;