Logo ROOT  
Reference Guide
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 #include "TVirtualX.h"
17 
18 #include "TTF.h"
19 
20 
21 #ifndef __CLING__
22 
23 #include "Windows4Root.h"
24 #include "gdk/gdk.h"
25 #include "gdk/win32/gdkwin32.h"
26 
27 #else
28 
29 typedef unsigned long DWORD;
30 typedef void* HANDLE;
31 
32 typedef unsigned long XID;
33 typedef XID GdkDrawable;
34 typedef XID GdkCursor;
35 typedef XID GdkColormap;
36 typedef XID GdkWindow;
37 typedef XID GdkVisual;
38 
39 struct GdkGC;
40 struct GdkGCValues;
41 struct GdkWindowAttr;
42 struct GdkColor { int pixel,red,green,blue; };
43 struct GdkEvent;
44 struct GdkImage;
45 struct GdkPoint;
46 struct GdkRectangle;
47 
48 #endif
49 
50 typedef unsigned long KeySym;
51 
52 //#define None 0 /* universal null resource or null atom */
53 
54 struct XWindow_t;
55 
56 struct XColor_t {
57  GdkColor color;
58  Bool_t fDefined; // true if pixel value is defined
59  XColor_t() { color.pixel = 0; color.red = color.green = color.blue = 0; fDefined = kFALSE; }
60 };
61 
62 class TExMap;
63 
64 class TGWin32 : public TVirtualX {
65 
66 private:
69 
70  FT_Vector fAlign; ///< alignment vector
71 
72  void Align(void);
73  void DrawImage(FT_Bitmap *source, ULong_t fore, ULong_t back, GdkImage *xim,
74  Int_t bx, Int_t by);
76  GdkImage *GetBackground(Int_t x, Int_t y, UInt_t w, UInt_t h);
77  void RenderString(Int_t x, Int_t y, ETextMode mode);
78 
79  Int_t fMaxNumberOfWindows; ///< Maximum number of windows
80  XWindow_t *fWindows; ///< List of windows
81  TExMap *fColors; ///< Hash list of colors
82  GdkCursor *fCursors[kNumCursors]; ///< List of cursors
83 
84  void CloseWindow1();
85  void PutImage(Int_t offset, Int_t itran, Int_t x0, Int_t y0, Int_t nx,
87  UChar_t *image, Drawable_t id);
88  void RemovePixmap(GdkDrawable *pix);
89  void SetColor(GdkGC *gc, Int_t ci);
90  void SetInput(Int_t inp);
91  void SetMarkerType(Int_t type, Int_t n, GdkPoint *xy);
92  void MakeOpaqueColors(Int_t percent, ULong_t *orgcolors, Int_t ncolors);
93  Int_t FindColor(ULong_t pixel, ULong_t *orgcolors, Int_t ncolors);
94  void ImgPickPalette(GdkImage *image, Int_t &ncol, Int_t *&R, Int_t *&G, Int_t *&B);
95 
96  //---- Private methods used for GUI ----
97  void MapGCValues(GCValues_t &gval, ULong_t &xmask, GdkGCValues &xgval, Bool_t tox = kTRUE);
99  ULong_t &xmask, GdkWindowAttr &xattr);
100  void MapCursor(ECursor cursor, Int_t &xcursor);
101  void MapColorStruct(ColorStruct_t *color, GdkColor &xcolor);
102  void MapModifierState(UInt_t &state, UInt_t &xstate, Bool_t tox = kTRUE);
103  void MapEvent(Event_t &ev, GdkEvent &xev, Bool_t tox = kTRUE);
104  void MapEventMask(UInt_t &emask, UInt_t &xemask, Bool_t tox = kTRUE);
105  void MapKeySym(UInt_t &keysym, UInt_t &xkeysym, Bool_t tox = kTRUE);
106 
107 protected:
108  GdkVisual *fVisual;
109  GdkColormap *fColormap; ///< Default colormap, 0 if b/w
110  Int_t fScreenNumber; ///< Screen number
111  Bool_t fHasTTFonts; ///< True when TrueType fonts are used
112  Bool_t fUseSysPointers; ///< True when using system mouse pointers
113  Int_t fTextAlignH; ///< Text Alignment Horizontal
114  Int_t fTextAlignV; ///< Text Alignment Vertical
115  Int_t fTextAlign; ///< Text alignment (set in SetTextAlign)
116  Float_t fCharacterUpX; ///< Character Up vector along X
117  Float_t fCharacterUpY; ///< Character Up vector along Y
118  Float_t fTextMagnitude; ///< Text Magnitude
119  Int_t fDepth; ///< Number of color planes
120  Int_t fRedDiv; ///< Red value divider, -1 if no TrueColor visual
121  Int_t fGreenDiv; ///< Green value divider
122  Int_t fBlueDiv; ///< Blue value divider
123  Int_t fRedShift; ///< Bits to left shift red, -1 if no TrueColor visual
124  Int_t fGreenShift; ///< Bits to left shift green
125  Int_t fBlueShift; ///< Bits to left shift blue
126  Handle_t fXEvent; ///< Current native (GDK) event
127  TObject* fRefreshTimer; ///< TGWin32RefreshTimer for GUI thread message handler
128 
132  Bool_t fPenModified; ///< line syle || width modified
135 
136  void UpdateFillColor();
137  void UpdateFillStyle();
138  void UpdateLineColor();
139  void UpdateMarkerStyle();
140  void UpdateMarkerColor();
141  void UpdateLineStyle();
142 
143  // needed by TGWin32TTF
144  Bool_t AllocColor(GdkColormap *cmap, GdkColor *color);
145  void QueryColors(GdkColormap *cmap, GdkColor *colors, Int_t ncolors);
146  GdkGC *GetGC(Int_t which) const;
147  XColor_t &GetColor(Int_t cid);
148 
149 public:
150  TGWin32();
151  TGWin32(const char *name, const char *title);
152  virtual ~TGWin32();
153 
154  void DrawText(Int_t x, Int_t y, Float_t angle, Float_t mgn,
155  const char *text, ETextMode mode);
156  void DrawText(Int_t x, Int_t y, Float_t angle, Float_t mgn,
157  const wchar_t *text, ETextMode mode);
158  void SetTextFont(Font_t fontnumber);
159  Int_t SetTextFont(char *fontname, ETextSetMode mode);
160  void SetTextSize(Float_t textsize);
161 
162  Bool_t Init(void *display=0);
163  //UInt_t ExecCommand(TGWin32Command *);
164  void ClearWindow();
165  void ClosePixmap();
166  void CloseWindow();
167  void CopyPixmap(Int_t wid, Int_t xpos, Int_t ypos);
168  void DrawBox(Int_t x1, Int_t y1, Int_t x2, Int_t y2, EBoxMode mode);
169  void DrawCellArray(Int_t x1, Int_t y1, Int_t x2, Int_t y2, Int_t nx, Int_t ny, Int_t *ic);
170  void DrawFillArea(Int_t n, TPoint *xy);
171  void DrawLine(Int_t x1, Int_t y1, Int_t x2, Int_t y2);
172  void DrawPolyLine(Int_t n, TPoint *xy);
173  void DrawPolyMarker(Int_t n, TPoint *xy);
174  void GetCharacterUp(Float_t &chupx, Float_t &chupy);
176  void GetGeometry(Int_t wid, Int_t &x, Int_t &y, UInt_t &w, UInt_t &h);
177  const char *DisplayName(const char *dpyName = 0);
178  ULong_t GetPixel(Color_t cindex);
179  void GetPlanes(Int_t &nplanes);
180  void GetRGB(Int_t index, Float_t &r, Float_t &g, Float_t &b);
181  virtual void GetTextExtent(UInt_t &w, UInt_t &h, char *mess);
182  virtual void GetTextExtent(UInt_t &, UInt_t &, wchar_t *){}
185  Bool_t HasTTFonts() const { return fHasTTFonts; }
186  Int_t InitWindow(ULong_t window);
188  void MoveWindow(Int_t wid, Int_t x, Int_t y);
190  void QueryPointer(Int_t &ix, Int_t &iy);
191  Pixmap_t ReadGIF(Int_t x0, Int_t y0, const char *file, Window_t id=0);
192  Int_t RequestLocator(Int_t mode, Int_t ctyp, Int_t &x, Int_t &y);
193  Int_t RequestString(Int_t x, Int_t y, char *text);
194  void RescaleWindow(Int_t wid, UInt_t w, UInt_t h);
196  void ResizeWindow(Int_t wid);
197  void SelectWindow(Int_t wid);
198  void SetCharacterUp(Float_t chupx, Float_t chupy);
199  void SetClipOFF(Int_t wid);
200  void SetClipRegion(Int_t wid, Int_t x, Int_t y, UInt_t w, UInt_t h);
201  void SetCursor(Int_t win, ECursor cursor);
202  void SetDoubleBuffer(Int_t wid, Int_t mode);
203  void SetDoubleBufferOFF();
204  void SetDoubleBufferON();
205  void SetDrawMode(EDrawMode mode);
206  void SetFillColor(Color_t cindex);
207  void SetFillStyle(Style_t style);
208  void SetLineColor(Color_t cindex);
209  void SetLineType(Int_t n, Int_t *dash);
210  void SetLineStyle(Style_t linestyle);
211  void SetLineWidth(Width_t width);
212  void SetMarkerColor(Color_t cindex);
213  void SetMarkerSize(Float_t markersize);
214  void SetMarkerStyle(Style_t markerstyle);
215  void SetOpacity(Int_t percent);
216  void SetRGB(Int_t cindex, Float_t r, Float_t g, Float_t b);
217  void SetTextAlign(Short_t talign=11);
218  void SetTextColor(Color_t cindex);
220  void Sync(Int_t mode);
221  void UpdateWindow(Int_t mode);
222  void Warp(Int_t ix, Int_t iy, Window_t id = 0);
223  Int_t WriteGIF(char *name);
224  void WritePixmap(Int_t wid, UInt_t w, UInt_t h, char *pxname);
225  Window_t GetCurrentWindow() const;
226 
227  //---- Methods used for GUI -----
229  void MapWindow(Window_t id);
230  void MapSubwindows(Window_t id);
231  void MapRaised(Window_t id);
232  void UnmapWindow(Window_t id);
233  void DestroyWindow(Window_t id);
234  void DestroySubwindows(Window_t id);
235  void RaiseWindow(Window_t id);
236  void LowerWindow(Window_t id);
237  void MoveWindow(Window_t id, Int_t x, Int_t y);
239  void ResizeWindow(Window_t id, UInt_t w, UInt_t h);
240  void IconifyWindow(Window_t id);
241  void ReparentWindow(Window_t id, Window_t pid, Int_t x, Int_t y);
242  void SetWindowBackground(Window_t id, ULong_t color);
245  UInt_t w, UInt_t h, UInt_t border,
246  Int_t depth, UInt_t clss,
247  void *visual, SetWindowAttributes_t *attr,
248  UInt_t wtype);
249  Int_t OpenDisplay(const char *dpyName=0);
250  void CloseDisplay();
251  Display_t GetDisplay() const;
252  Visual_t GetVisual() const { return 0; }
253  Int_t GetScreen() const { return 0; }
254  Int_t GetDepth() const;
256  Atom_t InternAtom(const char *atom_name, Bool_t only_if_exist);
258  Window_t GetParent(Window_t id) const;
259  FontStruct_t LoadQueryFont(const char *font_name);
261  void DeleteFont(FontStruct_t fs);
263  void ChangeGC(GContext_t gc, GCValues_t *gval);
264  void CopyGC(GContext_t org, GContext_t dest, Mask_t mask);
265  void DeleteGC(GContext_t gc);
266  Cursor_t CreateCursor(ECursor cursor);
267  void SetCursor(Window_t id, Cursor_t curid);
269  Pixmap_t CreatePixmap(Drawable_t id, const char *bitmap, UInt_t width,
270  UInt_t height, ULong_t forecolor, ULong_t backcolor,
271  Int_t depth);
272  Pixmap_t CreatePixmapFromData(unsigned char *bits, UInt_t width, UInt_t height);
273  Pixmap_t CreateBitmap(Drawable_t id, const char *bitmap,
274  UInt_t width, UInt_t height);
275  void DeletePixmap(Pixmap_t pmap);
276  Bool_t CreatePictureFromFile(Drawable_t id, const char *filename,
277  Pixmap_t &pict, Pixmap_t &pict_mask,
278  PictureAttributes_t &attr);
279  Bool_t CreatePictureFromData(Drawable_t id, char **data,
280  Pixmap_t &pict, Pixmap_t &pict_mask,
281  PictureAttributes_t &attr);
282  Bool_t ReadPictureDataFromFile(const char *filename, char ***ret_data);
283  void DeletePictureData(void *data);
284  void SetDashes(GContext_t gc, Int_t offset, const char *dash_list, Int_t n);
285  Bool_t ParseColor(Colormap_t cmap, const char *cname, ColorStruct_t &color);
287  void QueryColor(Colormap_t cmap, ColorStruct_t &color);
288  void FreeColor(Colormap_t cmap, ULong_t pixel);
290  void NextEvent(Event_t &event);
291  void Bell(Int_t percent);
293  Int_t src_x, Int_t src_y, UInt_t width, UInt_t height,
294  Int_t dest_x, Int_t dest_y);
296  void ChangeProperty(Window_t id, Atom_t property, Atom_t type,
297  UChar_t *data, Int_t len);
298  void DrawLine(Drawable_t id, GContext_t gc, Int_t x1, Int_t y1, Int_t x2, Int_t y2);
299  void ClearArea(Window_t id, Int_t x, Int_t y, UInt_t w, UInt_t h);
301  void SendEvent(Window_t id, Event_t *ev);
302  void WMDeleteNotify(Window_t id);
303  void SetKeyAutoRepeat(Bool_t on = kTRUE);
304  void GrabKey(Window_t id, Int_t keycode, UInt_t modifier, Bool_t grab = kTRUE);
305  void GrabButton(Window_t id, EMouseButton button, UInt_t modifier,
306  UInt_t evmask, Window_t confine, Cursor_t cursor,
307  Bool_t grab = kTRUE);
308  void GrabPointer(Window_t id, UInt_t evmask, Window_t confine,
309  Cursor_t cursor, Bool_t grab = kTRUE,
310  Bool_t owner_events = kTRUE);
311  void SetWindowName(Window_t id, char *name);
312  void SetIconName(Window_t id, char *name);
313  void SetIconPixmap(Window_t id, Pixmap_t pic);
314  void SetClassHints(Window_t id, char *className, char *resourceName);
315  void SetMWMHints(Window_t id, UInt_t value, UInt_t funcs, UInt_t input);
316  void SetWMPosition(Window_t id, Int_t x, Int_t y);
317  void SetWMSize(Window_t id, UInt_t w, UInt_t h);
318  void SetWMSizeHints(Window_t id, UInt_t wmin, UInt_t hmin,
319  UInt_t wmax, UInt_t hmax, UInt_t winc, UInt_t hinc);
320  void SetWMState(Window_t id, EInitialState state);
321  void SetWMTransientHint(Window_t id, Window_t main_id);
322  void DrawString(Drawable_t id, GContext_t gc, Int_t x, Int_t y,
323  const char *s, Int_t len);
324  Int_t TextWidth(FontStruct_t font, const char *s, Int_t len);
325  void GetFontProperties(FontStruct_t font, Int_t &max_ascent, Int_t &max_descent);
326  void GetGCValues(GContext_t gc, GCValues_t &gval);
328  void FreeFontStruct(FontStruct_t fs);
329  void ClearWindow(Window_t id);
330  Int_t KeysymToKeycode(UInt_t keysym);
332  UInt_t w, UInt_t h);
334  UInt_t w, UInt_t h);
335  void DrawSegments(Drawable_t id, GContext_t gc, Segment_t *seg, Int_t nseg);
336  void SelectInput(Window_t id, UInt_t evmask);
338  void SetInputFocus(Window_t id);
341  void ConvertPrimarySelection(Window_t id, Atom_t clipboard, Time_t when);
342  void LookupString(Event_t *event, char *buf, Int_t buflen, UInt_t &keysym);
343  void GetPasteBuffer(Window_t id, Atom_t atom, TString &text,
344  Int_t &nchar, Bool_t del);
346  Int_t src_y, Int_t &dest_x, Int_t &dest_y, Window_t &child);
347  void GetWindowSize(Drawable_t id, Int_t &x, Int_t &y, UInt_t &w, UInt_t &h);
348  void FillPolygon(Window_t id, GContext_t gc, Point_t *points, Int_t npnt);
349  void QueryPointer(Window_t id, Window_t &rootw, Window_t &childw,
350  Int_t &root_x, Int_t &root_y, Int_t &win_x,
351  Int_t &win_y, UInt_t &mask);
352  void SetForeground(GContext_t gc, ULong_t foreground);
354  void Update(Int_t mode = 0);
356  void DestroyRegion(Region_t reg);
359  void UnionRegion(Region_t rega, Region_t regb, Region_t result);
360  void IntersectRegion(Region_t rega, Region_t regb, Region_t result);
361  void SubtractRegion(Region_t rega, Region_t regb, Region_t result);
362  void XorRegion(Region_t rega, Region_t regb, Region_t result);
365  Bool_t EqualRegion(Region_t rega, Region_t regb);
366  void GetRegionBox(Region_t reg, Rectangle_t *);
367  char **ListFonts(const char *fontname, Int_t max, Int_t &count);
368  void FreeFontNames(char **fontlist);
370  void GetImageSize(Drawable_t id, UInt_t &width, UInt_t &height);
371  void PutPixel(Drawable_t id, Int_t x, Int_t y, ULong_t pixel);
372  void PutImage(Drawable_t id, GContext_t gc, Drawable_t img,
373  Int_t dx, Int_t dy, Int_t x, Int_t y,
374  UInt_t w, UInt_t h);
375  void DeleteImage(Drawable_t img);
376  unsigned char *GetColorBits(Drawable_t wid, Int_t x, Int_t y, UInt_t width, UInt_t height);
377  Int_t AddWindow(ULong_t qwid, UInt_t w, UInt_t h);
378  void RemoveWindow(ULong_t qwid);
379  void ShapeCombineMask(Window_t id, Int_t x, Int_t y, Pixmap_t mask);
380  UInt_t ScreenWidthMM() const;
381 
384  Atom_t*, Int_t*, ULong_t*, ULong_t*, unsigned char**);
388  void ChangeProperties(Window_t id, Atom_t property, Atom_t type,
389  Int_t format, UChar_t *data, Int_t len);
390  void SetDNDAware(Window_t win, Atom_t *typelist);
391  void SetTypeList(Window_t win, Atom_t prop, Atom_t *typelist);
392  Window_t FindRWindow(Window_t win, Window_t dragwin, Window_t input, int x, int y, int maxd);
393  Bool_t IsDNDAware(Window_t win, Atom_t *typelist);
394 
395  Bool_t IsCmdThread() const;
396  void SetUserThreadId(ULong_t id);
397 
398  static void Lock();
399  static void Unlock();
400 
401  ClassDef(TGWin32,0) //Interface to Win32
402 };
403 
404 #endif
TGWin32::fHasTTFonts
Bool_t fHasTTFonts
True when TrueType fonts are used.
Definition: TGWin32.h:111
TGWin32::DrawLine
void DrawLine(Int_t x1, Int_t y1, Int_t x2, Int_t y2)
Draw a line.
Definition: TGWin32.cxx:1756
TGWin32::ChangeProperties
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:7687
n
const Int_t n
Definition: legend1.C:16
TGWin32::SetSelectionOwner
Bool_t SetSelectionOwner(Window_t, Atom_t &)
Assigns owner of Clipboard.
Definition: TGWin32.cxx:7670
TGWin32::GetGC
GdkGC * GetGC(Int_t which) const
Return desired Graphics Context ("which" maps directly on gGCList[]).
Definition: TGWin32.cxx:1950
TGWin32::ShapeCombineMask
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:7553
TGWin32::SetPrimarySelectionOwner
void SetPrimarySelectionOwner(Window_t id)
Makes the window id the current owner of the primary selection.
Definition: TGWin32.cxx:6817
XColor_t::color
GdkColor color
Definition: TGWin32.h:57
TGWin32::FreeFontNames
void FreeFontNames(char **fontlist)
Frees the specified the array of strings "fontlist".
Definition: TGWin32.cxx:7244
Windows4Root.h
TGWin32::CopyArea
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:6306
TGWin32::QueryColor
void QueryColor(Colormap_t cmap, ColorStruct_t &color)
Fill in the primary color components for a specific pixel value.
Definition: TGWin32.cxx:5761
TGWin32::GetTextExtent
virtual void GetTextExtent(UInt_t &w, UInt_t &h, char *mess)
Return the size of a character string.
Definition: TGWin32.cxx:2052
TGWin32::SetFillColor
void SetFillColor(Color_t cindex)
Set color index for fill areas.
Definition: TGWin32.cxx:3121
TGWin32::GetPlanes
void GetPlanes(Int_t &nplanes)
Get maximum number of planes.
Definition: TGWin32.cxx:2024
TGWin32::fGreenShift
Int_t fGreenShift
Bits to left shift green.
Definition: TGWin32.h:124
ymax
float ymax
Definition: THbookFile.cxx:95
Region_t
Handle_t Region_t
Definition: GuiTypes.h:31
TGWin32::CloseWindow1
void CloseWindow1()
Delete current window.
Definition: TGWin32.cxx:1594
kTRUE
const Bool_t kTRUE
Definition: RtypesCore.h:91
Pixmap_t
Handle_t Pixmap_t
Definition: GuiTypes.h:29
Style_t
short Style_t
Definition: RtypesCore.h:80
TGWin32::GetWindowAttributes
void GetWindowAttributes(Window_t id, WindowAttributes_t &attr)
Get window attributes and return filled in attributes structure.
Definition: TGWin32.cxx:5279
Display_t
Handle_t Display_t
Definition: GuiTypes.h:26
TGWin32::fGreenDiv
Int_t fGreenDiv
Green value divider.
Definition: TGWin32.h:121
TGWin32::SetColor
void SetColor(GdkGC *gc, Int_t ci)
Set the foreground color in GdkGC.
Definition: TGWin32.cxx:2943
TGWin32::FindRWindow
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:7724
TGWin32::WritePixmap
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:4250
TGWin32::UpdateMarkerStyle
void UpdateMarkerStyle()
Definition: TGWin32.cxx:3404
TGWin32::DeleteGC
void DeleteGC(GContext_t gc)
Explicitely delete a graphics context.
Definition: TGWin32.cxx:5519
TGWin32::EmptyRegion
Bool_t EmptyRegion(Region_t reg)
Return true if the region is empty.
Definition: TGWin32.cxx:7183
TGWin32::FreeFontStruct
void FreeFontStruct(FontStruct_t fs)
Free font structure returned by GetFontStruct().
Definition: TGWin32.cxx:6709
TGWin32::WMDeleteNotify
void WMDeleteNotify(Window_t id)
Tell WM to send message when window is closed via WM.
Definition: TGWin32.cxx:6397
dest
#define dest(otri, vertexptr)
Definition: triangle.c:1040
TGWin32::AllocColor
Bool_t AllocColor(GdkColormap *cmap, GdkColor *color)
Allocate color in colormap.
Definition: TGWin32.cxx:1149
TGWin32::UpdateLineStyle
void UpdateLineStyle()
Update line style.
Definition: TGWin32.cxx:3288
TGWin32::fTextAlignV
Int_t fTextAlignV
Text Alignment Vertical.
Definition: TGWin32.h:114
TGWin32::~TGWin32
virtual ~TGWin32()
destructor.
Definition: TGWin32.cxx:862
TGWin32::MapSubwindows
void MapSubwindows(Window_t id)
Maps all subwindows for the specified window "id" in top-to-bottom stacking order.
Definition: TGWin32.cxx:4609
TGWin32::ResizeWindow
void ResizeWindow(Int_t wid)
Resize the current window if necessary.
Definition: TGWin32.cxx:2777
TGWin32::GetPrimarySelectionOwner
Window_t GetPrimarySelectionOwner()
Returns the window id of the current owner of the primary selection.
Definition: TGWin32.cxx:6808
ECursor
ECursor
Definition: GuiTypes.h:371
TGWin32::DeletePictureData
void DeletePictureData(void *data)
Delete picture data created by the function ReadPictureDataFromFile.
Definition: TGWin32.cxx:5678
TGWin32::AddWindow
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:7468
TGWin32::SetClassHints
void SetClassHints(Window_t id, char *className, char *resourceName)
Set the windows class and resource name.
Definition: TGWin32.cxx:6523
ColorStruct_t
Definition: GuiTypes.h:309
Rectangle_t
Definition: GuiTypes.h:360
TGWin32::ClosePixmap
void ClosePixmap()
Delete current pixmap.
Definition: TGWin32.cxx:1578
TGWin32::SetTextColor
void SetTextColor(Color_t cindex)
Set color index for text.
Definition: TGWin32.cxx:4179
TGWin32::DestroyWindow
void DestroyWindow(Window_t id)
Destroy window.
Definition: TGWin32.cxx:4657
TGWin32::SetLineColor
void SetLineColor(Color_t cindex)
Set color index for lines.
Definition: TGWin32.cxx:3219
TGWin32::fScreenNumber
Int_t fScreenNumber
Screen number.
Definition: TGWin32.h:110
FontH_t
Handle_t FontH_t
Definition: GuiTypes.h:34
TGWin32::UnionRectWithRegion
void UnionRectWithRegion(Rectangle_t *rect, Region_t src, Region_t dest)
Union of rectangle with a region.
Definition: TGWin32.cxx:7124
Point_t
Definition: GuiTypes.h:355
TGWin32::UpdateMarkerColor
void UpdateMarkerColor()
Definition: TGWin32.cxx:3348
TGWin32::UpdateWindow
void UpdateWindow(Int_t mode)
Update display.
Definition: TGWin32.cxx:4210
TGWin32::GrabKey
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:6427
FontStruct_t
Handle_t FontStruct_t
Definition: GuiTypes.h:38
TGWin32::MapModifierState
void MapModifierState(UInt_t &state, UInt_t &xstate, Bool_t tox=kTRUE)
Map modifier key state to or from X.
Definition: TGWin32.cxx:5872
r
ROOT::R::TRInterface & r
Definition: Object.C:4
TGWin32::CreatePictureFromData
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:5632
xmax
float xmax
Definition: THbookFile.cxx:95
TGWin32
This class is the basic interface to the Win32 graphics system.
Definition: TGWin32.h:64
TGWin32::fWindows
XWindow_t * fWindows
List of windows.
Definition: TGWin32.h:80
TGWin32::kNone
@ kNone
Definition: TGWin32.h:67
TGWin32::SetKeyAutoRepeat
void SetKeyAutoRepeat(Bool_t on=kTRUE)
Turn key auto repeat on or off.
Definition: TGWin32.cxx:6412
TGWin32::GetFontHandle
FontH_t GetFontHandle(FontStruct_t fs)
Return handle to font described by font structure.
Definition: TGWin32.cxx:5394
colors
Color * colors
Definition: X3DBuffer.c:21
TVirtualX
Semi-Abstract base class defining a generic interface to the underlying, low level,...
Definition: TVirtualX.h:46
TGWin32::kTRight
@ kTRight
Definition: TGWin32.h:67
TGWin32::GetColor
XColor_t & GetColor(Int_t cid)
Return reference to internal color structure associated to color index cid.
Definition: TGWin32.cxx:1928
TGWin32::SetLineType
void SetLineType(Int_t n, Int_t *dash)
Set line type.
Definition: TGWin32.cxx:3247
TGWin32::fMarkerStyleModified
Bool_t fMarkerStyleModified
Definition: TGWin32.h:133
TVirtualX::ETextSetMode
ETextSetMode
Definition: TVirtualX.h:52
GCValues_t
Definition: GuiTypes.h:223
TGWin32::TGWin32
TGWin32()
Default constructor.
Definition: TGWin32.cxx:805
TGWin32::SetDrawMode
void SetDrawMode(EDrawMode mode)
Set the drawing mode.
Definition: TGWin32.cxx:3092
TGWin32::GetPasteBuffer
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:6902
TGWin32::PutPixel
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:7270
WindowAttributes_t
Definition: GuiTypes.h:113
Float_t
float Float_t
Definition: RtypesCore.h:57
width
include TDocParser_001 C image html pict1_TDocParser_001 png width
Definition: TDocParser.cxx:121
TGWin32::SelectWindow
void SelectWindow(Int_t wid)
Select window to which subsequent output is directed.
Definition: TGWin32.cxx:2826
TGWin32::GrabPointer
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:6471
TGWin32::fTextMagnitude
Float_t fTextMagnitude
Text Magnitude.
Definition: TGWin32.h:118
TGWin32::ListFonts
char ** ListFonts(const char *fontname, Int_t max, Int_t &count)
Return list of font names matching "fontname".
Definition: TGWin32.cxx:7220
TGWin32::fTextAlign
Int_t fTextAlign
Text alignment (set in SetTextAlign)
Definition: TGWin32.h:115
TGWin32::MapSetWindowAttributes
void MapSetWindowAttributes(SetWindowAttributes_t *attr, ULong_t &xmask, GdkWindowAttr &xattr)
Map a SetWindowAttributes_t to a GdkWindowAttr structure.
Definition: TGWin32.cxx:4977
TGeant4Unit::s
static constexpr double s
Definition: TGeant4SystemOfUnits.h:162
TGWin32::UpdateFillStyle
void UpdateFillStyle()
Set fill area style index.
Definition: TGWin32.cxx:3166
Int_t
int Int_t
Definition: RtypesCore.h:45
TGWin32::SetWMTransientHint
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:6643
Font_t
short Font_t
Definition: RtypesCore.h:79
TGWin32::SelectInput
void SelectInput(Window_t id, UInt_t evmask)
Defines which input events the window is interested in.
Definition: TGWin32.cxx:6775
TGWin32::fBlueDiv
Int_t fBlueDiv
Blue value divider.
Definition: TGWin32.h:122
TGWin32::kTCenter
@ kTCenter
Definition: TGWin32.h:67
TGWin32::UnionRegion
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:7148
TGWin32::SetTextSize
void SetTextSize(Float_t textsize)
Set current text size.
Definition: TGWin32.cxx:1550
TGWin32::InitWindow
Int_t InitWindow(ULong_t window)
Open window and return window number.
Definition: TGWin32.cxx:2148
TGWin32::DrawText
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:1343
x
Double_t x[n]
Definition: legend1.C:17
XColor_t::XColor_t
XColor_t()
Definition: TGWin32.h:59
TGWin32::RequestString
Int_t RequestString(Int_t x, Int_t y, char *text)
Request a string.
Definition: TGWin32.cxx:2452
TGWin32::SetClipRectangles
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:7076
TGWin32::Update
void Update(Int_t mode=0)
Flush (mode = 0, default) or synchronize (mode = 1) X output buffer.
Definition: TGWin32.cxx:7100
TGWin32::IsCmdThread
Bool_t IsCmdThread() const
returns kTRUE if we are inside cmd/server thread
Definition: TGWin32.cxx:880
TGWin32::Init
Bool_t Init(void *display=0)
Initialize Win32 system. Returns kFALSE in case of failure.
Definition: TGWin32.cxx:948
TGWin32::CreatePixmap
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:5536
TGWin32::IconifyWindow
void IconifyWindow(Window_t id)
Iconify the window.
Definition: TGWin32.cxx:4745
TGWin32::SetRGB
void SetRGB(Int_t cindex, Float_t r, Float_t g, Float_t b)
Set color intensities for given color index.
Definition: TGWin32.cxx:4082
TVirtualX.h
TGWin32::GetFontProperties
void GetFontProperties(FontStruct_t font, Int_t &max_ascent, Int_t &max_descent)
Return some font properties.
Definition: TGWin32.cxx:6675
TGWin32::SetTextAlign
void SetTextAlign(Short_t talign=11)
Set text alignment.
Definition: TGWin32.cxx:4119
TGWin32::fCharacterUpX
Float_t fCharacterUpX
Character Up vector along X.
Definition: TGWin32.h:116
XColor_t
Description of a X11 color.
Definition: TGWin32.h:56
TGWin32::ChangeActivePointerGrab
void ChangeActivePointerGrab(Window_t, UInt_t, Cursor_t)
Changes the active cursor of the specified window.
Definition: TGWin32.cxx:7633
TGWin32::SetLineWidth
void SetLineWidth(Width_t width)
Set line width.
Definition: TGWin32.cxx:3324
EMouseButton
EMouseButton
Definition: GuiTypes.h:213
TGWin32::PolygonRegion
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:7138
TString
Basic string class.
Definition: TString.h:136
XColor_t::fDefined
Bool_t fDefined
true if pixel value is defined
Definition: TGWin32.h:58
TGWin32::SetMWMHints
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:6562
TGWin32::GrabButton
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:6446
Bool_t
bool Bool_t
Definition: RtypesCore.h:63
TGWin32::DrawSegments
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:6761
Color_t
short Color_t
Definition: RtypesCore.h:83
TGWin32::GetImageSize
void GetImageSize(Drawable_t id, UInt_t &width, UInt_t &height)
Returns the width and height of the image id.
Definition: TGWin32.cxx:7261
TGWin32::ParseColor
Bool_t ParseColor(Colormap_t cmap, const char *cname, ColorStruct_t &color)
Parse string cname containing color name, like "green" or "#00FF00".
Definition: TGWin32.cxx:5721
TGWin32::FreeColor
void FreeColor(Colormap_t cmap, ULong_t pixel)
Free color cell with specified pixel value.
Definition: TGWin32.cxx:5779
TGWin32::GetTextMagnitude
Float_t GetTextMagnitude()
Returns the current font magnification factor.
Definition: TGWin32.h:183
text
TText * text
Definition: entrylist_figure1.C:10
TGWin32::SubtractRegion
void SubtractRegion(Region_t rega, Region_t regb, Region_t result)
Subtract rega from regb.
Definition: TGWin32.cxx:7166
Visual_t
Handle_t Visual_t
Definition: GuiTypes.h:27
b
#define b(i)
Definition: RSha256.hxx:100
TGWin32::ChangeProperty
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:6364
G
#define G(x, y, z)
TGWin32::UpdateLineColor
void UpdateLineColor()
Definition: TGWin32.cxx:3230
TGWin32::kBLeft
@ kBLeft
Definition: TGWin32.h:68
bool
TGWin32::fVisual
GdkVisual * fVisual
Definition: TGWin32.h:108
TGWin32::CreateGC
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:5414
TGWin32::SetLineStyle
void SetLineStyle(Style_t linestyle)
Set line style.
Definition: TGWin32.cxx:3277
TGWin32::RemoveWindow
void RemoveWindow(ULong_t qwid)
Remove a window created by Qt (like CloseWindow1()).
Definition: TGWin32.cxx:7516
Cursor_t
Handle_t Cursor_t
Definition: GuiTypes.h:33
TGWin32::ImgPickPalette
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:4311
TGWin32::RenderString
void RenderString(Int_t x, Int_t y, ETextMode mode)
Perform the string rendering in the pad.
Definition: TGWin32.cxx:1420
TGWin32::DrawCellArray
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:1687
TGWin32::fFillColorModified
Bool_t fFillColorModified
Definition: TGWin32.h:129
x1
static const double x1[5]
Definition: RooGaussKronrodIntegrator1D.cxx:346
TGWin32::DrawPolyLine
void DrawPolyLine(Int_t n, TPoint *xy)
Draw a line through all points.
Definition: TGWin32.cxx:1784
Drawable_t
Handle_t Drawable_t
Definition: GuiTypes.h:30
xy
XPoint xy[kMAXMK]
Definition: TGX11.cxx:123
TGWin32::IsDNDAware
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:7781
TGWin32::fColormap
GdkColormap * fColormap
Default colormap, 0 if b/w.
Definition: TGWin32.h:109
TGWin32::CreateRegion
Region_t CreateRegion()
Create a new empty region.
Definition: TGWin32.cxx:7108
GContext_t
Handle_t GContext_t
Definition: GuiTypes.h:37
TGWin32::HasTTFonts
Bool_t HasTTFonts() const
Returns True when TrueType fonts are used.
Definition: TGWin32.h:185
TGWin32::SetMarkerStyle
void SetMarkerStyle(Style_t markerstyle)
Set marker style.
Definition: TGWin32.cxx:3394
TGWin32::SetDNDAware
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:7800
TGWin32::ConvertSelection
void ConvertSelection(Window_t, Atom_t &, Atom_t &, Atom_t &, Time_t &)
Get Clipboard data.
Definition: TGWin32.cxx:7646
R
#define R(a, b, c, d, e, f, g, h, i)
Definition: RSha256.hxx:110
style
TCanvas * style()
Definition: style.C:1
TGWin32::EAlign
EAlign
Definition: TGWin32.h:67
TGWin32::FillRectangle
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:6739
TGWin32::fFillStyleModified
Bool_t fFillStyleModified
Definition: TGWin32.h:130
TGWin32::MapRaised
void MapRaised(Window_t id)
Map window on screen and put on top of all windows.
Definition: TGWin32.cxx:4620
TGWin32::MapWindow
void MapWindow(Window_t id)
Map window on screen.
Definition: TGWin32.cxx:4594
TTF.h
TGWin32::SetTextFont
void SetTextFont(Font_t fontnumber)
Set specified font.
Definition: TGWin32.cxx:1526
TGWin32::PutImage
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:4436
TGWin32::SendEvent
void SendEvent(Window_t id, Event_t *ev)
Send event ev to window id.
Definition: TGWin32.cxx:5823
TGWin32::GetWindowSize
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:6965
TGWin32::FillPolygon
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:6989
TGWin32::ClearArea
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:6387
TGWin32::GetColormap
Colormap_t GetColormap() const
Returns handle to colormap.
Definition: TGWin32.h:255
TGWin32::DrawRectangle
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:6750
TVirtualX::EDrawMode
EDrawMode
Definition: TVirtualX.h:49
kNumCursors
const int kNumCursors
Definition: GuiTypes.h:370
TGWin32::GetTextExtent
virtual void GetTextExtent(UInt_t &, UInt_t &, wchar_t *)
Returns the size of the specified character string "mess".
Definition: TGWin32.h:182
TGWin32::CreateWindow
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:4793
TGWin32::fAlign
FT_Vector fAlign
alignment vector
Definition: TGWin32.h:70
TGWin32::CreateBitmap
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:5574
TGWin32::RescaleWindow
void RescaleWindow(Int_t wid, UInt_t w, UInt_t h)
Rescale the window wid.
Definition: TGWin32.cxx:2688
TGWin32::QueryPointer
void QueryPointer(Int_t &ix, Int_t &iy)
Query pointer position.
Definition: TGWin32.cxx:2252
TGWin32::GetDisplay
Display_t GetDisplay() const
Returns handle to display (might be useful in some cases where direct X11 manipulation outside of TVi...
Definition: TGWin32.cxx:5320
KeySym
unsigned long KeySym
Definition: TGWin32.h:50
xmin
float xmin
Definition: THbookFile.cxx:95
Colormap_t
Handle_t Colormap_t
Definition: GuiTypes.h:32
TGWin32::GetDoubleBuffer
Int_t GetDoubleBuffer(Int_t wid)
Query the double buffer value for the window wid.
Definition: TGWin32.cxx:1963
h
#define h(i)
Definition: RSha256.hxx:106
TGWin32::SetDoubleBufferOFF
void SetDoubleBufferOFF()
Turn double buffer mode off.
Definition: TGWin32.cxx:3053
TGWin32::ReadGIF
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:4511
TGWin32::NextEvent
void NextEvent(Event_t &event)
Copies first pending event from event queue to Event_t structure and removes event from queue.
Definition: TGWin32.cxx:5853
TGWin32::WriteGIF
Int_t WriteGIF(char *name)
Writes the current window into GIF file.
Definition: TGWin32.cxx:4373
TGWin32::SetCharacterUp
void SetCharacterUp(Float_t chupx, Float_t chupy)
Set character up vector.
Definition: TGWin32.cxx:2856
TGWin32::SetCursor
void SetCursor(Int_t win, ECursor cursor)
Set the cursor.
Definition: TGWin32.cxx:2985
TGWin32::IsVisible
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:1398
TGWin32::fColors
TExMap * fColors
Hash list of colors.
Definition: TGWin32.h:81
TGWin32::MapGCValues
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:5010
TGWin32::SetWMSizeHints
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:6595
TGWin32::fPenModified
Bool_t fPenModified
line syle || width modified
Definition: TGWin32.h:132
TGWin32::UnmapWindow
void UnmapWindow(Window_t id)
Unmap window from screen.
Definition: TGWin32.cxx:4647
TGWin32::DisplayName
const char * DisplayName(const char *dpyName=0)
Return hostname on which the display is opened.
Definition: TGWin32.cxx:2016
TGWin32::DrawFillArea
void DrawFillArea(Int_t n, TPoint *xy)
Fill area described by polygon.
Definition: TGWin32.cxx:1723
TGWin32::fBlueShift
Int_t fBlueShift
Bits to left shift blue.
Definition: TGWin32.h:125
TGWin32::LoadQueryFont
FontStruct_t LoadQueryFont(const char *font_name)
Load font and query font.
Definition: TGWin32.cxx:5370
Atom_t
Handle_t Atom_t
Definition: GuiTypes.h:36
TGWin32::SetMarkerSize
void SetMarkerSize(Float_t markersize)
Set marker size index.
Definition: TGWin32.cxx:3358
TGWin32::CopyGC
void CopyGC(GContext_t org, GContext_t dest, Mask_t mask)
Copies graphics context from org to dest.
Definition: TGWin32.cxx:5499
TGWin32::kMCenter
@ kMCenter
Definition: TGWin32.h:67
TGWin32::ChangeWindowAttributes
void ChangeWindowAttributes(Window_t id, SetWindowAttributes_t *attr)
Change window attributes.
Definition: TGWin32.cxx:6319
Width_t
short Width_t
Definition: RtypesCore.h:82
kFALSE
const Bool_t kFALSE
Definition: RtypesCore.h:92
TGWin32::fLineColorModified
Bool_t fLineColorModified
Definition: TGWin32.h:131
TGWin32::DrawImage
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:1223
Long_t
long Long_t
Definition: RtypesCore.h:54
TGWin32::CloseWindow
void CloseWindow()
Delete current window.
Definition: TGWin32.cxx:1586
TGWin32::Bell
void Bell(Int_t percent)
Sets the sound bell. Percent is loudness from -100% to 100%.
Definition: TGWin32.cxx:6296
TGWin32::MapColorStruct
void MapColorStruct(ColorStruct_t *color, GdkColor &xcolor)
Map a ColorStruct_t to a XColor structure.
Definition: TGWin32.cxx:5706
TGWin32::RaiseWindow
void RaiseWindow(Window_t id)
Put window on top of window stack.
Definition: TGWin32.cxx:4680
TGWin32::fRedShift
Int_t fRedShift
Bits to left shift red, -1 if no TrueColor visual.
Definition: TGWin32.h:123
TGWin32::Sync
void Sync(Int_t mode)
Set synchronisation on or off.
Definition: TGWin32.cxx:4197
TGWin32::SetWMPosition
void SetWMPosition(Window_t id, Int_t x, Int_t y)
Tells the window manager the desired position [x,y] of window "id".
Definition: TGWin32.cxx:6574
TGWin32::ConvertPrimarySelection
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:6835
TGWin32::RemovePixmap
void RemovePixmap(GdkDrawable *pix)
Remove the pixmap pix.
Definition: TGWin32.cxx:2266
TVirtualX::EBoxMode
EBoxMode
Definition: TVirtualX.h:50
TGWin32::DeleteProperty
void DeleteProperty(Window_t, Atom_t &)
Deletes the specified property on the specified window.
Definition: TGWin32.cxx:7571
TGWin32::UpdateFillColor
void UpdateFillColor()
Definition: TGWin32.cxx:3136
TGWin32::KeysymToKeycode
Int_t KeysymToKeycode(UInt_t keysym)
Convert a keysym to the appropriate keycode.
Definition: TGWin32.cxx:6729
TGWin32::fMarkerColorModified
Bool_t fMarkerColorModified
Definition: TGWin32.h:134
TGWin32::CopyPixmap
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:1633
Window_t
Handle_t Window_t
Definition: GuiTypes.h:28
UInt_t
unsigned int UInt_t
Definition: RtypesCore.h:46
y
Double_t y[n]
Definition: legend1.C:17
org
#define org(otri, vertexptr)
Definition: triangle.c:1037
TGWin32::SetUserThreadId
void SetUserThreadId(ULong_t id)
Set user thread id.
Definition: TGWin32.cxx:7828
ULong_t
unsigned long ULong_t
Definition: RtypesCore.h:55
TGWin32::GetScreen
Int_t GetScreen() const
Returns screen number.
Definition: TGWin32.h:253
Short_t
short Short_t
Definition: RtypesCore.h:39
TGWin32::TextWidth
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:6667
TGWin32::SetOpacity
void SetOpacity(Int_t percent)
Set opacity of a window.
Definition: TGWin32.cxx:3944
TGWin32::CreatePictureFromFile
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:5598
TGWin32::GetProperty
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:7585
TGWin32::SetIconName
void SetIconName(Window_t id, char *name)
Set window icon name.
Definition: TGWin32.cxx:6501
TGWin32::CloseDisplay
void CloseDisplay()
close display (terminate server/gMainThread thread)
Definition: TGWin32.cxx:893
TGWin32::SetInputFocus
void SetInputFocus(Window_t id)
Set keyboard input focus to window id.
Definition: TGWin32.cxx:6796
TGWin32::InternAtom
Atom_t InternAtom(const char *atom_name, Bool_t only_if_exist)
Return atom handle for atom_name.
Definition: TGWin32.cxx:5338
TGWin32::ReadPictureDataFromFile
Bool_t ReadPictureDataFromFile(const char *filename, char ***ret_data)
Read picture data from file and store in ret_data.
Definition: TGWin32.cxx:5658
TGWin32::SetWMState
void SetWMState(Window_t id, EInitialState state)
Set the initial state of the window. Either kNormalState or kIconicState.
Definition: TGWin32.cxx:6620
TGWin32::GetFontStruct
FontStruct_t GetFontStruct(FontH_t fh)
Retrieve associated font structure once we have the font handle.
Definition: TGWin32.cxx:6701
TGWin32::DeleteImage
void DeleteImage(Drawable_t img)
Deallocates the memory associated with the image img.
Definition: TGWin32.cxx:7313
TGWin32::kTLeft
@ kTLeft
Definition: TGWin32.h:67
TGWin32::SetMarkerType
void SetMarkerType(Int_t type, Int_t n, GdkPoint *xy)
Set marker type.
Definition: TGWin32.cxx:3380
unsigned int
TGWin32::SetClipRegion
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:2903
TGWin32::ScreenWidthMM
UInt_t ScreenWidthMM() const
Returns the width of the screen in millimeters.
Definition: TGWin32.cxx:7561
TGWin32::fRefreshTimer
TObject * fRefreshTimer
TGWin32RefreshTimer for GUI thread message handler.
Definition: TGWin32.h:127
ymin
float ymin
Definition: THbookFile.cxx:95
TGWin32::SetWindowBackgroundPixmap
void SetWindowBackgroundPixmap(Window_t id, Pixmap_t pxm)
Set pixmap as window background.
Definition: TGWin32.cxx:4783
TGWin32::DeleteFont
void DeleteFont(FontStruct_t fs)
Explicitely delete font structure obtained with LoadQueryFont().
Definition: TGWin32.cxx:5405
TGWin32::GetPixel
ULong_t GetPixel(Color_t cindex)
Return pixel value associated to specified ROOT color number.
Definition: TGWin32.cxx:2931
TGWin32::fRedDiv
Int_t fRedDiv
Red value divider, -1 if no TrueColor visual.
Definition: TGWin32.h:120
TGWin32::LowerWindow
void LowerWindow(Window_t id)
Lower window so it lays below all its siblings.
Definition: TGWin32.cxx:4699
TGWin32::GetWindowID
Window_t GetWindowID(Int_t wid)
Return the X11 window identifier.
Definition: TGWin32.cxx:2063
TGWin32::SetDashes
void SetDashes(GContext_t gc, Int_t offset, const char *dash_list, Int_t n)
Specify a dash pattertn.
Definition: TGWin32.cxx:5688
TGWin32::GetColorBits
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:7328
TGWin32::MakeOpaqueColors
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:4007
TGWin32::kBRight
@ kBRight
Definition: TGWin32.h:68
TGWin32::CreatePixmapFromData
Pixmap_t CreatePixmapFromData(unsigned char *bits, UInt_t width, UInt_t height)
create an image from RGB data.
Definition: TGWin32.cxx:7389
XID
unsigned long XID
Definition: TGX11.h:35
TPoint
Definition: TPoint.h:31
TGWin32::GetCurrentWindow
Window_t GetCurrentWindow() const
Return current window pointer. Protected method used by TGWin32TTF.
Definition: TGWin32.cxx:1941
TGWin32::SetWMSize
void SetWMSize(Window_t id, UInt_t w, UInt_t h)
Tells window manager the desired size of window "id".
Definition: TGWin32.cxx:6584
TGWin32::MapKeySym
void MapKeySym(UInt_t &keysym, UInt_t &xkeysym, Bool_t tox=kTRUE)
Map to and from X key symbols.
Definition: TGWin32.cxx:6862
PictureAttributes_t
Definition: GuiTypes.h:322
TGWin32::SetMarkerColor
void SetMarkerColor(Color_t cindex)
Set color index for markers.
Definition: TGWin32.cxx:3338
TGWin32::OpenPixmap
Int_t OpenPixmap(UInt_t w, UInt_t h)
Open a new pixmap.
Definition: TGWin32.cxx:2089
TGWin32::SetDoubleBufferON
void SetDoubleBufferON()
Turn double buffer mode on.
Definition: TGWin32.cxx:3063
TGWin32::GetParent
Window_t GetParent(Window_t id) const
Return the parent of the window.
Definition: TGWin32.cxx:5358
file
Definition: file.py:1
TGWin32::SetClipOFF
void SetClipOFF(Int_t wid)
Turn off the clipping for the window wid.
Definition: TGWin32.cxx:2885
TGWin32::kMRight
@ kMRight
Definition: TGWin32.h:67
TGWin32::SetFillStyle
void SetFillStyle(Style_t style)
Set fill area style.
Definition: TGWin32.cxx:3155
UChar_t
unsigned char UChar_t
Definition: RtypesCore.h:38
TGWin32::SetWindowName
void SetWindowName(Window_t id, char *name)
Set window name.
Definition: TGWin32.cxx:6491
points
point * points
Definition: X3DBuffer.c:22
TGWin32::Warp
void Warp(Int_t ix, Int_t iy, Window_t id=0)
Set pointer position.
Definition: TGWin32.cxx:4226
TGWin32::GetGeometry
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:1983
TGWin32::AddPixmap
Int_t AddPixmap(ULong_t pix, UInt_t w, UInt_t h)
register pixmap created by TGWin32GLManager
Definition: TGWin32.cxx:7425
TGWin32::CreateCursor
Cursor_t CreateCursor(ECursor cursor)
Create cursor handle (just return cursor from cursor pool fCursors).
Definition: TGWin32.cxx:5527
TObject
Mother of all ROOT objects.
Definition: TObject.h:37
Handle_t
ULong_t Handle_t
Definition: GuiTypes.h:25
TGWin32::FindColor
Int_t FindColor(ULong_t pixel, ULong_t *orgcolors, Int_t ncolors)
Returns index in orgcolors (and new_colors) for pixel.
Definition: TGWin32.cxx:4067
TGWin32::RequestLocator
Int_t RequestLocator(Int_t mode, Int_t ctyp, Int_t &x, Int_t &y)
Request Locator position.
Definition: TGWin32.cxx:2297
TGWin32::SetInput
void SetInput(Int_t inp)
Set input on or off.
Definition: TGWin32.cxx:3211
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TGWin32::MoveWindow
void MoveWindow(Int_t wid, Int_t x, Int_t y)
Move the window wid.
Definition: TGWin32.cxx:2075
TGWin32::SetWindowBackground
void SetWindowBackground(Window_t id, ULong_t color)
Set the window background color.
Definition: TGWin32.cxx:4767
TGWin32::DrawBox
void DrawBox(Int_t x1, Int_t y1, Int_t x2, Int_t y2, EBoxMode mode)
Draw a box.
Definition: TGWin32.cxx:1648
TGWin32::GetRegionBox
void GetRegionBox(Region_t reg, Rectangle_t *)
Return smallest enclosing rectangle.
Definition: TGWin32.cxx:7207
Event_t
Definition: GuiTypes.h:173
TGWin32::GetRGB
void GetRGB(Int_t index, Float_t &r, Float_t &g, Float_t &b)
Get rgb values for color "index".
Definition: TGWin32.cxx:2032
TGWin32::CreateImage
Drawable_t CreateImage(UInt_t width, UInt_t height)
Allocates the memory needed for an drawable.
Definition: TGWin32.cxx:7252
name
char name[80]
Definition: TGX11.cxx:110
TGWin32::SetDoubleBuffer
void SetDoubleBuffer(Int_t wid, Int_t mode)
Set the double buffer on/off on window wid.
Definition: TGWin32.cxx:3017
TGWin32::fTextAlignH
Int_t fTextAlignH
Text Alignment Horizontal.
Definition: TGWin32.h:113
TGWin32::EqualRegion
Bool_t EqualRegion(Region_t rega, Region_t regb)
Returns true if two regions are equal.
Definition: TGWin32.cxx:7199
TGWin32::DrawPolyMarker
void DrawPolyMarker(Int_t n, TPoint *xy)
Draw n markers with the current attributes at position x, y.
Definition: TGWin32.cxx:1840
x2
static const double x2[5]
Definition: RooGaussKronrodIntegrator1D.cxx:364
TGWin32::CheckEvent
Bool_t CheckEvent(Window_t id, EGEventType type, Event_t &ev)
Check if there is for window "id" an event of type "type".
Definition: TGWin32.cxx:5789
TExMap
This class stores a (key,value) pair using an external hash.
Definition: TExMap.h:33
TGWin32::ResizePixmap
Int_t ResizePixmap(Int_t wid, UInt_t w, UInt_t h)
Resize a pixmap.
Definition: TGWin32.cxx:2729
TGWin32::fUseSysPointers
Bool_t fUseSysPointers
True when using system mouse pointers.
Definition: TGWin32.h:112
TGWin32::GetGCValues
void GetGCValues(GContext_t gc, GCValues_t &gval)
Get current values from graphics context gc.
Definition: TGWin32.cxx:6687
TGWin32::fMaxNumberOfWindows
Int_t fMaxNumberOfWindows
Maximum number of windows.
Definition: TGWin32.h:79
TGWin32::SetIconPixmap
void SetIconPixmap(Window_t id, Pixmap_t pic)
Set pixmap the WM can use when the window is iconized.
Definition: TGWin32.cxx:6511
TGWin32::GetInputFocus
Window_t GetInputFocus()
Returns the window id of the window having the input focus.
Definition: TGWin32.cxx:6787
EInitialState
EInitialState
Definition: GuiTypes.h:344
TGWin32::OpenDisplay
Int_t OpenDisplay(const char *dpyName=0)
Open the display. Return -1 if the opening fails, 0 when ok.
Definition: TGWin32.cxx:965
TGWin32::DestroySubwindows
void DestroySubwindows(Window_t id)
Destroy all internal subwindows.
Definition: TGWin32.cxx:4670
TGWin32::ClearWindow
void ClearWindow()
Clear current window.
Definition: TGWin32.cxx:1559
TGWin32::IntersectRegion
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:7157
type
int type
Definition: TGX11.cxx:121
TGWin32::Unlock
static void Unlock()
Definition: TGWin32.cxx:940
ROOT::Math::Cephes::B
static double B[]
Definition: SpecFuncCephes.cxx:178
TGWin32::TranslateCoordinates
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:6934
TGWin32::PointInRegion
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:7191
TGWin32::XorRegion
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:7175
Segment_t
Definition: GuiTypes.h:350
TGWin32::MapEvent
void MapEvent(Event_t &ev, GdkEvent &xev, Bool_t tox=kTRUE)
Map Event_t structure to gdk_event structure.
Definition: TGWin32.cxx:5928
TGWin32::kBCenter
@ kBCenter
Definition: TGWin32.h:68
TGWin32::Align
void Align(void)
Compute alignment variables.
Definition: TGWin32.cxx:1193
TGWin32::ChangeGC
void ChangeGC(GContext_t gc, GCValues_t *gval)
Change entries in an existing graphics context, gc, by values from gval.
Definition: TGWin32.cxx:5433
TGWin32::EventsPending
Int_t EventsPending()
Returns number of pending events.
Definition: TGWin32.cxx:5837
TGWin32::MoveResizeWindow
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:4721
TGWin32::GetDepth
Int_t GetDepth() const
Get maximum number of planes.
Definition: TGWin32.cxx:5328
Time_t
ULong_t Time_t
Definition: GuiTypes.h:41
TGWin32::DestroyRegion
void DestroyRegion(Region_t reg)
Destroy region.
Definition: TGWin32.cxx:7116
TGWin32::LookupString
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:6849
TGWin32::SetTextMagnitude
void SetTextMagnitude(Float_t mgn=1)
Sets the current text magnification factor to "mgn".
Definition: TGWin32.h:219
TGWin32::GetBackground
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:1372
EGEventType
EGEventType
Definition: GuiTypes.h:58
TGWin32::ReparentWindow
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:4757
TGWin32::MapEventMask
void MapEventMask(UInt_t &emask, UInt_t &xemask, Bool_t tox=kTRUE)
Map event mask to or from gdk.
Definition: TGWin32.cxx:4898
TGWin32::fCursors
GdkCursor * fCursors[kNumCursors]
List of cursors.
Definition: TGWin32.h:82
TGWin32::GetDefaultRootWindow
Window_t GetDefaultRootWindow() const
Return handle to the default root window created when calling XOpenDisplay().
Definition: TGWin32.cxx:5350
TVirtualX::ETextMode
ETextMode
Definition: TVirtualX.h:51
TGWin32::QueryColors
void QueryColors(GdkColormap *cmap, GdkColor *colors, Int_t ncolors)
Returns the current RGB value for the pixel in the XColor structure.
Definition: TGWin32.cxx:1166
TGWin32::Lock
static void Lock()
Definition: TGWin32.cxx:932
TGWin32::GetVisual
Visual_t GetVisual() const
Returns handle to visual.
Definition: TGWin32.h:252
TGWin32::fCharacterUpY
Float_t fCharacterUpY
Character Up vector along Y.
Definition: TGWin32.h:117
TGWin32::kMLeft
@ kMLeft
Definition: TGWin32.h:67
TGWin32::fDepth
Int_t fDepth
Number of color planes.
Definition: TGWin32.h:119
TGWin32::SetTypeList
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:7712
TGWin32::DrawString
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:6653
int
TGWin32::DeletePixmap
void DeletePixmap(Pixmap_t pmap)
Explicitely delete pixmap resource.
Definition: TGWin32.cxx:5588
TGWin32::MapCursor
void MapCursor(ECursor cursor, Int_t &xcursor)
SetWindowAttributes_t
Definition: GuiTypes.h:92
TGWin32::GetCharacterUp
void GetCharacterUp(Float_t &chupx, Float_t &chupy)
Return character up vector.
Definition: TGWin32.cxx:1918
TGWin32::fXEvent
Handle_t fXEvent
Current native (GDK) event.
Definition: TGWin32.h:126
g
#define g(i)
Definition: RSha256.hxx:105
TGWin32::SetForeground
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:7061