mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-27 08:13:50 +03:00
feat(ui): add CSimpleSlider::OnFrameSizeChanged
This commit is contained in:
2 files changed
+8
No files matched your search
@@ -127,6 +127,13 @@ void CSimpleSlider::LoadXML(XMLNode* node, CStatus* status) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CSimpleSlider::OnFrameSizeChanged(const CRect& rect) {
|
||||||
|
this->CSimpleFrame::OnFrameSizeChanged(rect);
|
||||||
|
|
||||||
|
this->m_changed = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void CSimpleSlider::OnLayerHide() {
|
void CSimpleSlider::OnLayerHide() {
|
||||||
this->m_buttonDown = 0;
|
this->m_buttonDown = 0;
|
||||||
|
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ class CSimpleSlider : public CSimpleFrame {
|
|||||||
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);
|
virtual int32_t OnLayerMouseUp(const CMouseEvent& evt, const char* btn);
|
||||||
|
virtual void OnFrameSizeChanged(const CRect& rect);
|
||||||
|
|
||||||
// Member functions
|
// Member functions
|
||||||
CSimpleSlider(CSimpleFrame* parent)
|
CSimpleSlider(CSimpleFrame* parent)
|
||||||
|
|||||||
Reference in new issue
Block a user