60
60
m_Texture->UnReference();
63
void ToolButton::Draw(GraphicsEngine &graphics_engine, bool force_draw)
63
void ToolButton::Draw(GraphicsEngine &graphics_engine, bool /* force_draw */)
65
65
Geometry base = GetGeometry();
84
84
GetPainter().Draw2DTextureAligned(graphics_engine, m_Texture, base, TextureAlignmentStyle(eTACenter, eTACenter));
87
void ToolButton::DrawContent(GraphicsEngine &graphics_engine, bool force_draw)
92
void ToolButton::PostDraw(GraphicsEngine &graphics_engine, bool force_draw)
97
void ToolButton::SetState(bool b)
87
void ToolButton::DrawContent(GraphicsEngine & /* graphics_engine */, bool /* force_draw */)
92
void ToolButton::PostDraw(GraphicsEngine & /* graphics_engine */, bool /* force_draw */)
97
void ToolButton::SetState(bool /* b */)
109
109
m_Texture = Texture->Clone();
112
void ToolButton::EmitClick(int x, int y, unsigned long button_flags, unsigned long key_flags)
112
void ToolButton::EmitClick(int /* x */, int /* y */, unsigned long /* button_flags */, unsigned long /* key_flags */)
115
115
if (m_ActionItem)
116
116
m_ActionItem->Trigger();
119
void ToolButton::RecvMouseDoubleClick(int x, int y, unsigned long button_flags, unsigned long key_flags)
124
void ToolButton::RecvMouseDown(int x, int y, unsigned long button_flags, unsigned long key_flags)
129
void ToolButton::RecvMouseUp(int x, int y, unsigned long button_flags, unsigned long key_flags)
134
void ToolButton::RecvMouseEnter(int x, int y, unsigned long button_flags, unsigned long key_flags)
139
void ToolButton::RecvMouseLeave(int x, int y, unsigned long button_flags, unsigned long key_flags)
119
void ToolButton::RecvMouseDoubleClick(int /* x */, int /* y */, unsigned long /* button_flags */, unsigned long /* key_flags */)
124
void ToolButton::RecvMouseDown(int /* x */, int /* y */, unsigned long /* button_flags */, unsigned long /* key_flags */)
129
void ToolButton::RecvMouseUp(int /* x */, int /* y */, unsigned long /* button_flags */, unsigned long /* key_flags */)
134
void ToolButton::RecvMouseEnter(int /* x */, int /* y */, unsigned long /* button_flags */, unsigned long /* key_flags */)
139
void ToolButton::RecvMouseLeave(int /* x */, int /* y */, unsigned long /* button_flags */, unsigned long /* key_flags */)