9#if !defined(OWL_BUTTONGA_H)
13#if defined(BI_HAS_PRAGMA_ONCE)
86#if defined(OWL5_COMPAT)
94 TButtonGadget(TResId glyphResIdOrIndex,
99 bool sharedGlyph =
false);
100 ~TButtonGadget()
override;
104 void SetButtonState(TState newState);
105 TState GetButtonState()
const;
107 TType GetButtonType()
const;
112 bool GetNotchCorners()
const;
113 void SetNotchCorners(
bool notchCorners=
true);
115#if defined(OWL5_COMPAT)
116 TShadowStyle GetShadowStyle()
const;
117 void SetShadowStyle(TShadowStyle style=DoubleShadow);
120 bool GetAntialiasEdges()
const;
121 void SetAntialiasEdges(
bool anti=
true);
125 void GetDesiredSize(TSize& size)
override;
126 void SetBounds(
const TRect& r)
override;
127 void CommandEnable()
override;
128 void SysColorChange()
override;
134 void Paint(TDC& dc)
override;
135 void PaintBorder(TDC& dc)
override;
136 void MouseEnter(uint modKeys,
const TPoint& p)
override;
137 void MouseMove(uint modKeys,
const TPoint& p)
override;
138 void MouseLeave(uint modKeys,
const TPoint& p)
override;
139 void LButtonDown(uint modKeys,
const TPoint& p)
override;
140 void LButtonUp(uint modKeys,
const TPoint& p)
override;
163 virtual void PaintFace(
TDC& dc,
const TRect& rect);
164 virtual TDib* GetGlyphDib();
165 virtual void ReleaseGlyphDib(
TDib* glyph);
166 virtual void BuildCelArray();
174 virtual void BeginPressed(
const TPoint& p);
180 virtual void CancelPressed(
const TPoint& p,
bool mstate=
false);
184 virtual void Activate(
const TPoint& p);
194#if defined(OWL5_COMPAT)
195 TShadowStyle ShadowStyle :4;
198 bool NotchCorners :1;
200 bool AntialiasEdges:1;
208 void SetButtonType(TType newType);
209 void SetGlyphIndex(
int index);
210 bool IsPressed()
const;
211 void CheckExclusively();
217 TPoint& GetBitmapOrigin();
218 const TPoint& GetBitmapOrigin()
const;
219 void SetBitmapOrigin(
const TPoint& bitmapOrigin);
261 NotchCorners = notchCorners;
267#if defined(OWL5_COMPAT)
268inline TButtonGadget::TShadowStyle TButtonGadget::GetShadowStyle()
const {
276inline void TButtonGadget::SetShadowStyle(TShadowStyle s) {
285 return AntialiasEdges;
337 BitmapOrigin = bitmapOrigin;
TCelArray is a horizontal array of cels (a unit of animation) created by slicing a portion of or an e...
TDC is the root class for GDI DC wrappers.
Pseudo-GDI object Device Independent Bitmap (DIB) class.
TGadget(int id=0, TBorderStyle borderStyle=None)
Construct a gadget with a given id and border style.
TPoint is a support class, derived from tagPOINT.
TRect is a mathematical class derived from tagRect.
Base class TGadget and simple derived TSeparatorGadget.
Object Windows Library (OWLNext Core).