Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RWebBrowserImp.hxx
Go to the documentation of this file.
1// Author: Sergey Linev <S.Linev@gsi.de>
2// Date: 2021-02-11
3
4/*************************************************************************
5 * Copyright (C) 1995-2021, 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 ROOT7_RWebBrowserImp
13#define ROOT7_RWebBrowserImp
14
15#include "TBrowserImp.h"
16
17#include "ROOT/RBrowser.hxx"
18
19namespace ROOT {
20
22
23 std::shared_ptr<RBrowser> fWebBrowser; ///< actual browser used
24 Int_t fX{-1}, fY{-1}, fWidth{0}, fHeight{0}; ///< window coordinates
25
26 void ShowWarning();
27
28public:
29 RWebBrowserImp(TBrowser *b = nullptr);
30 RWebBrowserImp(TBrowser *b, const char *title, UInt_t width, UInt_t height, Option_t *opt = "");
31 RWebBrowserImp(TBrowser *b, const char *title, Int_t x, Int_t y, UInt_t width, UInt_t height, Option_t *opt = "");
32 virtual ~RWebBrowserImp();
33
34 void Iconify() final;
35 void Refresh(Bool_t = kFALSE) final;
36 void Show() final;
37 void BrowseObj(TObject *) final;
39
40 static TBrowserImp *NewBrowser(TBrowser *b = nullptr, const char *title = "ROOT Browser", UInt_t width = 800, UInt_t height = 500, Option_t *opt = "");
41 static TBrowserImp *NewBrowser(TBrowser *b, const char *title, Int_t x, Int_t y, UInt_t width, UInt_t height, Option_t *opt = "");
42
43 ClassDefOverride(RWebBrowserImp,0) // browser implementation for RBrowser
44};
45
46} // namespace ROOT
47
48#endif
#define b(i)
Definition RSha256.hxx:100
bool Bool_t
Definition RtypesCore.h:63
int Int_t
Definition RtypesCore.h:45
unsigned int UInt_t
Definition RtypesCore.h:46
constexpr Bool_t kFALSE
Definition RtypesCore.h:94
constexpr Bool_t kTRUE
Definition RtypesCore.h:93
const char Option_t
Definition RtypesCore.h:66
#define ClassDefOverride(name, id)
Definition Rtypes.h:348
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
void ShowWarning()
Show warning that RBrowser will be shown.
Bool_t IsWeb() const final
Int_t fHeight
window coordinates
void Show() final
Show browser.
virtual ~RWebBrowserImp()
Constructor with width and height parameters.
void Iconify() final
Iconify browser.
std::shared_ptr< RBrowser > fWebBrowser
actual browser used
void Refresh(Bool_t=kFALSE) final
Refresh browser.
static TBrowserImp * NewBrowser(TBrowser *b=nullptr, const char *title="ROOT Browser", UInt_t width=800, UInt_t height=500, Option_t *opt="")
Factory method to create RWebBrowserImp via plugin.
void BrowseObj(TObject *) final
Browse specified object.
RWebBrowserImp(TBrowser *b=nullptr)
Default constructor.
ABC describing GUI independent browser implementation protocol.
Definition TBrowserImp.h:29
Using a TBrowser one can browse all ROOT objects.
Definition TBrowser.h:37
Mother of all ROOT objects.
Definition TObject.h:41
Double_t y[n]
Definition legend1.C:17
Double_t x[n]
Definition legend1.C:17
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...