21 #if !defined(__CINT__) 25 #include "gdk/win32/gdkwin32.h" 29 typedef ULong_t LPCRITICAL_SECTION;
30 typedef unsigned long DWORD;
33 typedef unsigned long XID;
34 typedef XID GdkDrawable;
35 typedef XID GdkCursor;
36 typedef XID GdkColormap;
37 typedef XID GdkWindow;
38 typedef XID GdkVisual;
62 XColor_t() { color.pixel = 0; color.red = color.green = color.blue = 0; fDefined =
kFALSE; }
71 kBLeft, kBCenter, kBRight };
76 void DrawImage(FT_Bitmap *source,
ULong_t fore,
ULong_t back, GdkImage *xim,
91 void RemovePixmap(GdkDrawable *pix);
92 void SetColor(GdkGC *gc,
Int_t ci);
93 void SetInput(
Int_t inp);
102 ULong_t &xmask, GdkWindowAttr &xattr);
139 void UpdateFillColor();
140 void UpdateFillStyle();
141 void UpdateLineColor();
142 void UpdateMarkerStyle();
143 void UpdateMarkerColor();
144 void UpdateLineStyle();
147 Bool_t AllocColor(GdkColormap *cmap, GdkColor *
color);
148 void QueryColors(GdkColormap *cmap, GdkColor *
colors,
Int_t ncolors);
149 GdkGC *GetGC(
Int_t which)
const;
180 const char *DisplayName(
const char *dpyName = 0);
182 void GetPlanes(
Int_t &nplanes);
184 virtual void GetTextExtent(
UInt_t &w,
UInt_t &
h,
char *mess);
199 void ResizeWindow(
Int_t wid);
200 void SelectWindow(
Int_t wid);
202 void SetClipOFF(
Int_t wid);
206 void SetDoubleBufferOFF();
207 void SetDoubleBufferON();
218 void SetOpacity(
Int_t percent);
223 void Sync(
Int_t mode);
224 void UpdateWindow(
Int_t mode);
237 void DestroySubwindows(
Window_t id);
252 Int_t OpenDisplay(
const char *dpyName=0);
257 Int_t GetDepth()
const;
259 Atom_t InternAtom(
const char *atom_name,
Bool_t only_if_exist);
260 Window_t GetDefaultRootWindow()
const;
285 Bool_t ReadPictureDataFromFile(
const char *filename,
char ***ret_data);
286 void DeletePictureData(
void *data);
292 Int_t EventsPending();
293 void NextEvent(
Event_t &event);
294 void Bell(
Int_t percent);
314 void SetWindowName(
Window_t id,
char *name);
315 void SetIconName(
Window_t id,
char *name);
317 void SetClassHints(
Window_t id,
char *className,
char *resourceName);
326 const char *
s,
Int_t len);
342 Window_t GetPrimarySelectionOwner();
343 void SetPrimarySelectionOwner(
Window_t id);
357 void Update(
Int_t mode = 0);
370 char **ListFonts(
const char *fontname,
Int_t max,
Int_t &count);
371 void FreeFontNames(
char **fontlist);
381 void RemoveWindow(
ULong_t qwid);
383 UInt_t ScreenWidthMM()
const;
398 Bool_t GUIThreadMessageFunc(MSG* msg);
399 Bool_t IsCmdThread()
const;
400 void SetUserThreadId(
ULong_t id);
403 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
image html pict1_TGaxis_012 png width
Define new text attributes for the label number "labNum".
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.
This class is the basic interface to the Win32 graphics system.
Int_t fTextAlignV
Text Alignment Vertical.
#define R(a, b, c, d, e, f, g, h, i)
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.
static constexpr double s
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".