Added ability to hide layer from delegate of BoxContent.
This commit is contained in:
parent
88966598b8
commit
b69fcf6048
3 changed files with 6 additions and 0 deletions
|
|
@ -79,6 +79,7 @@ public:
|
|||
virtual void setNoContentMargin(bool noContentMargin) = 0;
|
||||
virtual bool isBoxShown() const = 0;
|
||||
virtual void closeBox() = 0;
|
||||
virtual void hideLayer() = 0;
|
||||
virtual void triggerButton(int index) = 0;
|
||||
|
||||
template <typename BoxType>
|
||||
|
|
|
|||
|
|
@ -217,6 +217,10 @@ void BoxLayerWidget::showBox(
|
|||
_layer->showBox(std::move(box), options, animated);
|
||||
}
|
||||
|
||||
void BoxLayerWidget::hideLayer() {
|
||||
_layer->hideLayers(anim::type::normal);
|
||||
}
|
||||
|
||||
void BoxLayerWidget::updateSize() {
|
||||
setDimensions(width(), _maxContentHeight);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -91,6 +91,7 @@ public:
|
|||
void closeBox() override {
|
||||
closeLayer();
|
||||
}
|
||||
void hideLayer() override;
|
||||
void triggerButton(int index) override;
|
||||
|
||||
void setCloseByOutsideClick(bool close) override;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue