25 #ifndef ROOT_TVirtualX 34 #if !defined(__CINT__) 38 #include "gdk/win32/gdkwin32.h" 42 typedef ULong_t LPCRITICAL_SECTION;
43 typedef unsigned long DWORD;
46 typedef unsigned long XID;
47 typedef XID GdkDrawable;
48 typedef XID GdkCursor;
49 typedef XID GdkColormap;
50 typedef XID GdkWindow;
51 typedef XID GdkVisual;
75 XColor_t() { color.pixel = 0; color.red = color.green = color.blue = 0; fDefined =
kFALSE; }
84 kBLeft, kBCenter, kBRight };
89 void DrawImage(FT_Bitmap *source,
ULong_t fore,
ULong_t back, GdkImage *xim,
104 void RemovePixmap(GdkDrawable *pix);
105 void SetColor(GdkGC *gc,
Int_t ci);
106 void SetInput(
Int_t inp);
115 ULong_t &xmask, GdkWindowAttr &xattr);
152 void UpdateFillColor();
153 void UpdateFillStyle();
154 void UpdateLineColor();
155 void UpdateMarkerStyle();
156 void UpdateMarkerColor();
157 void UpdateLineStyle();
160 Bool_t AllocColor(GdkColormap *cmap, GdkColor *
color);
161 void QueryColors(GdkColormap *cmap, GdkColor *
colors,
Int_t ncolors);
162 GdkGC *GetGC(
Int_t which)
const;
193 const char *DisplayName(
const char *dpyName = 0);
195 void GetPlanes(
Int_t &nplanes);
197 virtual void GetTextExtent(
UInt_t &w,
UInt_t &
h,
char *mess);
212 void ResizeWindow(
Int_t wid);
213 void SelectWindow(
Int_t wid);
215 void SetClipOFF(
Int_t wid);
219 void SetDoubleBufferOFF();
220 void SetDoubleBufferON();
231 void SetOpacity(
Int_t percent);
236 void Sync(
Int_t mode);
237 void UpdateWindow(
Int_t mode);
250 void DestroySubwindows(
Window_t id);
265 Int_t OpenDisplay(
const char *dpyName=0);
270 Int_t GetDepth()
const;
272 Atom_t InternAtom(
const char *atom_name,
Bool_t only_if_exist);
273 Window_t GetDefaultRootWindow()
const;
298 Bool_t ReadPictureDataFromFile(
const char *filename,
char ***ret_data);
299 void DeletePictureData(
void *data);
305 Int_t EventsPending();
306 void NextEvent(
Event_t &event);
307 void Bell(
Int_t percent);
327 void SetWindowName(
Window_t id,
char *name);
328 void SetIconName(
Window_t id,
char *name);
330 void SetClassHints(
Window_t id,
char *className,
char *resourceName);
339 const char *s,
Int_t len);
355 Window_t GetPrimarySelectionOwner();
356 void SetPrimarySelectionOwner(
Window_t id);
370 void Update(
Int_t mode = 0);
383 char **ListFonts(
const char *fontname,
Int_t max,
Int_t &count);
384 void FreeFontNames(
char **fontlist);
394 void RemoveWindow(
ULong_t qwid);
396 UInt_t ScreenWidthMM()
const;
411 Bool_t GUIThreadMessageFunc(MSG* msg);
412 Bool_t IsCmdThread()
const;
413 void SetUserThreadId(
ULong_t id);
416 static void Unlock();
Semi-Abstract base class defining a generic interface to the underlying, low level, native graphics backend (X11, Win32, MacOS, OpenGL...).
void GetWindowAttributes(NSObject< X11Window > *window, WindowAttributes_t *dst)
Bool_t fFillColorModified
Bool_t HasTTFonts() const
Returns True when TrueType fonts are used.
Description of a X11 color.
Bool_t fMarkerColorModified
static const char * filename()
static std::string format(double x, double y, int digits, int width)
This class is the basic interface to the Win32 graphics system.
static const double x2[5]
#define ClassDef(name, id)
NSPoint TranslateCoordinates(NSView< X11Window > *fromView, NSView< X11Window > *toView, NSPoint sourcePoint)
void Init(TClassEdit::TInterpreterLookupHelper *helper)
void SetLineType(CGContextRef ctx, Int_t n, Int_t *dash)
Bool_t fLineColorModified
Float_t GetTextMagnitude()
Returns the current font magnification factor.
void DrawPolyLine(CGContextRef ctx, Int_t n, TPoint *xy)
void DrawFillArea(CGContextRef ctx, Int_t n, TPoint *xy, Bool_t drawShadow)
Bool_t fFillStyleModified
Colormap_t GetColormap() const
Returns handle to colormap.
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]
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)
static Vc_ALWAYS_INLINE int_v max(const int_v &x, const int_v &y)
#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
void DrawBox(CGContextRef ctx, Int_t x1, Int_t y1, Int_t x2, Int_t y2, bool hollow)
#define dest(otri, vertexptr)
Int_t GetScreen() const
Returns screen number.
Bool_t fDefined
true if pixel value is defined
Visual_t GetVisual() const
Returns handle to visual.
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".