60
60
m_Texture->UnReference ();
63
long ToolButton::ProcessEvent (IEvent &ievent, long TraverseInfo, long ProcessEventInfo)
65
long ret = TraverseInfo;
67
ret = PostProcessEvent2 (ievent, ret, ProcessEventInfo);
71
void ToolButton::Draw (GraphicsEngine &GfxContext, bool force_draw)
63
void ToolButton::Draw (GraphicsEngine &graphics_engine, bool force_draw)
73
65
Geometry base = GetGeometry();
75
67
if (IsMouseInside() && !IsMouseOwner() )
77
GetPainter().PaintBackground (GfxContext, base);
78
GetPainter().PaintShape (GfxContext, base, Color (COLOR_BACKGROUND_SECONDARY), eSHAPE_CORNER_ROUND2);
69
GetPainter().PaintBackground (graphics_engine, base);
70
GetPainter().PaintShape (graphics_engine, base, Color (COLOR_BACKGROUND_SECONDARY), eSHAPE_CORNER_ROUND2);
80
72
else if (IsMouseOwner() )
82
GetPainter().PaintBackground (GfxContext, base);
83
GetPainter().PaintShape (GfxContext, base, Color (0xFF2A2A2A), eSHAPE_CORNER_ROUND2);
74
GetPainter().PaintBackground (graphics_engine, base);
75
GetPainter().PaintShape (graphics_engine, base, Color (0xFF2A2A2A), eSHAPE_CORNER_ROUND2);
87
GetPainter().PaintBackground (GfxContext, base);
88
GetPainter().PaintShape (GfxContext, base, Color (COLOR_BACKGROUND_PRIMARY), eSHAPE_CORNER_ROUND2);
79
GetPainter().PaintBackground (graphics_engine, base);
80
GetPainter().PaintShape (graphics_engine, base, Color (COLOR_BACKGROUND_PRIMARY), eSHAPE_CORNER_ROUND2);
92
GetPainter().Draw2DTextureAligned (GfxContext, m_Texture, base, TextureAlignmentStyle (eTACenter, eTACenter) );
84
GetPainter().Draw2DTextureAligned (graphics_engine, m_Texture, base, TextureAlignmentStyle (eTACenter, eTACenter) );
95
void ToolButton::DrawContent (GraphicsEngine &GfxContext, bool force_draw)
87
void ToolButton::DrawContent (GraphicsEngine &graphics_engine, bool force_draw)
100
void ToolButton::PostDraw (GraphicsEngine &GfxContext, bool force_draw)
92
void ToolButton::PostDraw (GraphicsEngine &graphics_engine, bool force_draw)