Logo ROOT   6.08/02
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
TGWin32.h
Go to the documentation of this file.
1 // @(#)root/win32gdk:$Id$
2 // Author: Rene Brun, Olivier Couet, Fons Rademakers, Bertrand Bellenot 27/11/01
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TGWin32
13 #define ROOT_TGWin32
14 
15 
16 #ifndef ROOT_TVirtualX
17 #include "TVirtualX.h"
18 #endif
19 
20 #ifndef ROOT_TTF
21 #include "TTF.h"
22 #endif
23 
24 
25 #if !defined(__CINT__)
26 
27 #include "Windows4Root.h"
28 #include "gdk/gdk.h"
29 #include "gdk/win32/gdkwin32.h"
30 
31 #else
32 
33 typedef ULong_t LPCRITICAL_SECTION;
34 typedef unsigned long DWORD;
35 typedef void* HANDLE;
36 
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;
43 
44 struct GdkGC;
45 struct GdkGCValues;
46 struct GdkWindowAttr;
47 struct GdkColor;
48 struct GdkEvent;
49 struct GdkImage;
50 struct GdkPoint;
51 struct GdkRectangle;
52 
53 struct MSG;
54 
55 #endif
56 
57 typedef unsigned long KeySym;
58 
59 #define None 0 /* universal null resource or null atom */
60 
61 struct XWindow_t;
62 
63 struct XColor_t {
64  GdkColor color;
65  Bool_t fDefined; // true if pixel value is defined
66  XColor_t() { color.pixel = 0; color.red = color.green = color.blue = 0; fDefined = kFALSE; }
67 };
68 
69 class TExMap;
70 
71 class TGWin32 : public TVirtualX {
72 
73 private:
76 
77  FT_Vector fAlign; ///< alignment vector
78 
79  void Align(void);
80  void DrawImage(FT_Bitmap *source, ULong_t fore, ULong_t back, GdkImage *xim,
81  Int_t bx, Int_t by);
83  GdkImage *GetBackground(Int_t x, Int_t y, UInt_t w, UInt_t h);
84  void RenderString(Int_t x, Int_t y, ETextMode mode);
85 
86  Int_t fMaxNumberOfWindows; ///< Maximum number of windows
87  XWindow_t *fWindows; ///< List of windows
88  TExMap *fColors; ///< Hash list of colors
89  GdkCursor *fCursors[kNumCursors]; ///< List of cursors
90 
91  void CloseWindow1();
92  void PutImage(Int_t offset, Int_t itran, Int_t x0, Int_t y0, Int_t nx,
94  UChar_t *image, Drawable_t id);
95  void RemovePixmap(GdkDrawable *pix);
96  void SetColor(GdkGC *gc, Int_t ci);
97  void SetInput(Int_t inp);
98  void SetMarkerType(Int_t type, Int_t n, GdkPoint *xy);
99  void MakeOpaqueColors(Int_t percent, ULong_t *orgcolors, Int_t ncolors);
100  Int_t FindColor(ULong_t pixel, ULong_t *orgcolors, Int_t ncolors);
101  void ImgPickPalette(GdkImage *image, Int_t &ncol, Int_t *&R, Int_t *&G, Int_t *&B);
102 
103  //---- Private methods used for GUI ----
104  void MapGCValues(GCValues_t &gval, ULong_t &xmask, GdkGCValues &xgval, Bool_t tox = kTRUE);
106  ULong_t &xmask, GdkWindowAttr &xattr);
107  void MapCursor(ECursor cursor, Int_t &xcursor);
108  void MapColorStruct(ColorStruct_t *color, GdkColor &xcolor);
109  void MapModifierState(UInt_t &state, UInt_t &xstate, Bool_t tox = kTRUE);
110  void MapEvent(Event_t &ev, GdkEvent &xev, Bool_t tox = kTRUE);
111  void MapEventMask(UInt_t &emask, UInt_t &xemask, Bool_t tox = kTRUE);
112  void MapKeySym(UInt_t &keysym, UInt_t &xkeysym, Bool_t tox = kTRUE);
113 
114 protected:
115  GdkVisual *fVisual;
116  GdkColormap *fColormap; ///< Default colormap, 0 if b/w
117  Int_t fScreenNumber; ///< Screen number
118  Bool_t fHasTTFonts; ///< True when TrueType fonts are used
119  Bool_t fUseSysPointers; ///< True when using system mouse pointers
120  Int_t fTextAlignH; ///< Text Alignment Horizontal
121  Int_t fTextAlignV; ///< Text Alignment Vertical
122  Int_t fTextAlign; ///< Text alignment (set in SetTextAlign)
123  Float_t fCharacterUpX; ///< Character Up vector along X
124  Float_t fCharacterUpY; ///< Character Up vector along Y
125  Float_t fTextMagnitude; ///< Text Magnitude
126  Int_t fDepth; ///< Number of color planes
127  Int_t fRedDiv; ///< Red value divider, -1 if no TrueColor visual
128  Int_t fGreenDiv; ///< Green value divider
129  Int_t fBlueDiv; ///< Blue value divider
130  Int_t fRedShift; ///< Bits to left shift red, -1 if no TrueColor visual
131  Int_t fGreenShift; ///< Bits to left shift green
132  Int_t fBlueShift; ///< Bits to left shift blue
133  Handle_t fXEvent; ///< Current native (GDK) event
134  TObject* fRefreshTimer; ///< TGWin32RefreshTimer for GUI thread message handler
135 
139  Bool_t fPenModified; ///< line syle || width modified
142 
143  void UpdateFillColor();
144  void UpdateFillStyle();
145  void UpdateLineColor();
146  void UpdateMarkerStyle();
147  void UpdateMarkerColor();
148  void UpdateLineStyle();
149 
150  // needed by TGWin32TTF
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;
154  XColor_t &GetColor(Int_t cid);
155 
156 public:
157  TGWin32();
158  TGWin32(const char *name, const char *title);
159  virtual ~TGWin32();
160 
161  void DrawText(Int_t x, Int_t y, Float_t angle, Float_t mgn,
162  const char *text, ETextMode mode);
163  void DrawText(Int_t x, Int_t y, Float_t angle, Float_t mgn,
164  const wchar_t *text, ETextMode mode);
165  void SetTextFont(Font_t fontnumber);
166  Int_t SetTextFont(char *fontname, ETextSetMode mode);
167  void SetTextSize(Float_t textsize);
168 
169  Bool_t Init(void *display=0);
170  //UInt_t ExecCommand(TGWin32Command *);
171  void ClearWindow();
172  void ClosePixmap();
173  void CloseWindow();
174  void CopyPixmap(Int_t wid, Int_t xpos, Int_t ypos);
175  void DrawBox(Int_t x1, Int_t y1, Int_t x2, Int_t y2, EBoxMode mode);
176  void DrawCellArray(Int_t x1, Int_t y1, Int_t x2, Int_t y2, Int_t nx, Int_t ny, Int_t *ic);
177  void DrawFillArea(Int_t n, TPoint *xy);
178  void DrawLine(Int_t x1, Int_t y1, Int_t x2, Int_t y2);
179  void DrawPolyLine(Int_t n, TPoint *xy);
180  void DrawPolyMarker(Int_t n, TPoint *xy);
181  void GetCharacterUp(Float_t &chupx, Float_t &chupy);
183  void GetGeometry(Int_t wid, Int_t &x, Int_t &y, UInt_t &w, UInt_t &h);
184  const char *DisplayName(const char *dpyName = 0);
185  ULong_t GetPixel(Color_t cindex);
186  void GetPlanes(Int_t &nplanes);
187  void GetRGB(Int_t index, Float_t &r, Float_t &g, Float_t &b);
188  virtual void GetTextExtent(UInt_t &w, UInt_t &h, char *mess);
189  virtual void GetTextExtent(UInt_t &, UInt_t &, wchar_t *){}
192  Bool_t HasTTFonts() const { return fHasTTFonts; }
193  Int_t InitWindow(ULong_t window);
195  void MoveWindow(Int_t wid, Int_t x, Int_t y);
197  void QueryPointer(Int_t &ix, Int_t &iy);
198  Pixmap_t ReadGIF(Int_t x0, Int_t y0, const char *file, Window_t id=0);
199  Int_t RequestLocator(Int_t mode, Int_t ctyp, Int_t &x, Int_t &y);
200  Int_t RequestString(Int_t x, Int_t y, char *text);
201  void RescaleWindow(Int_t wid, UInt_t w, UInt_t h);
203  void ResizeWindow(Int_t wid);
204  void SelectWindow(Int_t wid);
205  void SetCharacterUp(Float_t chupx, Float_t chupy);
206  void SetClipOFF(Int_t wid);
207  void SetClipRegion(Int_t wid, Int_t x, Int_t y, UInt_t w, UInt_t h);
208  void SetCursor(Int_t win, ECursor cursor);
209  void SetDoubleBuffer(Int_t wid, Int_t mode);
210  void SetDoubleBufferOFF();
211  void SetDoubleBufferON();
212  void SetDrawMode(EDrawMode mode);
213  void SetFillColor(Color_t cindex);
214  void SetFillStyle(Style_t style);
215  void SetLineColor(Color_t cindex);
216  void SetLineType(Int_t n, Int_t *dash);
217  void SetLineStyle(Style_t linestyle);
218  void SetLineWidth(Width_t width);
219  void SetMarkerColor(Color_t cindex);
220  void SetMarkerSize(Float_t markersize);
221  void SetMarkerStyle(Style_t markerstyle);
222  void SetOpacity(Int_t percent);
223  void SetRGB(Int_t cindex, Float_t r, Float_t g, Float_t b);
224  void SetTextAlign(Short_t talign=11);
225  void SetTextColor(Color_t cindex);
227  void Sync(Int_t mode);
228  void UpdateWindow(Int_t mode);
229  void Warp(Int_t ix, Int_t iy, Window_t id = 0);
230  Int_t WriteGIF(char *name);
231  void WritePixmap(Int_t wid, UInt_t w, UInt_t h, char *pxname);
232  Window_t GetCurrentWindow() const;
233 
234  //---- Methods used for GUI -----
236  void MapWindow(Window_t id);
237  void MapSubwindows(Window_t id);
238  void MapRaised(Window_t id);
239  void UnmapWindow(Window_t id);
240  void DestroyWindow(Window_t id);
241  void DestroySubwindows(Window_t id);
242  void RaiseWindow(Window_t id);
243  void LowerWindow(Window_t id);
244  void MoveWindow(Window_t id, Int_t x, Int_t y);
246  void ResizeWindow(Window_t id, UInt_t w, UInt_t h);
247  void IconifyWindow(Window_t id);
248  void ReparentWindow(Window_t id, Window_t pid, Int_t x, Int_t y);
249  void SetWindowBackground(Window_t id, ULong_t color);
252  UInt_t w, UInt_t h, UInt_t border,
253  Int_t depth, UInt_t clss,
254  void *visual, SetWindowAttributes_t *attr,
255  UInt_t wtype);
256  Int_t OpenDisplay(const char *dpyName=0);
257  void CloseDisplay();
258  Display_t GetDisplay() const;
259  Visual_t GetVisual() const { return 0; }
260  Int_t GetScreen() const { return 0; }
261  Int_t GetDepth() const;
263  Atom_t InternAtom(const char *atom_name, Bool_t only_if_exist);
265  Window_t GetParent(Window_t id) const;
266  FontStruct_t LoadQueryFont(const char *font_name);
268  void DeleteFont(FontStruct_t fs);
270  void ChangeGC(GContext_t gc, GCValues_t *gval);
271  void CopyGC(GContext_t org, GContext_t dest, Mask_t mask);
272  void DeleteGC(GContext_t gc);
273  Cursor_t CreateCursor(ECursor cursor);
274  void SetCursor(Window_t id, Cursor_t curid);
276  Pixmap_t CreatePixmap(Drawable_t id, const char *bitmap, UInt_t width,
277  UInt_t height, ULong_t forecolor, ULong_t backcolor,
278  Int_t depth);
279  Pixmap_t CreatePixmapFromData(unsigned char *bits, UInt_t width, UInt_t height);
280  Pixmap_t CreateBitmap(Drawable_t id, const char *bitmap,
281  UInt_t width, UInt_t height);
282  void DeletePixmap(Pixmap_t pmap);
283  Bool_t CreatePictureFromFile(Drawable_t id, const char *filename,
284  Pixmap_t &pict, Pixmap_t &pict_mask,
285  PictureAttributes_t &attr);
287  Pixmap_t &pict, Pixmap_t &pict_mask,
288  PictureAttributes_t &attr);
289  Bool_t ReadPictureDataFromFile(const char *filename, char ***ret_data);
290  void DeletePictureData(void *data);
291  void SetDashes(GContext_t gc, Int_t offset, const char *dash_list, Int_t n);
292  Bool_t ParseColor(Colormap_t cmap, const char *cname, ColorStruct_t &color);
294  void QueryColor(Colormap_t cmap, ColorStruct_t &color);
295  void FreeColor(Colormap_t cmap, ULong_t pixel);
297  void NextEvent(Event_t &event);
298  void Bell(Int_t percent);
300  Int_t src_x, Int_t src_y, UInt_t width, UInt_t height,
301  Int_t dest_x, Int_t dest_y);
303  void ChangeProperty(Window_t id, Atom_t property, Atom_t type,
304  UChar_t *data, Int_t len);
305  void DrawLine(Drawable_t id, GContext_t gc, Int_t x1, Int_t y1, Int_t x2, Int_t y2);
306  void ClearArea(Window_t id, Int_t x, Int_t y, UInt_t w, UInt_t h);
308  void SendEvent(Window_t id, Event_t *ev);
309  void WMDeleteNotify(Window_t id);
310  void SetKeyAutoRepeat(Bool_t on = kTRUE);
311  void GrabKey(Window_t id, Int_t keycode, UInt_t modifier, Bool_t grab = kTRUE);
312  void GrabButton(Window_t id, EMouseButton button, UInt_t modifier,
313  UInt_t evmask, Window_t confine, Cursor_t cursor,
314  Bool_t grab = kTRUE);
315  void GrabPointer(Window_t id, UInt_t evmask, Window_t confine,
316  Cursor_t cursor, Bool_t grab = kTRUE,
317  Bool_t owner_events = kTRUE);
318  void SetWindowName(Window_t id, char *name);
319  void SetIconName(Window_t id, char *name);
320  void SetIconPixmap(Window_t id, Pixmap_t pic);
321  void SetClassHints(Window_t id, char *className, char *resourceName);
322  void SetMWMHints(Window_t id, UInt_t value, UInt_t funcs, UInt_t input);
323  void SetWMPosition(Window_t id, Int_t x, Int_t y);
324  void SetWMSize(Window_t id, UInt_t w, UInt_t h);
325  void SetWMSizeHints(Window_t id, UInt_t wmin, UInt_t hmin,
326  UInt_t wmax, UInt_t hmax, UInt_t winc, UInt_t hinc);
327  void SetWMState(Window_t id, EInitialState state);
328  void SetWMTransientHint(Window_t id, Window_t main_id);
329  void DrawString(Drawable_t id, GContext_t gc, Int_t x, Int_t y,
330  const char *s, Int_t len);
331  Int_t TextWidth(FontStruct_t font, const char *s, Int_t len);
332  void GetFontProperties(FontStruct_t font, Int_t &max_ascent, Int_t &max_descent);
333  void GetGCValues(GContext_t gc, GCValues_t &gval);
335  void FreeFontStruct(FontStruct_t fs);
336  void ClearWindow(Window_t id);
337  Int_t KeysymToKeycode(UInt_t keysym);
339  UInt_t w, UInt_t h);
341  UInt_t w, UInt_t h);
342  void DrawSegments(Drawable_t id, GContext_t gc, Segment_t *seg, Int_t nseg);
343  void SelectInput(Window_t id, UInt_t evmask);
345  void SetInputFocus(Window_t id);
348  void ConvertPrimarySelection(Window_t id, Atom_t clipboard, Time_t when);
349  void LookupString(Event_t *event, char *buf, Int_t buflen, UInt_t &keysym);
350  void GetPasteBuffer(Window_t id, Atom_t atom, TString &text,
351  Int_t &nchar, Bool_t del);
353  Int_t src_y, Int_t &dest_x, Int_t &dest_y, Window_t &child);
354  void GetWindowSize(Drawable_t id, Int_t &x, Int_t &y, UInt_t &w, UInt_t &h);
355  void FillPolygon(Window_t id, GContext_t gc, Point_t *points, Int_t npnt);
356  void QueryPointer(Window_t id, Window_t &rootw, Window_t &childw,
357  Int_t &root_x, Int_t &root_y, Int_t &win_x,
358  Int_t &win_y, UInt_t &mask);
359  void SetForeground(GContext_t gc, ULong_t foreground);
361  void Update(Int_t mode = 0);
363  void DestroyRegion(Region_t reg);
366  void UnionRegion(Region_t rega, Region_t regb, Region_t result);
367  void IntersectRegion(Region_t rega, Region_t regb, Region_t result);
368  void SubtractRegion(Region_t rega, Region_t regb, Region_t result);
369  void XorRegion(Region_t rega, Region_t regb, Region_t result);
372  Bool_t EqualRegion(Region_t rega, Region_t regb);
373  void GetRegionBox(Region_t reg, Rectangle_t *);
374  char **ListFonts(const char *fontname, Int_t max, Int_t &count);
375  void FreeFontNames(char **fontlist);
376  Drawable_t CreateImage(UInt_t width, UInt_t height);
377  void GetImageSize(Drawable_t id, UInt_t &width, UInt_t &height);
378  void PutPixel(Drawable_t id, Int_t x, Int_t y, ULong_t pixel);
379  void PutImage(Drawable_t id, GContext_t gc, Drawable_t img,
380  Int_t dx, Int_t dy, Int_t x, Int_t y,
381  UInt_t w, UInt_t h);
382  void DeleteImage(Drawable_t img);
383  unsigned char *GetColorBits(Drawable_t wid, Int_t x, Int_t y, UInt_t width, UInt_t height);
384  Int_t AddWindow(ULong_t qwid, UInt_t w, UInt_t h);
385  void RemoveWindow(ULong_t qwid);
386  void ShapeCombineMask(Window_t id, Int_t x, Int_t y, Pixmap_t mask);
387  UInt_t ScreenWidthMM() const;
388 
391  Atom_t*, Int_t*, ULong_t*, ULong_t*, unsigned char**);
395  void ChangeProperties(Window_t id, Atom_t property, Atom_t type,
396  Int_t format, UChar_t *data, Int_t len);
397  void SetDNDAware(Window_t win, Atom_t *typelist);
398  void SetTypeList(Window_t win, Atom_t prop, Atom_t *typelist);
399  Window_t FindRWindow(Window_t win, Window_t dragwin, Window_t input, int x, int y, int maxd);
400  Bool_t IsDNDAware(Window_t win, Atom_t *typelist);
401 
402  Bool_t GUIThreadMessageFunc(MSG* msg);
403  Bool_t IsCmdThread() const;
404  void SetUserThreadId(ULong_t id);
405 
406  static void Lock();
407  static void Unlock();
408 
409  ClassDef(TGWin32,0) //Interface to Win32
410 };
411 
412 #endif
const int nx
Definition: kalman.C:16
EAlign
Definition: TGWin32.h:74
Pixmap_t ReadGIF(Int_t x0, Int_t y0, const char *file, Window_t id=0)
If id is NULL - loads the specified gif file at position [x0,y0] in the current window.
Definition: TGWin32.cxx:4275
void CloseWindow1()
Delete current window.
Definition: TGWin32.cxx:1608
void MapColorStruct(ColorStruct_t *color, GdkColor &xcolor)
Map a ColorStruct_t to a XColor structure.
Definition: TGWin32.cxx:5469
void RescaleWindow(Int_t wid, UInt_t w, UInt_t h)
Rescale the window wid.
Definition: TGWin32.cxx:2702
GdkGC * GetGC(Int_t which) const
Return desired Graphics Context (&quot;which&quot; maps directly on gGCList[]).
Definition: TGWin32.cxx:1964
Handle_t FontStruct_t
Definition: GuiTypes.h:40
const char * DisplayName(const char *dpyName=0)
Return hostname on which the display is opened.
Definition: TGWin32.cxx:2030
virtual ~TGWin32()
destructor.
Definition: TGWin32.cxx:817
void SetMarkerSize(Float_t markersize)
Set marker size index.
Definition: TGWin32.cxx:3373
void XorRegion(Region_t rega, Region_t regb, Region_t result)
Calculate the difference between the union and intersection of two regions.
Definition: TGWin32.cxx:6938
static double B[]
void FillPolygon(Window_t id, GContext_t gc, Point_t *points, Int_t npnt)
FillPolygon fills the region closed by the specified path.
Definition: TGWin32.cxx:6752
static void Lock()
Definition: TGWin32.cxx:946
void SetClipRectangles(GContext_t gc, Int_t x, Int_t y, Rectangle_t *recs, Int_t n)
Set clipping rectangles in graphics context.
Definition: TGWin32.cxx:6839
void SetWMSize(Window_t id, UInt_t w, UInt_t h)
Tells window manager the desired size of window &quot;id&quot;.
Definition: TGWin32.cxx:6347
Semi-Abstract base class defining a generic interface to the underlying, low level, native graphics backend (X11, Win32, MacOS, OpenGL...).
Definition: TVirtualX.h:70
void SetLineWidth(Width_t width)
Set line width.
Definition: TGWin32.cxx:3337
Bool_t Init(void *display=0)
Initialize Win32 system. Returns kFALSE in case of failure.
Definition: TGWin32.cxx:962
void ConvertSelection(Window_t, Atom_t &, Atom_t &, Atom_t &, Time_t &)
Get Clipboard data.
Definition: TGWin32.cxx:7409
float xmin
Definition: THbookFile.cxx:93
void MoveWindow(Int_t wid, Int_t x, Int_t y)
Move the window wid.
Definition: TGWin32.cxx:2089
Int_t EventsPending()
Returns number of pending events.
Definition: TGWin32.cxx:5600
void SetWindowBackground(Window_t id, ULong_t color)
Set the window background color.
Definition: TGWin32.cxx:4530
void SetLineType(Int_t n, Int_t *dash)
Set line type.
Definition: TGWin32.cxx:3261
void SetOpacity(Int_t percent)
Set opacity of a window.
Definition: TGWin32.cxx:3708
void SetLineColor(Color_t cindex)
Set color index for lines.
Definition: TGWin32.cxx:3233
void SelectWindow(Int_t wid)
Select window to which subsequent output is directed.
Definition: TGWin32.cxx:2840
XWindow_t * fWindows
List of windows.
Definition: TGWin32.h:87
XColor_t & GetColor(Int_t cid)
Return reference to internal color structure associated to color index cid.
Definition: TGWin32.cxx:1942
Bool_t ParseColor(Colormap_t cmap, const char *cname, ColorStruct_t &color)
Parse string cname containing color name, like &quot;green&quot; or &quot;#00FF00&quot;.
Definition: TGWin32.cxx:5484
void ClosePixmap()
Delete current pixmap.
Definition: TGWin32.cxx:1592
void DeleteProperty(Window_t, Atom_t &)
Deletes the specified property on the specified window.
Definition: TGWin32.cxx:7334
EInitialState
Definition: GuiTypes.h:346
void SetDashes(GContext_t gc, Int_t offset, const char *dash_list, Int_t n)
Specify a dash pattertn.
Definition: TGWin32.cxx:5451
void UpdateFillStyle()
Set fill area style index.
Definition: TGWin32.cxx:3180
short Style_t
Definition: RtypesCore.h:76
void CloseWindow()
Delete current window.
Definition: TGWin32.cxx:1600
Bool_t IsVisible(Int_t x, Int_t y, UInt_t w, UInt_t h)
Test if there is really something to render.
Definition: TGWin32.cxx:1412
void ReparentWindow(Window_t id, Window_t pid, Int_t x, Int_t y)
Reparent window, make pid the new parent and position the window at position (x,y) in new parent...
Definition: TGWin32.cxx:4520
Bool_t fHasTTFonts
True when TrueType fonts are used.
Definition: TGWin32.h:118
Bool_t fFillColorModified
Definition: TGWin32.h:136
void SetUserThreadId(ULong_t id)
Set user thread id.
Definition: TGWin32.cxx:7591
FontStruct_t LoadQueryFont(const char *font_name)
Load font and query font.
Definition: TGWin32.cxx:5133
float Float_t
Definition: RtypesCore.h:53
void SetMarkerColor(Color_t cindex)
Set color index for markers.
Definition: TGWin32.cxx:3353
void MapRaised(Window_t id)
Map window on screen and put on top of all windows.
Definition: TGWin32.cxx:4383
UInt_t Mask_t
Definition: GuiTypes.h:42
void Update(Int_t mode=0)
Flush (mode = 0, default) or synchronize (mode = 1) X output buffer.
Definition: TGWin32.cxx:6863
float ymin
Definition: THbookFile.cxx:93
Display_t GetDisplay() const
Returns handle to display (might be useful in some cases where direct X11 manipulation outside of TVi...
Definition: TGWin32.cxx:5083
void GrabPointer(Window_t id, UInt_t evmask, Window_t confine, Cursor_t cursor, Bool_t grab=kTRUE, Bool_t owner_events=kTRUE)
Establish an active pointer grab.
Definition: TGWin32.cxx:6234
UInt_t ScreenWidthMM() const
Returns the width of the screen in millimeters.
Definition: TGWin32.cxx:7324
GContext_t CreateGC(Drawable_t id, GCValues_t *gval)
Create a graphics context using the values set in gval (but only for those entries that are in the ma...
Definition: TGWin32.cxx:5177
Float_t fTextMagnitude
Text Magnitude.
Definition: TGWin32.h:125
void GetGeometry(Int_t wid, Int_t &x, Int_t &y, UInt_t &w, UInt_t &h)
Return position and size of window wid.
Definition: TGWin32.cxx:1997
void ShapeCombineMask(Window_t id, Int_t x, Int_t y, Pixmap_t mask)
The Nonrectangular Window Shape Extension adds nonrectangular windows to the System.
Definition: TGWin32.cxx:7316
ULong_t Time_t
Definition: GuiTypes.h:43
void SetDoubleBufferOFF()
Turn double buffer mode off.
Definition: TGWin32.cxx:3067
Window_t GetInputFocus()
Returns the window id of the window having the input focus.
Definition: TGWin32.cxx:6550
void SetMarkerType(Int_t type, Int_t n, GdkPoint *xy)
Set marker type.
Definition: TGWin32.cxx:3395
TH1 * h
Definition: legend2.C:5
Description of a X11 color.
Definition: TGWin32.h:63
void DeleteImage(Drawable_t img)
Deallocates the memory associated with the image img.
Definition: TGWin32.cxx:7076
Bool_t ReadPictureDataFromFile(const char *filename, char ***ret_data)
Read picture data from file and store in ret_data.
Definition: TGWin32.cxx:5421
void CloseDisplay()
close display (terminate server/gMainThread thread)
Definition: TGWin32.cxx:900
EGEventType
Definition: GuiTypes.h:60
Handle_t Cursor_t
Definition: GuiTypes.h:35
void SetColor(GdkGC *gc, Int_t ci)
Set the foreground color in GdkGC.
Definition: TGWin32.cxx:2957
Bool_t fUseSysPointers
True when using system mouse pointers.
Definition: TGWin32.h:119
Bool_t CheckEvent(Window_t id, EGEventType type, Event_t &ev)
Check if there is for window &quot;id&quot; an event of type &quot;type&quot;.
Definition: TGWin32.cxx:5552
Window_t FindRWindow(Window_t win, Window_t dragwin, Window_t input, int x, int y, int maxd)
Recursively search in the children of Window for a Window which is at location x, y and is DND aware...
Definition: TGWin32.cxx:7487
void SetWMSizeHints(Window_t id, UInt_t wmin, UInt_t hmin, UInt_t wmax, UInt_t hmax, UInt_t winc, UInt_t hinc)
Give the window manager minimum and maximum size hints.
Definition: TGWin32.cxx:6358
Bool_t fMarkerColorModified
Definition: TGWin32.h:141
void RaiseWindow(Window_t id)
Put window on top of window stack.
Definition: TGWin32.cxx:4443
void UpdateLineStyle()
Update line style.
Definition: TGWin32.cxx:3301
Handle_t GContext_t
Definition: GuiTypes.h:39
void SetWindowName(Window_t id, char *name)
Set window name.
Definition: TGWin32.cxx:6254
ULong_t GetPixel(Color_t cindex)
Return pixel value associated to specified ROOT color number.
Definition: TGWin32.cxx:2945
void DrawFillArea(Int_t n, TPoint *xy)
Fill area described by polygon.
Definition: TGWin32.cxx:1737
Basic string class.
Definition: TString.h:137
void ChangeGC(GContext_t gc, GCValues_t *gval)
Change entries in an existing graphics context, gc, by values from gval.
Definition: TGWin32.cxx:5196
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
const Bool_t kFALSE
Definition: Rtypes.h:92
void UpdateLineColor()
Definition: TGWin32.cxx:3244
FT_Vector fAlign
alignment vector
Definition: TGWin32.h:77
Int_t fRedDiv
Red value divider, -1 if no TrueColor visual.
Definition: TGWin32.h:127
void GetWindowAttributes(Window_t id, WindowAttributes_t &attr)
Get window attributes and return filled in attributes structure.
Definition: TGWin32.cxx:5042
Handle_t Drawable_t
Definition: GuiTypes.h:32
void SetWMState(Window_t id, EInitialState state)
Set the initial state of the window. Either kNormalState or kIconicState.
Definition: TGWin32.cxx:6383
void DrawImage(FT_Bitmap *source, ULong_t fore, ULong_t back, GdkImage *xim, Int_t bx, Int_t by)
Draw FT_Bitmap bitmap to xim image at position bx,by using specified foreground color.
Definition: TGWin32.cxx:1237
Int_t AddWindow(ULong_t qwid, UInt_t w, UInt_t h)
Register a window created by Qt as a ROOT window (like InitWindow()).
Definition: TGWin32.cxx:7231
void UnmapWindow(Window_t id)
Unmap window from screen.
Definition: TGWin32.cxx:4410
Int_t fRedShift
Bits to left shift red, -1 if no TrueColor visual.
Definition: TGWin32.h:130
static std::string format(double x, double y, int digits, int width)
ECursor
Definition: TVirtualX.h:56
This class is the basic interface to the Win32 graphics system.
Definition: TGWin32.h:71
short Font_t
Definition: RtypesCore.h:75
void MapSubwindows(Window_t id)
Maps all subwindows for the specified window &quot;id&quot; in top-to-bottom stacking order.
Definition: TGWin32.cxx:4372
void FreeFontStruct(FontStruct_t fs)
Free font structure returned by GetFontStruct().
Definition: TGWin32.cxx:6472
Handle_t Display_t
Definition: GuiTypes.h:28
Int_t fTextAlignV
Text Alignment Vertical.
Definition: TGWin32.h:121
void DeletePictureData(void *data)
Delete picture data created by the function ReadPictureDataFromFile.
Definition: TGWin32.cxx:5441
void MapKeySym(UInt_t &keysym, UInt_t &xkeysym, Bool_t tox=kTRUE)
Map to and from X key symbols.
Definition: TGWin32.cxx:6625
Int_t TextWidth(FontStruct_t font, const char *s, Int_t len)
Return length of string in pixels. Size depends on font.
Definition: TGWin32.cxx:6430
void PutPixel(Drawable_t id, Int_t x, Int_t y, ULong_t pixel)
Overwrites the pixel in the image with the specified pixel value.
Definition: TGWin32.cxx:7033
#define G(x, y, z)
Int_t OpenDisplay(const char *dpyName=0)
Open the display. Return -1 if the opening fails, 0 when ok.
Definition: TGWin32.cxx:979
void SendEvent(Window_t id, Event_t *ev)
Send event ev to window id.
Definition: TGWin32.cxx:5586
Handle_t FontH_t
Definition: GuiTypes.h:36
Int_t fBlueDiv
Blue value divider.
Definition: TGWin32.h:129
void Align(void)
Compute alignment variables.
Definition: TGWin32.cxx:1207
void GetPasteBuffer(Window_t id, Atom_t atom, TString &text, Int_t &nchar, Bool_t del)
Get contents of paste buffer atom into string.
Definition: TGWin32.cxx:6665
Window_t GetParent(Window_t id) const
Return the parent of the window.
Definition: TGWin32.cxx:5121
void SetDoubleBuffer(Int_t wid, Int_t mode)
Set the double buffer on/off on window wid.
Definition: TGWin32.cxx:3031
Region_t CreateRegion()
Create a new empty region.
Definition: TGWin32.cxx:6871
void LowerWindow(Window_t id)
Lower window so it lays below all its siblings.
Definition: TGWin32.cxx:4462
Pixmap_t CreatePixmapFromData(unsigned char *bits, UInt_t width, UInt_t height)
create an image from RGB data.
Definition: TGWin32.cxx:7152
static const double x2[5]
Int_t fGreenDiv
Green value divider.
Definition: TGWin32.h:128
Double_t x[n]
Definition: legend1.C:17
void SetTextFont(Font_t fontnumber)
Set specified font.
Definition: TGWin32.cxx:1540
unsigned long KeySym
Definition: TGWin32.h:57
void QueryPointer(Int_t &ix, Int_t &iy)
Query pointer position.
Definition: TGWin32.cxx:2266
void SetDoubleBufferON()
Turn double buffer mode on.
Definition: TGWin32.cxx:3077
void DrawText(Int_t x, Int_t y, Float_t angle, Float_t mgn, const char *text, ETextMode mode)
Draw text using TrueType fonts.
Definition: TGWin32.cxx:1357
#define ClassDef(name, id)
Definition: Rtypes.h:254
void SetFillColor(Color_t cindex)
Set color index for fill areas.
Definition: TGWin32.cxx:3135
void UpdateFillColor()
Definition: TGWin32.cxx:3150
void GetPlanes(Int_t &nplanes)
Get maximum number of planes.
Definition: TGWin32.cxx:2038
Handle_t fXEvent
Current native (GDK) event.
Definition: TGWin32.h:133
Int_t GetProperty(Window_t, Atom_t, Long_t, Long_t, Bool_t, Atom_t, Atom_t *, Int_t *, ULong_t *, ULong_t *, unsigned char **)
Returns the actual type of the property, the actual format of the property, and a pointer to the data...
Definition: TGWin32.cxx:7348
const int ny
Definition: kalman.C:17
void DeletePixmap(Pixmap_t pmap)
Explicitely delete pixmap resource.
Definition: TGWin32.cxx:5351
void SetInput(Int_t inp)
Set input on or off.
Definition: TGWin32.cxx:3225
Handle_t Atom_t
Definition: GuiTypes.h:38
Bool_t CreatePictureFromFile(Drawable_t id, const char *filename, Pixmap_t &pict, Pixmap_t &pict_mask, PictureAttributes_t &attr)
Create a picture pixmap from data on file.
Definition: TGWin32.cxx:5361
void CopyGC(GContext_t org, GContext_t dest, Mask_t mask)
Copies graphics context from org to dest.
Definition: TGWin32.cxx:5262
Int_t WriteGIF(char *name)
Writes the current window into GIF file.
Definition: TGWin32.cxx:4137
Bool_t fPenModified
line syle || width modified
Definition: TGWin32.h:139
XColor_t()
Definition: TGWin32.h:66
static void Unlock()
Definition: TGWin32.cxx:954
void MapGCValues(GCValues_t &gval, ULong_t &xmask, GdkGCValues &xgval, Bool_t tox=kTRUE)
Map a GCValues_t to a XCGValues structure if tox is true.
Definition: TGWin32.cxx:4773
void ChangeProperty(Window_t id, Atom_t property, Atom_t type, UChar_t *data, Int_t len)
This function alters the property for the specified window and causes the X server to generate a Prop...
Definition: TGWin32.cxx:6127
void GetImageSize(Drawable_t id, UInt_t &width, UInt_t &height)
Returns the width and height of the image id.
Definition: TGWin32.cxx:7024
Pixmap_t CreatePixmap(Drawable_t id, UInt_t w, UInt_t h)
Creates a pixmap of the width and height you specified and returns a pixmap ID that identifies it...
Definition: TGWin32.cxx:5299
void GrabButton(Window_t id, EMouseButton button, UInt_t modifier, UInt_t evmask, Window_t confine, Cursor_t cursor, Bool_t grab=kTRUE)
Establish passive grab on a certain mouse button.
Definition: TGWin32.cxx:6209
Bool_t fLineColorModified
Definition: TGWin32.h:138
void IntersectRegion(Region_t rega, Region_t regb, Region_t result)
Compute the intersection of rega and regb and return result region.
Definition: TGWin32.cxx:6920
void UpdateMarkerColor()
Definition: TGWin32.cxx:3363
Bool_t CreatePictureFromData(Drawable_t id, char **data, Pixmap_t &pict, Pixmap_t &pict_mask, PictureAttributes_t &attr)
Create a pixture pixmap from data.
Definition: TGWin32.cxx:5395
void FreeColor(Colormap_t cmap, ULong_t pixel)
Free color cell with specified pixel value.
Definition: TGWin32.cxx:5542
unsigned long XID
Definition: TGX11.h:37
Int_t OpenPixmap(UInt_t w, UInt_t h)
Open a new pixmap.
Definition: TGWin32.cxx:2103
void SetCursor(Int_t win, ECursor cursor)
Set the cursor.
Definition: TGWin32.cxx:2999
void MapEventMask(UInt_t &emask, UInt_t &xemask, Bool_t tox=kTRUE)
Map event mask to or from gdk.
Definition: TGWin32.cxx:4661
Int_t fGreenShift
Bits to left shift green.
Definition: TGWin32.h:131
Window_t GetDefaultRootWindow() const
Return handle to the default root window created when calling XOpenDisplay().
Definition: TGWin32.cxx:5113
Float_t GetTextMagnitude()
Returns the current font magnification factor.
Definition: TGWin32.h:190
void RenderString(Int_t x, Int_t y, ETextMode mode)
Perform the string rendering in the pad.
Definition: TGWin32.cxx:1434
void SetMWMHints(Window_t id, UInt_t value, UInt_t funcs, UInt_t input)
Set decoration style for MWM-compatible wm (mwm, ncdwm, fvwm?).
Definition: TGWin32.cxx:6325
void GrabKey(Window_t id, Int_t keycode, UInt_t modifier, Bool_t grab=kTRUE)
Establish passive grab on a certain key.
Definition: TGWin32.cxx:6190
short Color_t
Definition: RtypesCore.h:79
void GetRGB(Int_t index, Float_t &r, Float_t &g, Float_t &b)
Get rgb values for color &quot;index&quot;.
Definition: TGWin32.cxx:2046
virtual void GetTextExtent(UInt_t &w, UInt_t &h, char *mess)
Return the size of a character string.
Definition: TGWin32.cxx:2066
Bool_t IsDNDAware(Window_t win, Atom_t *typelist)
Checks if Window win is DND aware, and knows any of the DND formats passed in argument.
Definition: TGWin32.cxx:7544
void Warp(Int_t ix, Int_t iy, Window_t id=0)
Set pointer position.
Definition: TGWin32.cxx:3990
void SetFillStyle(Style_t style)
Set fill area style.
Definition: TGWin32.cxx:3169
Int_t KeysymToKeycode(UInt_t keysym)
Convert a keysym to the appropriate keycode.
Definition: TGWin32.cxx:6492
void SetDrawMode(EDrawMode mode)
Set the drawing mode.
Definition: TGWin32.cxx:3106
Definition: TPoint.h:33
void SetIconName(Window_t id, char *name)
Set window icon name.
Definition: TGWin32.cxx:6264
Bool_t PointInRegion(Int_t x, Int_t y, Region_t reg)
Returns true if the point x,y is in the region.
Definition: TGWin32.cxx:6954
Bool_t HasTTFonts() const
Returns True when TrueType fonts are used.
Definition: TGWin32.h:192
void SetLineStyle(Style_t linestyle)
Set line style.
Definition: TGWin32.cxx:3290
point * points
Definition: X3DBuffer.c:20
void DrawCellArray(Int_t x1, Int_t y1, Int_t x2, Int_t y2, Int_t nx, Int_t ny, Int_t *ic)
Draw a cell array.
Definition: TGWin32.cxx:1701
void SetTextSize(Float_t textsize)
Set current text size.
Definition: TGWin32.cxx:1564
void GetCharacterUp(Float_t &chupx, Float_t &chupy)
Return character up vector.
Definition: TGWin32.cxx:1932
Int_t RequestLocator(Int_t mode, Int_t ctyp, Int_t &x, Int_t &y)
Request Locator position.
Definition: TGWin32.cxx:2311
void SetDNDAware(Window_t win, Atom_t *typelist)
Add XdndAware property and the list of drag and drop types to the Window win.
Definition: TGWin32.cxx:7563
Int_t fTextAlign
Text alignment (set in SetTextAlign)
Definition: TGWin32.h:122
void DrawPolyLine(Int_t n, TPoint *xy)
Draw a line through all points.
Definition: TGWin32.cxx:1798
void CopyPixmap(Int_t wid, Int_t xpos, Int_t ypos)
Copy the pixmap wid at the position xpos, ypos in the current window.
Definition: TGWin32.cxx:1647
Int_t fTextAlignH
Text Alignment Horizontal.
Definition: TGWin32.h:120
void DrawSegments(Drawable_t id, GContext_t gc, Segment_t *seg, Int_t nseg)
Draws multiple line segments. Each line is specified by a pair of points.
Definition: TGWin32.cxx:6524
char ** ListFonts(const char *fontname, Int_t max, Int_t &count)
Return list of font names matching &quot;fontname&quot;.
Definition: TGWin32.cxx:6983
float ymax
Definition: THbookFile.cxx:93
Bool_t AllocColor(GdkColormap *cmap, GdkColor *color)
Allocate color in colormap.
Definition: TGWin32.cxx:1163
void SetClipOFF(Int_t wid)
Turn off the clipping for the window wid.
Definition: TGWin32.cxx:2899
void SetWindowBackgroundPixmap(Window_t id, Pixmap_t pxm)
Set pixmap as window background.
Definition: TGWin32.cxx:4546
EMouseButton
Definition: GuiTypes.h:215
void MapModifierState(UInt_t &state, UInt_t &xstate, Bool_t tox=kTRUE)
Map modifier key state to or from X.
Definition: TGWin32.cxx:5635
void FreeFontNames(char **fontlist)
Frees the specified the array of strings &quot;fontlist&quot;.
Definition: TGWin32.cxx:7007
TRandom2 r(17)
GdkVisual * fVisual
Definition: TGWin32.h:115
XPoint xy[kMAXMK]
Definition: TGX11.cxx:122
void DrawBox(Int_t x1, Int_t y1, Int_t x2, Int_t y2, EBoxMode mode)
Draw a box.
Definition: TGWin32.cxx:1662
Bool_t SetSelectionOwner(Window_t, Atom_t &)
Assigns owner of Clipboard.
Definition: TGWin32.cxx:7433
Bool_t fFillStyleModified
Definition: TGWin32.h:137
Handle_t Visual_t
Definition: GuiTypes.h:29
Bool_t IsCmdThread() const
returns kTRUE if we are inside cmd/server thread
Definition: TGWin32.cxx:887
Float_t fCharacterUpX
Character Up vector along X.
Definition: TGWin32.h:123
unsigned int UInt_t
Definition: RtypesCore.h:42
void SetCharacterUp(Float_t chupx, Float_t chupy)
Set character up vector.
Definition: TGWin32.cxx:2870
void ChangeActivePointerGrab(Window_t, UInt_t, Cursor_t)
Changes the active cursor of the specified window.
Definition: TGWin32.cxx:7396
void MakeOpaqueColors(Int_t percent, ULong_t *orgcolors, Int_t ncolors)
Get RGB values for orgcolors, add percent neutral to the RGB and allocate new_colors.
Definition: TGWin32.cxx:3771
short Short_t
Definition: RtypesCore.h:35
void ClearWindow()
Clear current window.
Definition: TGWin32.cxx:1573
float xmax
Definition: THbookFile.cxx:93
GdkImage * GetBackground(Int_t x, Int_t y, UInt_t w, UInt_t h)
Get the background of the current window in an XImage.
Definition: TGWin32.cxx:1386
void QueryColors(GdkColormap *cmap, GdkColor *colors, Int_t ncolors)
Returns the current RGB value for the pixel in the XColor structure.
Definition: TGWin32.cxx:1180
void SetTextColor(Color_t cindex)
Set color index for text.
Definition: TGWin32.cxx:3943
void DrawLine(Int_t x1, Int_t y1, Int_t x2, Int_t y2)
Draw a line.
Definition: TGWin32.cxx:1770
GdkCursor * fCursors[kNumCursors]
List of cursors.
Definition: TGWin32.h:89
void DestroySubwindows(Window_t id)
Destroy all internal subwindows.
Definition: TGWin32.cxx:4433
void GetRegionBox(Region_t reg, Rectangle_t *)
Return smallest enclosing rectangle.
Definition: TGWin32.cxx:6970
void Bell(Int_t percent)
Sets the sound bell. Percent is loudness from -100% to 100%.
Definition: TGWin32.cxx:6059
void RemoveWindow(ULong_t qwid)
Remove a window created by Qt (like CloseWindow1()).
Definition: TGWin32.cxx:7279
void SetMarkerStyle(Style_t markerstyle)
Set marker style.
Definition: TGWin32.cxx:3409
Int_t GetDoubleBuffer(Int_t wid)
Query the double buffer value for the window wid.
Definition: TGWin32.cxx:1977
void MapEvent(Event_t &ev, GdkEvent &xev, Bool_t tox=kTRUE)
Map Event_t structure to gdk_event structure.
Definition: TGWin32.cxx:5691
Handle_t Colormap_t
Definition: GuiTypes.h:34
short Width_t
Definition: RtypesCore.h:78
Cursor_t CreateCursor(ECursor cursor)
Create cursor handle (just return cursor from cursor pool fCursors).
Definition: TGWin32.cxx:5290
void ChangeWindowAttributes(Window_t id, SetWindowAttributes_t *attr)
Change window attributes.
Definition: TGWin32.cxx:6082
void LookupString(Event_t *event, char *buf, Int_t buflen, UInt_t &keysym)
Convert the keycode from the event structure to a key symbol (according to the modifiers specified in...
Definition: TGWin32.cxx:6612
void DestroyWindow(Window_t id)
Destroy window.
Definition: TGWin32.cxx:4420
long Long_t
Definition: RtypesCore.h:50
Color * colors
Definition: X3DBuffer.c:19
void SetTextMagnitude(Float_t mgn=1)
Sets the current text magnification factor to &quot;mgn&quot;.
Definition: TGWin32.h:226
FontH_t GetFontHandle(FontStruct_t fs)
Return handle to font described by font structure.
Definition: TGWin32.cxx:5157
void DrawPolyMarker(Int_t n, TPoint *xy)
Draw n markers with the current attributes at position x, y.
Definition: TGWin32.cxx:1854
void ImgPickPalette(GdkImage *image, Int_t &ncol, Int_t *&R, Int_t *&G, Int_t *&B)
Returns in R G B the ncol colors of the palette used by the image.
Definition: TGWin32.cxx:4075
void RemovePixmap(GdkDrawable *pix)
Remove the pixmap pix.
Definition: TGWin32.cxx:2280
void FillRectangle(Drawable_t id, GContext_t gc, Int_t x, Int_t y, UInt_t w, UInt_t h)
Draw a filled rectangle. Filling is done according to the gc.
Definition: TGWin32.cxx:6502
void DrawString(Drawable_t id, GContext_t gc, Int_t x, Int_t y, const char *s, Int_t len)
Draw a string using a specific graphics context in position (x,y).
Definition: TGWin32.cxx:6416
static const double x1[5]
Int_t fDepth
Number of color planes.
Definition: TGWin32.h:126
void WritePixmap(Int_t wid, UInt_t w, UInt_t h, char *pxname)
Write the pixmap wid in the bitmap file pxname.
Definition: TGWin32.cxx:4014
void ChangeProperties(Window_t id, Atom_t property, Atom_t type, Int_t format, UChar_t *data, Int_t len)
Put data into Clipboard.
Definition: TGWin32.cxx:7450
Int_t GetScreen() const
Returns screen number.
Definition: TGWin32.h:260
void DrawRectangle(Drawable_t id, GContext_t gc, Int_t x, Int_t y, UInt_t w, UInt_t h)
Draw a rectangle outline.
Definition: TGWin32.cxx:6513
void SetInputFocus(Window_t id)
Set keyboard input focus to window id.
Definition: TGWin32.cxx:6559
Bool_t GUIThreadMessageFunc(MSG *msg)
Message processing function for the GUI thread.
Definition: TGWin32.cxx:846
TText * text
Bool_t EqualRegion(Region_t rega, Region_t regb)
Returns true if two regions are equal.
Definition: TGWin32.cxx:6962
void SetWMPosition(Window_t id, Int_t x, Int_t y)
Tells the window manager the desired position [x,y] of window &quot;id&quot;.
Definition: TGWin32.cxx:6337
Float_t fCharacterUpY
Character Up vector along Y.
Definition: TGWin32.h:124
const int kNumCursors
Definition: TVirtualX.h:55
void ClearArea(Window_t id, Int_t x, Int_t y, UInt_t w, UInt_t h)
Clear a window area to the bakcground color.
Definition: TGWin32.cxx:6150
Pixmap_t CreateBitmap(Drawable_t id, const char *bitmap, UInt_t width, UInt_t height)
Create a bitmap (i.e. pixmap with depth 1) from the bitmap data.
Definition: TGWin32.cxx:5337
int type
Definition: TGX11.cxx:120
void WMDeleteNotify(Window_t id)
Tell WM to send message when window is closed via WM.
Definition: TGWin32.cxx:6160
Int_t RequestString(Int_t x, Int_t y, char *text)
Request a string.
Definition: TGWin32.cxx:2466
unsigned long ULong_t
Definition: RtypesCore.h:51
TGWin32()
Default constructor.
Definition: TGWin32.cxx:757
TCanvas * style()
Definition: style.C:1
Double_t y[n]
Definition: legend1.C:17
void MapSetWindowAttributes(SetWindowAttributes_t *attr, ULong_t &xmask, GdkWindowAttr &xattr)
Map a SetWindowAttributes_t to a GdkWindowAttr structure.
Definition: TGWin32.cxx:4740
void SelectInput(Window_t id, UInt_t evmask)
Defines which input events the window is interested in.
Definition: TGWin32.cxx:6538
GdkColormap * fColormap
Default colormap, 0 if b/w.
Definition: TGWin32.h:116
Window_t CreateWindow(Window_t parent, Int_t x, Int_t y, UInt_t w, UInt_t h, UInt_t border, Int_t depth, UInt_t clss, void *visual, SetWindowAttributes_t *attr, UInt_t wtype)
Return handle to newly created gdk window.
Definition: TGWin32.cxx:4556
void GetGCValues(GContext_t gc, GCValues_t &gval)
Get current values from graphics context gc.
Definition: TGWin32.cxx:6450
Bool_t fMarkerStyleModified
Definition: TGWin32.h:140
void PutImage(Int_t offset, Int_t itran, Int_t x0, Int_t y0, Int_t nx, Int_t ny, Int_t xmin, Int_t ymin, Int_t xmax, Int_t ymax, UChar_t *image, Drawable_t id)
Draw image.
Definition: TGWin32.cxx:4200
void SetWMTransientHint(Window_t id, Window_t main_id)
Tell window manager that window is a transient window of gdk_parent_root.
Definition: TGWin32.cxx:6406
void MapWindow(Window_t id)
Map window on screen.
Definition: TGWin32.cxx:4357
void UnionRegion(Region_t rega, Region_t regb, Region_t result)
Compute the union of rega and regb and return result region.
Definition: TGWin32.cxx:6911
void SetIconPixmap(Window_t id, Pixmap_t pic)
Set pixmap the WM can use when the window is iconized.
Definition: TGWin32.cxx:6274
#define org(otri, vertexptr)
Definition: triangle.c:1037
Mother of all ROOT objects.
Definition: TObject.h:37
void GetFontProperties(FontStruct_t font, Int_t &max_ascent, Int_t &max_descent)
Return some font properties.
Definition: TGWin32.cxx:6438
Int_t InitWindow(ULong_t window)
Open window and return window number.
Definition: TGWin32.cxx:2162
Int_t fMaxNumberOfWindows
Maximum number of windows.
Definition: TGWin32.h:86
void DeleteFont(FontStruct_t fs)
Explicitely delete font structure obtained with LoadQueryFont().
Definition: TGWin32.cxx:5168
Handle_t Window_t
Definition: GuiTypes.h:30
void UpdateMarkerStyle()
Definition: TGWin32.cxx:3419
Window_t GetCurrentWindow() const
Return current window pointer. Protected method used by TGWin32TTF.
Definition: TGWin32.cxx:1955
GdkColor color
Definition: TGWin32.h:64
Colormap_t GetColormap() const
Returns handle to colormap.
Definition: TGWin32.h:262
Window_t GetWindowID(Int_t wid)
Return the X11 window identifier.
Definition: TGWin32.cxx:2077
unsigned char * GetColorBits(Drawable_t wid, Int_t x, Int_t y, UInt_t width, UInt_t height)
Gets DIB bits x, y, width, height - position of bitmap returns a pointer on bitmap bits array in form...
Definition: TGWin32.cxx:7091
void DestroyRegion(Region_t reg)
Destroy region.
Definition: TGWin32.cxx:6879
Bool_t EmptyRegion(Region_t reg)
Return true if the region is empty.
Definition: TGWin32.cxx:6946
void GetWindowSize(Drawable_t id, Int_t &x, Int_t &y, UInt_t &w, UInt_t &h)
Return geometry of window (should be called GetGeometry but signature already used).
Definition: TGWin32.cxx:6728
void MoveResizeWindow(Window_t id, Int_t x, Int_t y, UInt_t w, UInt_t h)
Move and resize a window.
Definition: TGWin32.cxx:4484
Int_t GetDepth() const
Get maximum number of planes.
Definition: TGWin32.cxx:5091
void ResizeWindow(Int_t wid)
Resize the current window if necessary.
Definition: TGWin32.cxx:2791
Int_t fScreenNumber
Screen number.
Definition: TGWin32.h:117
Region_t PolygonRegion(Point_t *points, Int_t np, Bool_t winding)
Create region for the polygon defined by the points array.
Definition: TGWin32.cxx:6901
#define dest(otri, vertexptr)
Definition: triangle.c:1040
Window_t GetPrimarySelectionOwner()
Returns the window id of the current owner of the primary selection.
Definition: TGWin32.cxx:6571
Int_t AddPixmap(ULong_t pix, UInt_t w, UInt_t h)
register pixmap created by TGWin32GLManager
Definition: TGWin32.cxx:7188
Handle_t Region_t
Definition: GuiTypes.h:33
void SetForeground(GContext_t gc, ULong_t foreground)
Set foreground color in graphics context (shortcut for ChangeGC with only foreground mask set)...
Definition: TGWin32.cxx:6824
Handle_t Pixmap_t
Definition: GuiTypes.h:31
void Sync(Int_t mode)
Set synchronisation on or off.
Definition: TGWin32.cxx:3961
Int_t FindColor(ULong_t pixel, ULong_t *orgcolors, Int_t ncolors)
Returns index in orgcolors (and new_colors) for pixel.
Definition: TGWin32.cxx:3831
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
Definition: TRolke.cxx:630
void SubtractRegion(Region_t rega, Region_t regb, Region_t result)
Subtract rega from regb.
Definition: TGWin32.cxx:6929
TExMap * fColors
Hash list of colors.
Definition: TGWin32.h:88
Bool_t fDefined
true if pixel value is defined
Definition: TGWin32.h:65
void NextEvent(Event_t &event)
Copies first pending event from event queue to Event_t structure and removes event from queue...
Definition: TGWin32.cxx:5616
void ConvertPrimarySelection(Window_t id, Atom_t clipboard, Time_t when)
XConvertSelection() causes a SelectionRequest event to be sent to the current primary selection owner...
Definition: TGWin32.cxx:6598
void UnionRectWithRegion(Rectangle_t *rect, Region_t src, Region_t dest)
Union of rectangle with a region.
Definition: TGWin32.cxx:6887
void SetClassHints(Window_t id, char *className, char *resourceName)
Set the windows class and resource name.
Definition: TGWin32.cxx:6286
double result[121]
void MapCursor(ECursor cursor, Int_t &xcursor)
unsigned char UChar_t
Definition: RtypesCore.h:34
Int_t fBlueShift
Bits to left shift blue.
Definition: TGWin32.h:132
void UpdateWindow(Int_t mode)
Update display.
Definition: TGWin32.cxx:3974
void SetClipRegion(Int_t wid, Int_t x, Int_t y, UInt_t w, UInt_t h)
Set clipping region for the window wid.
Definition: TGWin32.cxx:2917
Drawable_t CreateImage(UInt_t width, UInt_t height)
Allocates the memory needed for an drawable.
Definition: TGWin32.cxx:7015
Int_t ResizePixmap(Int_t wid, UInt_t w, UInt_t h)
Resize a pixmap.
Definition: TGWin32.cxx:2743
FontStruct_t GetFontStruct(FontH_t fh)
Retrieve associated font structure once we have the font handle.
Definition: TGWin32.cxx:6464
const Bool_t kTRUE
Definition: Rtypes.h:91
void SetTypeList(Window_t win, Atom_t prop, Atom_t *typelist)
Add the list of drag and drop types to the Window win.
Definition: TGWin32.cxx:7475
Atom_t InternAtom(const char *atom_name, Bool_t only_if_exist)
Return atom handle for atom_name.
Definition: TGWin32.cxx:5101
Visual_t GetVisual() const
Returns handle to visual.
Definition: TGWin32.h:259
void SetKeyAutoRepeat(Bool_t on=kTRUE)
Turn key auto repeat on or off.
Definition: TGWin32.cxx:6175
void QueryColor(Colormap_t cmap, ColorStruct_t &color)
Fill in the primary color components for a specific pixel value.
Definition: TGWin32.cxx:5524
const Int_t n
Definition: legend1.C:16
void TranslateCoordinates(Window_t src, Window_t dest, Int_t src_x, Int_t src_y, Int_t &dest_x, Int_t &dest_y, Window_t &child)
TranslateCoordinates translates coordinates from the frame of reference of one window to another...
Definition: TGWin32.cxx:6697
TRandom3 R
a TMatrixD.
Definition: testIO.cxx:28
TObject * fRefreshTimer
TGWin32RefreshTimer for GUI thread message handler.
Definition: TGWin32.h:134
void SetTextAlign(Short_t talign=11)
Set text alignment.
Definition: TGWin32.cxx:3883
char name[80]
Definition: TGX11.cxx:109
This class stores a (key,value) pair using an external hash.
Definition: TExMap.h:35
void CopyArea(Drawable_t src, Drawable_t dest, GContext_t gc, Int_t src_x, Int_t src_y, UInt_t width, UInt_t height, Int_t dest_x, Int_t dest_y)
Copy a drawable (i.e.
Definition: TGWin32.cxx:6069
virtual void GetTextExtent(UInt_t &, UInt_t &, wchar_t *)
Returns the size of the specified character string &quot;mess&quot;.
Definition: TGWin32.h:189
void DeleteGC(GContext_t gc)
Explicitely delete a graphics context.
Definition: TGWin32.cxx:5282
void SetPrimarySelectionOwner(Window_t id)
Makes the window id the current owner of the primary selection.
Definition: TGWin32.cxx:6580
void IconifyWindow(Window_t id)
Iconify the window.
Definition: TGWin32.cxx:4508
ULong_t Handle_t
Definition: GuiTypes.h:27
void SetRGB(Int_t cindex, Float_t r, Float_t g, Float_t b)
Set color intensities for given color index.
Definition: TGWin32.cxx:3846