25#include "gdk/win32/gdkwin32.h"
29typedef ULong_t LPCRITICAL_SECTION;
30typedef unsigned long DWORD;
33typedef unsigned long XID;
34typedef XID GdkDrawable;
36typedef XID GdkColormap;
102 ULong_t &xmask, GdkWindowAttr &xattr);
326 const char *
s,
Int_t len);
#define R(a, b, c, d, e, f, g, h, i)
static const double x2[5]
static const double x1[5]
#define ClassDef(name, id)
include TDocParser_001 C image html pict1_TDocParser_001 png width
This class stores a (key,value) pair using an external hash.
This class is the basic interface to the Win32 graphics system.
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).
void SetClipRectangles(GContext_t gc, Int_t x, Int_t y, Rectangle_t *recs, Int_t n)
Set clipping rectangles in graphics context.
void MapWindow(Window_t id)
Map window on screen.
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.
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.
void MapModifierState(UInt_t &state, UInt_t &xstate, Bool_t tox=kTRUE)
Map modifier key state to or from X.
void CloseWindow1()
Delete current window.
void SetClassHints(Window_t id, char *className, char *resourceName)
Set the windows class and resource name.
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...
void DestroyWindow(Window_t id)
Destroy window.
void IntersectRegion(Region_t rega, Region_t regb, Region_t result)
Compute the intersection of rega and regb and return result region.
void SetIconPixmap(Window_t id, Pixmap_t pic)
Set pixmap the WM can use when the window is iconized.
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.
void SetMarkerSize(Float_t markersize)
Set marker size index.
void MapSetWindowAttributes(SetWindowAttributes_t *attr, ULong_t &xmask, GdkWindowAttr &xattr)
Map a SetWindowAttributes_t to a GdkWindowAttr structure.
void SetClipOFF(Int_t wid)
Turn off the clipping for the window wid.
void SetClipRegion(Int_t wid, Int_t x, Int_t y, UInt_t w, UInt_t h)
Set clipping region for the window wid.
Colormap_t GetColormap() const
Returns handle to colormap.
void SetCharacterUp(Float_t chupx, Float_t chupy)
Set character up vector.
void DrawFillArea(Int_t n, TPoint *xy)
Fill area described by polygon.
void SendEvent(Window_t id, Event_t *ev)
Send event ev to window id.
void QueryColor(Colormap_t cmap, ColorStruct_t &color)
Fill in the primary color components for a specific pixel value.
void GetPasteBuffer(Window_t id, Atom_t atom, TString &text, Int_t &nchar, Bool_t del)
Get contents of paste buffer atom into string.
void MapCursor(ECursor cursor, Int_t &xcursor)
void SetInputFocus(Window_t id)
Set keyboard input focus to window id.
void SubtractRegion(Region_t rega, Region_t regb, Region_t result)
Subtract rega from regb.
void SetForeground(GContext_t gc, ULong_t foreground)
Set foreground color in graphics context (shortcut for ChangeGC with only foreground mask set).
void MoveWindow(Int_t wid, Int_t x, Int_t y)
Move the window wid.
Int_t EventsPending()
Returns number of pending events.
const char * DisplayName(const char *dpyName=0)
Return hostname on which the display is opened.
Int_t TextWidth(FontStruct_t font, const char *s, Int_t len)
Return length of string in pixels. Size depends on font.
void DrawBox(Int_t x1, Int_t y1, Int_t x2, Int_t y2, EBoxMode mode)
Draw a box.
void UnmapWindow(Window_t id)
Unmap window from screen.
void ClearWindow()
Clear current window.
void SetTextFont(Font_t fontnumber)
Set specified font.
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.
Float_t fCharacterUpY
Character Up vector along Y.
Bool_t EqualRegion(Region_t rega, Region_t regb)
Returns true if two regions are equal.
void FillPolygon(Window_t id, GContext_t gc, Point_t *points, Int_t npnt)
FillPolygon fills the region closed by the specified path.
void UnionRegion(Region_t rega, Region_t regb, Region_t result)
Compute the union of rega and regb and return result region.
Bool_t SetSelectionOwner(Window_t, Atom_t &)
Assigns owner of Clipboard.
void ChangeGC(GContext_t gc, GCValues_t *gval)
Change entries in an existing graphics context, gc, by values from gval.
void SetWMSize(Window_t id, UInt_t w, UInt_t h)
Tells window manager the desired size of window "id".
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.
void RenderString(Int_t x, Int_t y, ETextMode mode)
Perform the string rendering in the pad.
Int_t fDepth
Number of color planes.
void SetWMTransientHint(Window_t id, Window_t main_id)
Tell window manager that window is a transient window of gdk_parent_root.
void SetRGB(Int_t cindex, Float_t r, Float_t g, Float_t b)
Set color intensities for given color index.
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.
Visual_t GetVisual() const
Returns handle to visual.
Float_t fTextMagnitude
Text Magnitude.
void GetFontProperties(FontStruct_t font, Int_t &max_ascent, Int_t &max_descent)
Return some font properties.
void SetLineType(Int_t n, Int_t *dash)
Set line type.
void DestroySubwindows(Window_t id)
Destroy all internal subwindows.
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.
void NextEvent(Event_t &event)
Copies first pending event from event queue to Event_t structure and removes event from queue.
void SetOpacity(Int_t percent)
Set opacity of a window.
void Align(void)
Compute alignment variables.
GdkImage * GetBackground(Int_t x, Int_t y, UInt_t w, UInt_t h)
Get the background of the current window in an XImage.
Region_t CreateRegion()
Create a new empty region.
void DrawLine(Int_t x1, Int_t y1, Int_t x2, Int_t y2)
Draw a line.
Pixmap_t CreatePixmapFromData(unsigned char *bits, UInt_t width, UInt_t height)
create an image from RGB data.
Atom_t InternAtom(const char *atom_name, Bool_t only_if_exist)
Return atom handle for atom_name.
Bool_t fMarkerStyleModified
void DeleteProperty(Window_t, Atom_t &)
Deletes the specified property on the specified window.
TGWin32()
Default constructor.
void ResizeWindow(Int_t wid)
Resize the current window if necessary.
Int_t ResizePixmap(Int_t wid, UInt_t w, UInt_t h)
Resize a pixmap.
void IconifyWindow(Window_t id)
Iconify the window.
void SetColor(GdkGC *gc, Int_t ci)
Set the foreground color in GdkGC.
Float_t GetTextMagnitude()
Returns the current font magnification factor.
void SetWMPosition(Window_t id, Int_t x, Int_t y)
Tells the window manager the desired position [x,y] of window "id".
GdkColormap * fColormap
Default colormap, 0 if b/w.
void GetPlanes(Int_t &nplanes)
Get maximum number of planes.
Int_t InitWindow(ULong_t window)
Open window and return window number.
Region_t PolygonRegion(Point_t *points, Int_t np, Bool_t winding)
Create region for the polygon defined by the points array.
Bool_t fFillStyleModified
void CloseWindow()
Delete current window.
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).
void RaiseWindow(Window_t id)
Put window on top of window stack.
void SetUserThreadId(ULong_t id)
Set user thread id.
Int_t fBlueDiv
Blue value divider.
void FreeFontStruct(FontStruct_t fs)
Free font structure returned by GetFontStruct().
void DeleteGC(GContext_t gc)
Explicitely delete a graphics context.
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.
void SetWindowBackgroundPixmap(Window_t id, Pixmap_t pxm)
Set pixmap as window background.
Bool_t CheckEvent(Window_t id, EGEventType type, Event_t &ev)
Check if there is for window "id" an event of type "type".
Int_t fGreenShift
Bits to left shift green.
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.
void SetTextSize(Float_t textsize)
Set current text size.
void SetTypeList(Window_t win, Atom_t prop, Atom_t *typelist)
Add the list of drag and drop types to the Window win.
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.
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.
virtual void GetTextExtent(UInt_t &w, UInt_t &h, char *mess)
Return the size of a character string.
Window_t GetDefaultRootWindow() const
Return handle to the default root window created when calling XOpenDisplay().
void SetDoubleBufferOFF()
Turn double buffer mode off.
Int_t AddWindow(ULong_t qwid, UInt_t w, UInt_t h)
Register a window created by Qt as a ROOT window (like InitWindow()).
void SetLineStyle(Style_t linestyle)
Set line style.
Int_t GetDoubleBuffer(Int_t wid)
Query the double buffer value for the window wid.
void CloseDisplay()
close display (terminate server/gMainThread thread)
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.
void MapEventMask(UInt_t &emask, UInt_t &xemask, Bool_t tox=kTRUE)
Map event mask to or from gdk.
Float_t fCharacterUpX
Character Up vector along X.
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.
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,...
void CopyGC(GContext_t org, GContext_t dest, Mask_t mask)
Copies graphics context from org to dest.
void MapRaised(Window_t id)
Map window on screen and put on top of all windows.
void CopyPixmap(Int_t wid, Int_t xpos, Int_t ypos)
Copy the pixmap wid at the position xpos, ypos in the current window.
Bool_t fPenModified
line syle || width modified
void DeletePixmap(Pixmap_t pmap)
Explicitely delete pixmap resource.
void SelectWindow(Int_t wid)
Select window to which subsequent output is directed.
void QueryPointer(Int_t &ix, Int_t &iy)
Query pointer position.
void SetFillColor(Color_t cindex)
Set color index for fill areas.
void DrawText(Int_t x, Int_t y, Float_t angle, Float_t mgn, const char *text, ETextMode mode)
Draw text using TrueType fonts.
Bool_t fHasTTFonts
True when TrueType fonts are used.
void DeleteFont(FontStruct_t fs)
Explicitely delete font structure obtained with LoadQueryFont().
void MapEvent(Event_t &ev, GdkEvent &xev, Bool_t tox=kTRUE)
Map Event_t structure to gdk_event structure.
void DrawPolyMarker(Int_t n, TPoint *xy)
Draw n markers with the current attributes at position x, y.
void DrawPolyLine(Int_t n, TPoint *xy)
Draw a line through all points.
void UpdateLineStyle()
Update line style.
void SelectInput(Window_t id, UInt_t evmask)
Defines which input events the window is interested in.
Int_t fRedShift
Bits to left shift red, -1 if no TrueColor visual.
Bool_t IsVisible(Int_t x, Int_t y, UInt_t w, UInt_t h)
Test if there is really something to render.
void DestroyRegion(Region_t reg)
Destroy region.
Int_t FindColor(ULong_t pixel, ULong_t *orgcolors, Int_t ncolors)
Returns index in orgcolors (and new_colors) for pixel.
void UpdateFillStyle()
Set fill area style index.
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.
void SetDoubleBuffer(Int_t wid, Int_t mode)
Set the double buffer on/off on window wid.
void UpdateWindow(Int_t mode)
Update display.
void LowerWindow(Window_t id)
Lower window so it lays below all its siblings.
void WMDeleteNotify(Window_t id)
Tell WM to send message when window is closed via WM.
Window_t GetInputFocus()
Returns the window id of the window having the input focus.
void DeleteImage(Drawable_t img)
Deallocates the memory associated with the image img.
Bool_t fLineColorModified
Int_t WriteGIF(char *name)
Writes the current window into GIF file.
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.
Int_t GetDepth() const
Get maximum number of planes.
void GetWindowAttributes(Window_t id, WindowAttributes_t &attr)
Get window attributes and return filled in attributes structure.
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.
void GetGeometry(Int_t wid, Int_t &x, Int_t &y, UInt_t &w, UInt_t &h)
Return position and size of window wid.
void SetDNDAware(Window_t win, Atom_t *typelist)
Add XdndAware property and the list of drag and drop types to the Window win.
Int_t fScreenNumber
Screen number.
void Warp(Int_t ix, Int_t iy, Window_t id=0)
Set pointer position.
Drawable_t CreateImage(UInt_t width, UInt_t height)
Allocates the memory needed for an drawable.
Cursor_t CreateCursor(ECursor cursor)
Create cursor handle (just return cursor from cursor pool fCursors).
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.
void DrawRectangle(Drawable_t id, GContext_t gc, Int_t x, Int_t y, UInt_t w, UInt_t h)
Draw a rectangle outline.
Int_t AddPixmap(ULong_t pix, UInt_t w, UInt_t h)
register pixmap created by TGWin32GLManager
void SetMarkerType(Int_t type, Int_t n, GdkPoint *xy)
Set marker type.
Int_t OpenPixmap(UInt_t w, UInt_t h)
Open a new pixmap.
void SetDoubleBufferON()
Turn double buffer mode on.
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.
void SetKeyAutoRepeat(Bool_t on=kTRUE)
Turn key auto repeat on or off.
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.
void SetFillStyle(Style_t style)
Set fill area style.
void SetMWMHints(Window_t id, UInt_t value, UInt_t funcs, UInt_t input)
Set decoration style for MWM-compatible wm (mwm, ncdwm, fvwm?).
TObject * fRefreshTimer
TGWin32RefreshTimer for GUI thread message handler.
void SetCursor(Int_t win, ECursor cursor)
Set the cursor.
char ** ListFonts(const char *fontname, Int_t max, Int_t &count)
Return list of font names matching "fontname".
void QueryColors(GdkColormap *cmap, GdkColor *colors, Int_t ncolors)
Returns the current RGB value for the pixel in the XColor structure.
void GrabKey(Window_t id, Int_t keycode, UInt_t modifier, Bool_t grab=kTRUE)
Establish passive grab on a certain key.
Window_t GetPrimarySelectionOwner()
Returns the window id of the current owner of the primary selection.
void MapColorStruct(ColorStruct_t *color, GdkColor &xcolor)
Map a ColorStruct_t to a XColor structure.
void SetWindowName(Window_t id, char *name)
Set window name.
FontH_t GetFontHandle(FontStruct_t fs)
Return handle to font described by font structure.
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...
void SetTextColor(Color_t cindex)
Set color index for text.
void SetWindowBackground(Window_t id, ULong_t color)
Set the window background color.
FT_Vector fAlign
alignment vector
Bool_t IsCmdThread() const
returns kTRUE if we are inside cmd/server thread
Int_t fTextAlignH
Text Alignment Horizontal.
Handle_t fXEvent
Current native (GDK) event.
void RemovePixmap(GdkDrawable *pix)
Remove the pixmap pix.
void GetGCValues(GContext_t gc, GCValues_t &gval)
Get current values from graphics context gc.
Bool_t fFillColorModified
Int_t fRedDiv
Red value divider, -1 if no TrueColor visual.
void SetIconName(Window_t id, char *name)
Set window icon name.
Bool_t fMarkerColorModified
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.
void DeletePictureData(void *data)
Delete picture data created by the function ReadPictureDataFromFile.
GdkGC * GetGC(Int_t which) const
Return desired Graphics Context ("which" maps directly on gGCList[]).
void ConvertSelection(Window_t, Atom_t &, Atom_t &, Atom_t &, Time_t &)
Get Clipboard data.
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...
void SetLineColor(Color_t cindex)
Set color index for lines.
XColor_t & GetColor(Int_t cid)
Return reference to internal color structure associated to color index cid.
Int_t OpenDisplay(const char *dpyName=0)
Open the display. Return -1 if the opening fails, 0 when ok.
void SetDashes(GContext_t gc, Int_t offset, const char *dash_list, Int_t n)
Specify a dash pattertn.
void FreeFontNames(char **fontlist)
Frees the specified the array of strings "fontlist".
Bool_t ParseColor(Colormap_t cmap, const char *cname, ColorStruct_t &color)
Parse string cname containing color name, like "green" or "#00FF00".
void SetDrawMode(EDrawMode mode)
Set the drawing mode.
Int_t fTextAlign
Text alignment (set in SetTextAlign)
void SetMarkerColor(Color_t cindex)
Set color index for markers.
Bool_t Init(void *display=0)
Initialize Win32 system. Returns kFALSE in case of failure.
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...
FontStruct_t GetFontStruct(FontH_t fh)
Retrieve associated font structure once we have the font handle.
void GetCharacterUp(Float_t &chupx, Float_t &chupy)
Return character up vector.
Bool_t HasTTFonts() const
Returns True when TrueType fonts are used.
void SetLineWidth(Width_t width)
Set line width.
void RescaleWindow(Int_t wid, UInt_t w, UInt_t h)
Rescale the window wid.
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...
void SetMarkerStyle(Style_t markerstyle)
Set marker style.
Int_t RequestString(Int_t x, Int_t y, char *text)
Request a string.
void SetWMState(Window_t id, EInitialState state)
Set the initial state of the window. Either kNormalState or kIconicState.
void MapSubwindows(Window_t id)
Maps all subwindows for the specified window "id" in top-to-bottom stacking order.
void GetRegionBox(Region_t reg, Rectangle_t *)
Return smallest enclosing rectangle.
Int_t fMaxNumberOfWindows
Maximum number of windows.
void RemoveWindow(ULong_t qwid)
Remove a window created by Qt (like CloseWindow1()).
Bool_t ReadPictureDataFromFile(const char *filename, char ***ret_data)
Read picture data from file and store in ret_data.
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.
void MoveResizeWindow(Window_t id, Int_t x, Int_t y, UInt_t w, UInt_t h)
Move and resize a window.
virtual void GetTextExtent(UInt_t &, UInt_t &, wchar_t *)
Returns the size of the specified character string "mess".
UInt_t ScreenWidthMM() const
Returns the width of the screen in millimeters.
void MapKeySym(UInt_t &keysym, UInt_t &xkeysym, Bool_t tox=kTRUE)
Map to and from X key symbols.
void ChangeWindowAttributes(Window_t id, SetWindowAttributes_t *attr)
Change window attributes.
Bool_t AllocColor(GdkColormap *cmap, GdkColor *color)
Allocate color in colormap.
void SetTextAlign(Short_t talign=11)
Set text alignment.
Int_t RequestLocator(Int_t mode, Int_t ctyp, Int_t &x, Int_t &y)
Request Locator position.
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...
Int_t GetScreen() const
Returns screen number.
Int_t KeysymToKeycode(UInt_t keysym)
Convert a keysym to the appropriate keycode.
void ClosePixmap()
Delete current pixmap.
Window_t GetCurrentWindow() const
Return current window pointer. Protected method used by TGWin32TTF.
Bool_t EmptyRegion(Region_t reg)
Return true if the region is empty.
void XorRegion(Region_t rega, Region_t regb, Region_t result)
Calculate the difference between the union and intersection of two regions.
void Bell(Int_t percent)
Sets the sound bell. Percent is loudness from -100% to 100%.
void SetPrimarySelectionOwner(Window_t id)
Makes the window id the current owner of the primary selection.
Bool_t PointInRegion(Int_t x, Int_t y, Region_t reg)
Returns true if the point x,y is in the region.
Int_t fBlueShift
Bits to left shift blue.
void SetTextMagnitude(Float_t mgn=1)
Sets the current text magnification factor to "mgn".
GdkCursor * fCursors[kNumCursors]
List of cursors.
FontStruct_t LoadQueryFont(const char *font_name)
Load font and query font.
void ChangeActivePointerGrab(Window_t, UInt_t, Cursor_t)
Changes the active cursor of the specified window.
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.
Window_t GetParent(Window_t id) const
Return the parent of the window.
void ChangeProperties(Window_t id, Atom_t property, Atom_t type, Int_t format, UChar_t *data, Int_t len)
Put data into Clipboard.
Bool_t CreatePictureFromData(Drawable_t id, char **data, Pixmap_t &pict, Pixmap_t &pict_mask, PictureAttributes_t &attr)
Create a pixture pixmap from data.
void FreeColor(Colormap_t cmap, ULong_t pixel)
Free color cell with specified pixel value.
Window_t GetWindowID(Int_t wid)
Return the X11 window identifier.
virtual ~TGWin32()
destructor.
Bool_t GUIThreadMessageFunc(MSG *msg)
Message processing function for the GUI thread.
Int_t fTextAlignV
Text Alignment Vertical.
Bool_t fUseSysPointers
True when using system mouse pointers.
XWindow_t * fWindows
List of windows.
void GetImageSize(Drawable_t id, UInt_t &width, UInt_t &height)
Returns the width and height of the image id.
Int_t fGreenDiv
Green value divider.
void Update(Int_t mode=0)
Flush (mode = 0, default) or synchronize (mode = 1) X output buffer.
void WritePixmap(Int_t wid, UInt_t w, UInt_t h, char *pxname)
Write the pixmap wid in the bitmap file pxname.
void SetInput(Int_t inp)
Set input on or off.
ULong_t GetPixel(Color_t cindex)
Return pixel value associated to specified ROOT color number.
Display_t GetDisplay() const
Returns handle to display (might be useful in some cases where direct X11 manipulation outside of TVi...
void GetRGB(Int_t index, Float_t &r, Float_t &g, Float_t &b)
Get rgb values for color "index".
void Sync(Int_t mode)
Set synchronisation on or off.
TExMap * fColors
Hash list of colors.
void UnionRectWithRegion(Rectangle_t *rect, Region_t src, Region_t dest)
Union of rectangle with a region.
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.
Mother of all ROOT objects.
Semi-Abstract base class defining a generic interface to the underlying, low level,...
static constexpr double s
Description of a X11 color.
Bool_t fDefined
true if pixel value is defined
#define dest(otri, vertexptr)
#define org(otri, vertexptr)