File indexing completed on 2025-01-18 10:11:30
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef ROOT_TAttFillEditor
0013 #define ROOT_TAttFillEditor
0014
0015
0016 #include "TGedFrame.h"
0017
0018 class TGColorSelect;
0019 class TGedPatternSelect;
0020 class TAttFill;
0021 class TGNumberEntryField;
0022
0023 class TAttFillEditor : public TGedFrame {
0024
0025 protected:
0026 TAttFill *fAttFill;
0027 TGColorSelect *fColorSelect;
0028 TGedPatternSelect *fPatternSelect;
0029 TGHSlider *fAlpha;
0030 TGNumberEntryField *fAlphaField;
0031
0032 virtual void ConnectSignals2Slots();
0033
0034 public:
0035 TAttFillEditor(const TGWindow *p = nullptr,
0036 Int_t width = 140, Int_t height = 30,
0037 UInt_t options = kChildFrame,
0038 Pixel_t back = GetDefaultFrameBackground());
0039 ~TAttFillEditor() override;
0040
0041 void SetModel(TObject* obj) override;
0042 virtual void DoFillColor(Pixel_t color);
0043 virtual void DoFillAlphaColor(ULongptr_t p);
0044 virtual void DoFillPattern(Style_t color);
0045 virtual void DoAlpha();
0046 virtual void DoAlphaField();
0047 virtual void DoLiveAlpha(Int_t a);
0048 virtual void GetCurAlpha();
0049
0050 ClassDefOverride(TAttFillEditor,0)
0051 };
0052
0053 #endif