File indexing completed on 2025-01-18 10:10:47
0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef ROOT7_RPave
0010 #define ROOT7_RPave
0011
0012 #include <ROOT/RDrawable.hxx>
0013 #include <ROOT/RAttrText.hxx>
0014 #include <ROOT/RAttrBorder.hxx>
0015 #include <ROOT/RAttrFill.hxx>
0016 #include <ROOT/RAttrValue.hxx>
0017 #include <ROOT/RPadPos.hxx>
0018 #include <ROOT/RPadExtent.hxx>
0019
0020 namespace ROOT {
0021 namespace Experimental {
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032 class RPave : public RDrawable {
0033
0034 protected:
0035
0036 RPave(const char *csstype) : RDrawable(csstype) {}
0037
0038 public:
0039
0040 enum ECorner {
0041 kTopLeft = 1,
0042 kTopRight = 2,
0043 kBottomLeft = 3,
0044 kBottomRight = 4
0045 };
0046
0047 RAttrBorder border{this, "border"};
0048 RAttrFill fill{this, "fill"};
0049 RAttrText text{this, "text"};
0050 RAttrValue<RPadLength> width{this, "width", 0.4};
0051 RAttrValue<RPadLength> height{this, "height", 0.2};
0052 RAttrValue<bool> onFrame{this, "onFrame", true};
0053 RAttrValue<ECorner> corner{this, "corner", kTopRight};
0054 RAttrValue<RPadLength> offsetX{this, "offsetX", 0.02};
0055 RAttrValue<RPadLength> offsetY{this, "offsetY", 0.02};
0056
0057 RPave() : RPave("pave") {}
0058
0059 };
0060
0061 }
0062 }
0063
0064 #endif