Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TAttFillEditor.h
Go to the documentation of this file.
1// @(#)root/ged:$Id$
2// Author: Ilka Antcheva 10/05/04
3
4/*************************************************************************
5 * Copyright (C) 1995-2002, 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 ROOT_TAttFillEditor
13#define ROOT_TAttFillEditor
14
15
16#include "TGedFrame.h"
17
18class TGColorSelect;
20class TAttFill;
22
23class TAttFillEditor : public TGedFrame {
24
25protected:
26 TAttFill *fAttFill; ///< fill attribute object
27 TGColorSelect *fColorSelect; ///< fill color widget
28 TGedPatternSelect *fPatternSelect; ///< fill pattern widget
29 TGHSlider *fAlpha; ///< fill opacity
31
32 virtual void ConnectSignals2Slots();
33
34public:
35 TAttFillEditor(const TGWindow *p = nullptr,
36 Int_t width = 140, Int_t height = 30,
37 UInt_t options = kChildFrame,
39 ~TAttFillEditor() override;
40
41 void SetModel(TObject* obj) override;
42 virtual void DoFillColor(Pixel_t color);
43 virtual void DoFillAlphaColor(ULongptr_t p);
44 virtual void DoFillPattern(Style_t color);
45 virtual void DoAlpha();
46 virtual void DoAlphaField();
47 virtual void DoLiveAlpha(Int_t a);
48 virtual void GetCurAlpha();
49
50 ClassDefOverride(TAttFillEditor,0) //GUI for editing fill attributes
51};
52
53#endif
@ kChildFrame
Definition GuiTypes.h:379
ULong_t Pixel_t
Pixel value.
Definition GuiTypes.h:40
#define a(i)
Definition RSha256.hxx:99
short Style_t
Definition RtypesCore.h:89
unsigned long ULongptr_t
Definition RtypesCore.h:83
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
winID h TVirtualViewer3D TVirtualGLPainter p
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
Implements GUI for editing fill attributes.
virtual void ConnectSignals2Slots()
Connect signals to slots.
virtual void GetCurAlpha()
Slot to update alpha value on click on Slider.
TGNumberEntryField * fAlphaField
virtual void DoFillColor(Pixel_t color)
Slot connected to the fill area color.
void SetModel(TObject *obj) override
Pick up the used fill attributes.
virtual void DoFillPattern(Style_t color)
Slot connected to the fill area pattern.
TGColorSelect * fColorSelect
fill color widget
virtual void DoLiveAlpha(Int_t a)
Slot to set alpha value online.
virtual void DoAlphaField()
Slot to set the alpha value from the entry field.
~TAttFillEditor() override
Destructor of fill editor.
TAttFill * fAttFill
fill attribute object
TGHSlider * fAlpha
fill opacity
virtual void DoAlpha()
Slot to set the alpha value.
TGedPatternSelect * fPatternSelect
fill pattern widget
virtual void DoFillAlphaColor(ULongptr_t p)
Slot connected to the fill area color with alpha.
Fill Area Attributes class.
Definition TAttFill.h:19
Like a checkbutton but instead of the check mark there is color area with a little down arrow.
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition TGFrame.cxx:683
Concrete class for horizontal slider.
Definition TGSlider.h:119
ROOT GUI Window base class.
Definition TGWindow.h:23
Base frame for implementing GUI - a service class.
Definition TGedFrame.h:27
is a button with pattern area with a little down arrow.
Mother of all ROOT objects.
Definition TObject.h:41