Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TGX11.cxx File Reference
#include "TROOT.h"
#include "TColor.h"
#include "TGX11.h"
#include "TPoint.h"
#include "TMath.h"
#include "TStorage.h"
#include "TStyle.h"
#include "TExMap.h"
#include "TEnv.h"
#include "TString.h"
#include "TObjString.h"
#include "TObjArray.h"
#include "RStipples.h"
#include "strlcpy.h"
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xatom.h>
#include <X11/cursorfont.h>
#include <X11/keysym.h>
#include <X11/xpm.h>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <cctype>
#include <unistd.h>
#include "gifencode.h"
#include "gifdecode.h"
Include dependency graph for TGX11.cxx:

Classes

struct  RVisual
 
struct  RXColor
 
struct  RXGCValues
 
struct  RXImage
 
struct  RXPoint
 
struct  RXVisualInfo
 
class  TX11GifEncode
 Helper class to extract pixel information from XImage for store in the GIF. More...
 
struct  XWindow_t
 Description of a X11 window. More...
 

Functions

static Int_t DummyX11ErrorHandler (Display *, XErrorEvent *)
 Dummy error handler for X11. Used by FindUsableVisual().
 
int XRotDrawAlignedImageString (Display *, XFontStruct *, float, Drawable, GC, int, int, char *, int)
 A front end to XRotPaintAlignedString: -does alignment, paints background.
 
int XRotDrawAlignedString (Display *, XFontStruct *, float, Drawable, GC, int, int, char *, int)
 A front end to XRotPaintAlignedString: -does alignment, no background.
 
int XRotDrawImageString (Display *, XFontStruct *, float, Drawable, GC, int, int, char *)
 A front end to XRotPaintAlignedString: -no alignment, paints background.
 
int XRotDrawString (Display *, XFontStruct *, float, Drawable, GC, int, int, char *)
 A front end to XRotPaintAlignedString: -no alignment, no background.
 
void XRotSetBoundingBoxPad (int)
 Set the padding used when calculating bounding boxes.
 
void XRotSetMagnification (float)
 Set the font magnification factor for all subsequent operations.
 
XPointXRotTextExtents (Display *, XFontStruct *, float, int, int, char *, int)
 Calculate the bounding box some text will have when painted.
 
float XRotVersion (char *, int)
 Return version/copyright information.
 

Variables

static int gCapStyle = CapButt
 
static Int_t gCurrentFontNumber = 0
 
static XWindow_tgCws
 
struct { 
 
   XFontStruct *   id 
 
   char   name [80] 
 
gFont [kMAXFONT
 
static GC gGCecho
 
static int gJoinStyle = JoinMiter
 
static ULong_t gKeybdMask
 
static int gMarkerCapStyle = CapRound
 
static int gMarkerJoinStyle = JoinRound
 
static int gMarkerLineStyle = LineSolid
 
static ULong_t gMouseMask
 
static Cursor gNullCursor = 0
 
static XFontStructgTextFont
 
static XWindow_tgTws
 
const Int_t kBIGGEST_RGB_VALUE = 65535
 
const int kGCdash = 5
 
const int kGCfill = 2
 
const int kGCinvt = 4
 
const int kGCline = 0
 
const int kGCmark = 1
 
const int kGCpxmp = 6
 
const int kGCtext = 3
 
const Int_t kMAXFONT = 4
 
const int kMAXGC = 7
 
const char null_cursor_bits []
 

Function Documentation

◆ DummyX11ErrorHandler()

static Int_t DummyX11ErrorHandler ( Display * ,
XErrorEvent *  )
static

Dummy error handler for X11. Used by FindUsableVisual().

Definition at line 930 of file TGX11.cxx.

◆ XRotDrawAlignedImageString()

int XRotDrawAlignedImageString ( Display * dpy,
XFontStruct * font,
float angle,
Drawable drawable,
GC gc,
int x,
int y,
char * text,
int align )
extern

A front end to XRotPaintAlignedString: -does alignment, paints background.

Definition at line 316 of file Rotated.cxx.

◆ XRotDrawAlignedString()

int XRotDrawAlignedString ( Display * dpy,
XFontStruct * font,
float angle,
Drawable drawable,
GC gc,
int x,
int y,
char * text,
int align )
extern

A front end to XRotPaintAlignedString: -does alignment, no background.

Definition at line 305 of file Rotated.cxx.

◆ XRotDrawImageString()

int XRotDrawImageString ( Display * dpy,
XFontStruct * font,
float angle,
Drawable drawable,
GC gc,
int x,
int y,
char * str )
extern

A front end to XRotPaintAlignedString: -no alignment, paints background.

Definition at line 294 of file Rotated.cxx.

◆ XRotDrawString()

int XRotDrawString ( Display * dpy,
XFontStruct * font,
float angle,
Drawable drawable,
GC gc,
int x,
int y,
char * str )
extern

A front end to XRotPaintAlignedString: -no alignment, no background.

Definition at line 283 of file Rotated.cxx.

◆ XRotSetBoundingBoxPad()

void XRotSetBoundingBoxPad ( int p)
extern

Set the padding used when calculating bounding boxes.

Definition at line 251 of file Rotated.cxx.

◆ XRotSetMagnification()

void XRotSetMagnification ( float m)
extern

Set the font magnification factor for all subsequent operations.

Definition at line 242 of file Rotated.cxx.

◆ XRotTextExtents()

XPoint * XRotTextExtents ( Display * ,
XFontStruct * font,
float angle,
int x,
int y,
char * text,
int align )
extern

Calculate the bounding box some text will have when painted.

Definition at line 1337 of file Rotated.cxx.

◆ XRotVersion()

float XRotVersion ( char * str,
int n )
extern

Return version/copyright information.

Definition at line 232 of file Rotated.cxx.

Variable Documentation

◆ gCapStyle

int gCapStyle = CapButt
static

Definition at line 161 of file TGX11.cxx.

◆ gCurrentFontNumber

Int_t gCurrentFontNumber = 0
static

Definition at line 152 of file TGX11.cxx.

◆ gCws

XWindow_t* gCws
static

Definition at line 136 of file TGX11.cxx.

◆ [struct]

struct { ... } gFont[kMAXFONT]

◆ gGCecho

GC gGCecho
static

Definition at line 91 of file TGX11.cxx.

◆ gJoinStyle

int gJoinStyle = JoinMiter
static

Definition at line 162 of file TGX11.cxx.

◆ gKeybdMask

ULong_t gKeybdMask
static

◆ gMarkerCapStyle

int gMarkerCapStyle = CapRound
static

Definition at line 155 of file TGX11.cxx.

◆ gMarkerJoinStyle

int gMarkerJoinStyle = JoinRound
static

Definition at line 156 of file TGX11.cxx.

◆ gMarkerLineStyle

int gMarkerLineStyle = LineSolid
static

Definition at line 154 of file TGX11.cxx.

◆ gMouseMask

ULong_t gMouseMask
static

◆ gNullCursor

Cursor gNullCursor = 0
static

Definition at line 181 of file TGX11.cxx.

◆ gTextFont

XFontStruct* gTextFont
static

Definition at line 151 of file TGX11.cxx.

◆ gTws

XWindow_t* gTws
static

Definition at line 137 of file TGX11.cxx.

◆ id

Definition at line 147 of file TGX11.cxx.

◆ kBIGGEST_RGB_VALUE

const Int_t kBIGGEST_RGB_VALUE = 65535

Definition at line 139 of file TGX11.cxx.

◆ kGCdash

const int kGCdash = 5

Definition at line 89 of file TGX11.cxx.

◆ kGCfill

const int kGCfill = 2

Definition at line 88 of file TGX11.cxx.

◆ kGCinvt

const int kGCinvt = 4

Definition at line 89 of file TGX11.cxx.

◆ kGCline

const int kGCline = 0

Definition at line 88 of file TGX11.cxx.

◆ kGCmark

const int kGCmark = 1

Definition at line 88 of file TGX11.cxx.

◆ kGCpxmp

const int kGCpxmp = 6

Definition at line 89 of file TGX11.cxx.

◆ kGCtext

const int kGCtext = 3

Definition at line 89 of file TGX11.cxx.

◆ kMAXFONT

const Int_t kMAXFONT = 4

Definition at line 145 of file TGX11.cxx.

◆ kMAXGC

const int kMAXGC = 7

Definition at line 87 of file TGX11.cxx.

◆ name

char name[80]

Definition at line 148 of file TGX11.cxx.

◆ null_cursor_bits

const char null_cursor_bits[]
Initial value:
= {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}

Definition at line 177 of file TGX11.cxx.