Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TGtk4GuiFactory.h
Go to the documentation of this file.
1// Author: Sergey Linev 12/08/2026
2
3/*************************************************************************
4 * Copyright (C) 1995-2026, Rene Brun and Fons Rademakers. *
5 * All rights reserved. *
6 * *
7 * For the licensing terms see $ROOTSYS/LICENSE. *
8 * For the list of contributors see $ROOTSYS/README/CREDITS. *
9 *************************************************************************/
10
11#ifndef ROOT_TGtk4GuiFactory
12#define ROOT_TGtk4GuiFactory
13
14#include "TGuiFactory.h"
15
16namespace ROOT {
17namespace Experimental {
18
20
21public:
22 TGtk4GuiFactory(const char *name = "gtk4", const char *title = "ROOT Gtk4 GUI Factory");
23 ~TGtk4GuiFactory() override {}
24
25 Bool_t UseVirtualX() const override { return kFALSE; }
26
27 TApplicationImp *CreateApplicationImp(const char *classname, int *argc, char **argv) override;
28
29 TCanvasImp *CreateCanvasImp(TCanvas *c, const char *title, UInt_t width, UInt_t height) override;
30 TCanvasImp *CreateCanvasImp(TCanvas *c, const char *title, Int_t x, Int_t y, UInt_t width, UInt_t height) override;
31
32 TContextMenuImp *CreateContextMenuImp(TContextMenu *c, const char *name, const char *title) override;
33
34 ClassDefOverride(TGtk4GuiFactory,0) //Factory for Gtk4 GUI components
35};
36
37} // namespace Experimental
38} // namespace ROOT
39
40
41#endif
#define c(i)
Definition RSha256.hxx:101
constexpr Bool_t kFALSE
Definition RtypesCore.h:109
#define ClassDefOverride(name, id)
Definition Rtypes.h:347
Option_t Option_t width
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
char name[80]
Definition TGX11.cxx:142
TGtk4GuiFactory(const char *name="gtk4", const char *title="ROOT Gtk4 GUI Factory")
TGtk4GuiFactory ctor.
TContextMenuImp * CreateContextMenuImp(TContextMenu *c, const char *name, const char *title) override
Create a ROOT native GUI version of TContextMenuImp.
Bool_t UseVirtualX() const override
TApplicationImp * CreateApplicationImp(const char *classname, int *argc, char **argv) override
Create a ROOT native GUI version of TApplicationImp.
TCanvasImp * CreateCanvasImp(TCanvas *c, const char *title, UInt_t width, UInt_t height) override
Create a ROOT native GUI version of TCanvasImp.
ABC describing GUI independent application implementation protocol.
ABC describing GUI independent main window (with menubar, scrollbars and a drawing area).
Definition TCanvasImp.h:31
The Canvas class.
Definition TCanvas.h:23
This class provides an interface to GUI independent context sensitive popup menus.
This class provides an interface to context sensitive popup menus.
This ABC is a factory for GUI components.
Definition TGuiFactory.h:42
Double_t y[n]
Definition legend1.C:17
Double_t x[n]
Definition legend1.C:17