This commit is contained in:
IlyaShurupov 2024-06-23 17:57:14 +03:00 committed by Ilya Shurupov
parent c87e5a25d5
commit a55a5ec5cc
7 changed files with 151 additions and 51 deletions

View file

@ -134,8 +134,15 @@ namespace tp {
bool isReleased() const { return mReleased; }
bool isHolding() const { return mHolding; }
void clearEvents() {
mReleased = false;
mPressed = false;
mHolding = false;
}
public:
RectF mArea;
List<Widget<Events, Canvas>*> mChildWidgets;
bool mVisible = false;
@ -145,5 +152,7 @@ namespace tp {
bool mHolding = false;
bool mPressed = false;
bool mReleased = false;
// Vec2F mPressedRelativeLocation;
};
}