150 if ((cw > 0) && (ch > 0)) {
165 const char *
id =
nullptr;
169 case kTopLeft:
id =
"nw-resize";
break;
173 case kTopSide:
id =
"n-resize";
break;
175 case kMove:
id =
"move";
break;
176 case kCross:
id =
"crosshair";
break;
179 case kHand:
id =
"grab";
break;
180 case kRotate:
id =
"grab";
break;
181 case kPointer:
id =
"pointer";
break;
183 case kCaret:
id =
"text";
break;
184 case kWatch:
id =
"wait";
break;
185 case kNoDrop:
id =
"no-drop";
break;
186 default:
id =
"default";
break;
326 gt4k_app = Gtk::Application::create(
"org.example.customloop");
336 auto draw_area = widget->GetDrawArea();
338 draw_area->queue_draw();
344 while (cnt-- > 0 && (draw_area->get_width() == 0)) {
352 imp->fCanvasWindow = widget;
353 imp->fDrawArea = draw_area;
356 draw_area->SetCanvas(
c);
357 draw_area->queue_draw();
long Long_t
Signed long integer 4 bytes (long). Size depends on architecture.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t cursor
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize wid
Option_t Option_t TPoint TPoint const char mode
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
Glib::RefPtr< Gtk::Application > gt4k_app
Glib::RefPtr< Glib::MainContext > gt4k_context
Int_t InitWindow() override
Initialize window for the Gtk4 canvas.
void Show() override
Show canvas.
void GetCanvasGeometry(Int_t wid, UInt_t &w, UInt_t &h) override
Returns canvas geometry.
Bool_t HasStatusBar() const override
Returns kTRUE if web canvas has status bar.
void RaiseWindow() override
Raise browser window.
void AssignStatusBits(UInt_t bits)
Assign clients bits.
TGtk4Canvas(TCanvas *c, const char *name, Int_t x, Int_t y, UInt_t width, UInt_t height)
Constructor.
Bool_t HasToolTips() const override
Returns kTRUE if tooltips are activated in web canvas.
void Close() override
Close canvas - not implemented.
Bool_t HasEditor() const override
Returns kTRUE if web canvas has graphical editor.
void Iconify() override
Iconify browser window.
static TCanvasImp * NewCanvas(TCanvas *c, const char *name, Int_t x, Int_t y, UInt_t width, UInt_t height)
Static method to create TGtk4Canvas instance Used by plugin manager to directly create TGtk4Canvas wi...
~TGtk4Canvas() override
Destructor.
UInt_t GetWindowGeometry(Int_t &x, Int_t &y, UInt_t &w, UInt_t &h) override
Returns window geometry including borders and menus.
UInt_t fClientBits
! latest status bits from client like editor visible or not
void SetWindowPosition(Int_t x, Int_t y) override
Set window position of web canvas.
Bool_t HasMenuBar() const override
Returns kTRUE if web canvas has menu bar.
void ForceUpdate() override
Increment canvas version and force sending data to client - do not wait for reply.
void SetWindowTitle(const char *newTitle) override
Set window title of web canvas.
Gtk4CanvasWindow * fCanvasWindow
TVirtualPadPainter * CreatePadPainter() override
Creates pad painter.
Bool_t fFixedSize
! true when fixed-size canvas is configured
void SetCanvasSize(UInt_t w, UInt_t h) override
Set fixed canvas size - not supported yet in gtk.
void SetWindowSize(UInt_t w, UInt_t h) override
Set window size of web canvas.
void SetCursor(ECursor cursor) override
Set cursor.
Bool_t PerformUpdate(Bool_t async) override
if canvas or any subpad was modified, invoke gtk4 queue_draw() which will trigger redraw area
ABC describing GUI independent main window (with menubar, scrollbars and a drawing area).
TGtk4Timer(Long_t milliSec, Bool_t mode)
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
Handles synchronous and a-synchronous timer events.
virtual void TurnOn()
Add the timer to the system timer list.
To make it possible to use GL for 2D graphic in a TPad/TCanvas.
Namespace for ROOT features in testing.