XGContext class documentation

Authors

Generated by fedor

XGContext

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.

XGContext

Declared in: XGContext.h

Inherits from: NSGraphicsContext


Instance Variables

Methods


Class Methods

currentXDisplay

+ (Display*) currentXDisplay;
Returns a pointer to the current X-Windows display variable for the current context.

Instances Methods

drawMechanism

- (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.

setXDisplay:

- (void) setXDisplay: (Display*)xdisplay;

xAppRootWindow

- (Window) xAppRootWindow;
Returns the application root window, which is used for many things such as window hints

xColorFromColor:

- (XColor) xColorFromColor: (XColor)color;
Returns the closest color in the current colormap to the indicated X color

xDisplay

- (Display*) xDisplay;

xDisplayRootWindow

- (Window) xDisplayRootWindow;
Returns the root window of the display

xrContext

- (void*) xrContext;
Returns a pointer to a structure which describes aspects of the X windows display

xrCurrentGState

- (XGGState*) xrCurrentGState;
Returns the current XGGState object

Software documentation for the XGContext(XSync) category

XGContext (XSync)

Declared in: XGContext.h


Methods


Instances Methods

xSyncMap:

- (BOOL) xSyncMap: (void*)window;