16 #ifndef ROOT_TVirtualX 25 #if !defined(__CINT__) 29 #include "gdk/win32/gdkwin32.h" 33 typedef ULong_t LPCRITICAL_SECTION;
34 typedef unsigned long DWORD;
37 typedef unsigned long XID;
38 typedef XID GdkDrawable;
39 typedef XID GdkCursor;
40 typedef XID GdkColormap;
41 typedef XID GdkWindow;
42 typedef XID GdkVisual;
66 XColor_t() { color.pixel = 0; color.red = color.green = color.blue = 0; fDefined =
kFALSE; }
75 kBLeft, kBCenter, kBRight };
80 void DrawImage(FT_Bitmap *source,
ULong_t fore,
ULong_t back, GdkImage *xim,
95 void RemovePixmap(GdkDrawable *pix);
96 void SetColor(GdkGC *gc,
Int_t ci);
97 void SetInput(
Int_t inp);
106 ULong_t &xmask, GdkWindowAttr &xattr);
143 void UpdateFillColor();
144 void UpdateFillStyle();
145 void UpdateLineColor();
146 void UpdateMarkerStyle();
147 void UpdateMarkerColor();
148 void UpdateLineStyle();
151 Bool_t AllocColor(GdkColormap *cmap, GdkColor *
color);
152 void QueryColors(GdkColormap *cmap, GdkColor *
colors,
Int_t ncolors);
153 GdkGC *GetGC(
Int_t which)
const;
184 const char *DisplayName(
const char *dpyName = 0);
186 void GetPlanes(
Int_t &nplanes);
188 virtual void GetTextExtent(
UInt_t &w,
UInt_t &
h,
char *mess);
203 void ResizeWindow(
Int_t wid);
204 void SelectWindow(
Int_t wid);
206 void SetClipOFF(
Int_t wid);
210 void SetDoubleBufferOFF();
211 void SetDoubleBufferON();
222 void SetOpacity(
Int_t percent);
227 void Sync(
Int_t mode);
228 void UpdateWindow(
Int_t mode);
241 void DestroySubwindows(
Window_t id);
256 Int_t OpenDisplay(
const char *dpyName=0);
261 Int_t GetDepth()
const;
263 Atom_t InternAtom(
const char *atom_name,
Bool_t only_if_exist);
264 Window_t GetDefaultRootWindow()
const;
289 Bool_t ReadPictureDataFromFile(
const char *filename,
char ***ret_data);
290 void DeletePictureData(
void *data);
296 Int_t EventsPending();
297 void NextEvent(
Event_t &event);
298 void Bell(
Int_t percent);
318 void SetWindowName(
Window_t id,
char *name);
319 void SetIconName(
Window_t id,
char *name);
321 void SetClassHints(
Window_t id,
char *className,
char *resourceName);
330 const char *s,
Int_t len);
346 Window_t GetPrimarySelectionOwner();
347 void SetPrimarySelectionOwner(
Window_t id);
361 void Update(
Int_t mode = 0);
374 char **ListFonts(
const char *fontname,
Int_t max,
Int_t &count);
375 void FreeFontNames(
char **fontlist);
385 void RemoveWindow(
ULong_t qwid);
387 UInt_t ScreenWidthMM()
const;
402 Bool_t GUIThreadMessageFunc(MSG* msg);
403 Bool_t IsCmdThread()
const;
404 void SetUserThreadId(
ULong_t id);
407 static void Unlock();
Semi-Abstract base class defining a generic interface to the underlying, low level, native graphics backend (X11, Win32, MacOS, OpenGL...).
XWindow_t * fWindows
List of windows.
Bool_t fHasTTFonts
True when TrueType fonts are used.
void GetWindowAttributes(NSObject< X11Window > *window, WindowAttributes_t *dst)
Bool_t fFillColorModified
Float_t fTextMagnitude
Text Magnitude.
Bool_t HasTTFonts() const
Returns True when TrueType fonts are used.
Description of a X11 color.
Bool_t fUseSysPointers
True when using system mouse pointers.
Bool_t fMarkerColorModified
FT_Vector fAlign
alignment vector
Int_t fRedDiv
Red value divider, -1 if no TrueColor visual.
Int_t fRedShift
Bits to left shift red, -1 if no TrueColor visual.
static std::string format(double x, double y, int digits, int width)
This class is the basic interface to the Win32 graphics system.
Int_t fTextAlignV
Text Alignment Vertical.
Int_t fBlueDiv
Blue value divider.
static const double x2[5]
Int_t fGreenDiv
Green value divider.
#define ClassDef(name, id)
NSPoint TranslateCoordinates(NSView< X11Window > *fromView, NSView< X11Window > *toView, NSPoint sourcePoint)
Handle_t fXEvent
Current native (GDK) event.
void Init(TClassEdit::TInterpreterLookupHelper *helper)
Bool_t fPenModified
line syle || width modified
void SetLineType(CGContextRef ctx, Int_t n, Int_t *dash)
Bool_t fLineColorModified
Int_t fGreenShift
Bits to left shift green.
Float_t GetTextMagnitude()
Returns the current font magnification factor.
void DrawPolyLine(CGContextRef ctx, Int_t n, TPoint *xy)
Int_t fTextAlign
Text alignment (set in SetTextAlign)
Int_t fTextAlignH
Text Alignment Horizontal.
void DrawFillArea(CGContextRef ctx, Int_t n, TPoint *xy, Bool_t drawShadow)
Bool_t fFillStyleModified
Colormap_t GetColormap() const
Returns handle to colormap.
Float_t fCharacterUpX
Character Up vector along X.
void DrawPolyMarker(CGContextRef ctx, const std::vector< TPoint > &marker, Size_t markerSize, Style_t markerStyle)
lv DrawLine(0.33, 0.0, 0.33, 1.0)
void SetTextMagnitude(Float_t mgn=1)
Sets the current text magnification factor to "mgn".
static const double x1[5]
Int_t fDepth
Number of color planes.
Float_t fCharacterUpY
Character Up vector along Y.
GdkColormap * fColormap
Default colormap, 0 if b/w.
static void GetPixel(int y, int width, Byte_t *scline)
Get pixels in line y and put in array scline.
Bool_t fMarkerStyleModified
NSCursor * CreateCursor(ECursor currentCursor)
#define org(otri, vertexptr)
Mother of all ROOT objects.
void GetColor(Float_t v, Float_t vmin, Float_t vmax, Int_t type, Float_t *rgba)
This function creates color for parametric surface's vertex, using its 'u' value. ...
Int_t fMaxNumberOfWindows
Maximum number of windows.
Int_t fScreenNumber
Screen number.
void DrawBox(CGContextRef ctx, Int_t x1, Int_t y1, Int_t x2, Int_t y2, bool hollow)
#define dest(otri, vertexptr)
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
TExMap * fColors
Hash list of colors.
Int_t GetScreen() const
Returns screen number.
Bool_t fDefined
true if pixel value is defined
Int_t fBlueShift
Bits to left shift blue.
Visual_t GetVisual() const
Returns handle to visual.
TObject * fRefreshTimer
TGWin32RefreshTimer for GUI thread message handler.
This class stores a (key,value) pair using an external hash.
virtual void GetTextExtent(UInt_t &, UInt_t &, wchar_t *)
Returns the size of the specified character string "mess".