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// //
17// TAttFillEditor //
18// //
19// Implements GUI for editing fill attributes. // //
20// //
21//////////////////////////////////////////////////////////////////////////
22
23#include "TGedFrame.h"
24
25class TGColorSelect;
27class TAttFill;
29
30class TAttFillEditor : public TGedFrame {
31
32protected:
33 TAttFill *fAttFill; // fill attribute object
34 TGColorSelect *fColorSelect; // fill color widget
35 TGedPatternSelect *fPatternSelect; // fill pattern widget
36 TGHSlider *fAlpha; // fill opacity
38
39 virtual void ConnectSignals2Slots();
40
41public:
42 TAttFillEditor(const TGWindow *p = 0,
43 Int_t width = 140, Int_t height = 30,
44 UInt_t options = kChildFrame,
46 virtual ~TAttFillEditor();
47
48 virtual void SetModel(TObject* obj);
49 virtual void DoFillColor(Pixel_t color);
50 virtual void DoFillAlphaColor(ULong_t p);
51 virtual void DoFillPattern(Style_t color);
52 virtual void DoAlpha();
53 virtual void DoAlphaField();
54 virtual void DoLiveAlpha(Int_t a);
55 virtual void GetCurAlpha();
56
57 ClassDef(TAttFillEditor,0) //GUI for editing fill attributes
58};
59
60#endif
@ kChildFrame
Definition GuiTypes.h:379
ULong_t Pixel_t
Pixel value.
Definition GuiTypes.h:40
#define a(i)
Definition RSha256.hxx:99
unsigned long ULong_t
Definition RtypesCore.h:55
short Style_t
Definition RtypesCore.h:80
#define ClassDef(name, id)
Definition Rtypes.h:325
include TDocParser_001 C image html pict1_TDocParser_001 png width
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.
virtual void DoFillPattern(Style_t color)
Slot connected to the fill area pattern.
TGColorSelect * fColorSelect
virtual void DoFillAlphaColor(ULong_t p)
Slot connected to the fill area color with alpha.
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.
TAttFill * fAttFill
TGHSlider * fAlpha
virtual void DoAlpha()
Slot to set the alpha value.
virtual void SetModel(TObject *obj)
Pick up the used fill attributes.
TGedPatternSelect * fPatternSelect
virtual ~TAttFillEditor()
Destructor of fill editor.
Fill Area Attributes class.
Definition TAttFill.h:19
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition TGFrame.cxx:668
Mother of all ROOT objects.
Definition TObject.h:37