mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 16:22:45 +03:00
feat(ui): add CSimpleSlider::OnLayerMouseUp
This commit is contained in:
parent
01bea8630e
commit
333b8eec36
@ -143,6 +143,12 @@ int32_t CSimpleSlider::OnLayerMouseDown(const CMouseEvent& evt, const char* btn)
|
|||||||
return this->CSimpleFrame::OnLayerMouseDown(evt, btn);
|
return this->CSimpleFrame::OnLayerMouseDown(evt, btn);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int32_t CSimpleSlider::OnLayerMouseUp(const CMouseEvent& evt, const char* btn) {
|
||||||
|
this->m_buttonDown = 0;
|
||||||
|
|
||||||
|
return this->CSimpleFrame::OnLayerMouseUp(evt, btn);
|
||||||
|
}
|
||||||
|
|
||||||
int32_t CSimpleSlider::OnLayerTrackUpdate(const CMouseEvent& evt) {
|
int32_t CSimpleSlider::OnLayerTrackUpdate(const CMouseEvent& evt) {
|
||||||
if (this->m_buttonDown && this->m_thumbTexture) {
|
if (this->m_buttonDown && this->m_thumbTexture) {
|
||||||
auto thumbTexture = this->m_thumbTexture;
|
auto thumbTexture = this->m_thumbTexture;
|
||||||
|
|||||||
@ -37,6 +37,7 @@ class CSimpleSlider : public CSimpleFrame {
|
|||||||
virtual void OnLayerUpdate(float elapsedSec);
|
virtual void OnLayerUpdate(float elapsedSec);
|
||||||
virtual int32_t OnLayerTrackUpdate(const CMouseEvent& evt);
|
virtual int32_t OnLayerTrackUpdate(const CMouseEvent& evt);
|
||||||
virtual int32_t OnLayerMouseDown(const CMouseEvent& evt, const char* btn);
|
virtual int32_t OnLayerMouseDown(const CMouseEvent& evt, const char* btn);
|
||||||
|
virtual int32_t OnLayerMouseUp(const CMouseEvent& evt, const char* btn);
|
||||||
|
|
||||||
// Member functions
|
// Member functions
|
||||||
CSimpleSlider(CSimpleFrame* parent)
|
CSimpleSlider(CSimpleFrame* parent)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user