Debug Tools and Scrollable widget
This commit is contained in:
parent
f68f91f7d5
commit
458e56fb4c
27 changed files with 274 additions and 103 deletions
|
|
@ -20,6 +20,8 @@ namespace tp {
|
|||
[[nodiscard]] bool getDirection() const { return mVertical; }
|
||||
[[nodiscard]] halnf getPosFactor() const { return mPosFactor - mSizeFactor / 2; }
|
||||
|
||||
void setDirection(bool direction) { mVertical = direction; }
|
||||
|
||||
private:
|
||||
[[nodiscard]] const RectF& getHandleRect() const;
|
||||
void updateHandleRect();
|
||||
|
|
@ -53,5 +55,13 @@ namespace tp {
|
|||
class ScrollableWidget : public Widget {
|
||||
public:
|
||||
ScrollableWidget();
|
||||
|
||||
void setDirection(bool direction);
|
||||
|
||||
Widget* getContainer() { return &mContent; }
|
||||
|
||||
private:
|
||||
Widget mContent;
|
||||
ScrollableBarWidget mScroller;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue