|
@@ -40,12 +40,12 @@ namespace BansheeEngine
|
|
|
/**
|
|
/**
|
|
|
* Sets a single rectangle bounds in which the hitbox will capture mouse events.
|
|
* Sets a single rectangle bounds in which the hitbox will capture mouse events.
|
|
|
*/
|
|
*/
|
|
|
- void setBounds(const Rect2I& bounds) { mBounds.clear(); mBounds.push_back(bounds); }
|
|
|
|
|
|
|
+ void setBounds(const Rect2I& bounds);
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* Sets complex bounds consisting of multiple rectangles in which the hitbox will capture mouse events.
|
|
* Sets complex bounds consisting of multiple rectangles in which the hitbox will capture mouse events.
|
|
|
*/
|
|
*/
|
|
|
- void setBounds(const Vector<Rect2I>& bounds) { mBounds = bounds; }
|
|
|
|
|
|
|
+ void setBounds(const Vector<Rect2I>& bounds);
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* Triggered when hit box loses focus (e.g. user clicks outside of its bounds).
|
|
* Triggered when hit box loses focus (e.g. user clicks outside of its bounds).
|
|
@@ -60,6 +60,11 @@ namespace BansheeEngine
|
|
|
private:
|
|
private:
|
|
|
GUIDropDownHitBox(bool captureMouse, const GUIDimensions& dimensions);
|
|
GUIDropDownHitBox(bool captureMouse, const GUIDimensions& dimensions);
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * @copydoc GUIElementContainer::updateClippedBounds
|
|
|
|
|
+ */
|
|
|
|
|
+ void updateClippedBounds() override;
|
|
|
|
|
+
|
|
|
virtual bool _commandEvent(const GUICommandEvent& ev);
|
|
virtual bool _commandEvent(const GUICommandEvent& ev);
|
|
|
virtual bool _mouseEvent(const GUIMouseEvent& ev);
|
|
virtual bool _mouseEvent(const GUIMouseEvent& ev);
|
|
|
virtual bool _isInBounds(const Vector2I position) const;
|
|
virtual bool _isInBounds(const Vector2I position) const;
|