X11workbench Toolkit
1.0
|
'graphical api' implementation file for the X11 Work Bench Toolkit API More...
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <limits.h>
#include <unistd.h>
#include <memory.h>
#include <string.h>
#include <strings.h>
#include <signal.h>
#include <time.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/time.h>
#include <pthread.h>
#include <X11/cursorfont.h>
#include <X11/keysymdef.h>
#include "window_helper.h"
#include "pixmap_helper.h"
#include "conf_help.h"
Go to the source code of this file.
Macros | |
#define | XK_MISCELLANY /* mostly for interix */ |
Functions | |
static XImage * | __internalGetClipImage (WBGC hGC) |
int | WBDrawPoint (Display *display, Drawable d, WBGC gc, int x, int y) |
Wrapper for XDrawPoint() More... | |
int | WBDrawPoints (Display *display, Drawable d, WBGC gc, XPoint *points, int npoints, int mode) |
Wrapper for XDrawPoints() More... | |
int | WBDrawLine (Display *display, Drawable d, WBGC gc, int x1, int y1, int x2, int y2) |
Wrapper for XDrawLines() More... | |
int | WBDrawLines (Display *display, Drawable d, WBGC gc, XPoint *points, int npoints, int mode) |
Wrapper for XDrawLine() More... | |
int | WBDrawRectangle (Display *display, Drawable d, WBGC gc, int x, int y, unsigned int width, unsigned int height) |
Wrapper for XDrawRectangle() More... | |
int | WBFillRectangle (Display *display, Drawable d, WBGC gc, int x, int y, unsigned int width, unsigned int height) |
Wrapper for XFillRectangle() More... | |
int | WBDrawArc (Display *display, Drawable d, WBGC gc, int x, int y, unsigned int width, unsigned int height, int angle1, int angle2) |
Wrapper for XDrawArc() More... | |
int | WBFillArc (Display *display, Drawable d, WBGC gc, int x, int y, unsigned int width, unsigned int height, int angle1, int angle2) |
Wrapper for XFillArc() More... | |
int | WBFillPolygon (Display *display, Drawable d, WBGC gc, XPoint *points, int npoints, int shape, int mode) |
Wrapper for XFillPolygon() More... | |
int | WBDrawString (Display *display, Drawable d, WBGC gc, int x, int y, const char *string, int length) |
wrapper for XDrawString() More... | |
WBGC | WBCreateGC (Display *pDisplay, Drawable dw, unsigned long valuemask, const XGCValues *values) |
Creates a WBGC, wrapper for XCreateGC() More... | |
int | WBChangeGC (WBGC hGC, unsigned long valuemask, const XGCValues *values) |
Change a WBGC, a wrapper for XChangeGC() More... | |
Status | WBGetGCValues (WBGC hGC, unsigned long valuemask, XGCValues *values) |
Change a WBGC, a wrapper for XGetGCValues() More... | |
WBGC | WBCopyGC (WBGC hGCOrig) |
makes a copy of a WBGC, a more sensible wrapper for XCopyGC() More... | |
int | WBCopyGC2 (WBGC hGCOrig, unsigned long valuemask, WBGC hGCDest) |
makes a copy of a WBGC, a wrapper for XCopyGC() More... | |
WBGC | WBCopyDrawableGC (Display *pDisplay, Drawable dw, WBGC hGCOrig) |
makes a copy of the specified WBGC for the desired 'Drawable' More... | |
void | WBFreeGC (WBGC hGC) |
Free resources for a WBGC, wrapper for XFreeGC() More... | |
GContext | WBGContextFromGC (WBGC hGC) |
Free resources for a WBGC, wrapper for XGContextFromGC() More... | |
WB_FONTC | WBQueryGCFont (WBGC gc) |
return the WB_FONTC object that was assigned to a WBGC More... | |
WB_FONT | WBGetGCFont (Display *pDisplay, WBGC gc) |
return a copy of the WB_FONT object that was assigned to a WBGC More... | |
int | WBSetRegion (WBGC hGC, Region rgnClip) |
Assign clipping region, wrapper for XSetRegion() More... | |
int | WBSetClipOrigin (WBGC hGC, int clip_x_origin, int clip_y_origin) |
Set clip origin, a wrapper for XSetClipOrigin() More... | |
int | WBSetClipMask (WBGC hGC, Pixmap pixmap) |
Set clip mask, a wrapper for XSetClipMask() More... | |
int | WBSetFunction (WBGC hGC, int function) |
Set the 'function' for the WBGC, a wrapper for XSetFunction() More... | |
int | WBSetForeground (WBGC hGC, unsigned long foreground) |
Assign foreground color, a wrapper for XSetForeground() More... | |
int | WBSetBackground (WBGC hGC, unsigned long background) |
Assign background color, a wrapper for XSetBackground() More... | |
int | WBSetFont (WBGC hGC, WB_FONTC pFont) |
Assign font to a WBGC, a wrapper for XSetFont() More... | |
int | WBSetFontNoCopy (WBGC hGC, WB_FONT pFont) |
Assign font to a WBGC, a wrapper for XSetFont() More... | |
int | WBSetLineAttributes (WBGC hGC, unsigned int line_width, int line_style, int cap_style, int join_style) |
Assign font to a WBGC, a wrapper for XSetLineAttributes() More... | |
int | WBSetDashes (WBGC hGC, int dash_offset, const char dash_list[], int n) |
Assign font to a WBGC, a wrapper for XSetFont() More... | |
'graphical api' implementation file for the X11 Work Bench Toolkit API
X11 Work Bench Toolkit Graphical API This file implements an X11-like API for low-level graphical operations
Definition in file graphical_api.c.