mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-16 08:57:03 +00:00
Removed view ownership (client should do this)
This commit is contained in:
@@ -44,15 +44,15 @@ struct CVarControlBinding : IControlBinding
|
||||
class Control : public View
|
||||
{
|
||||
protected:
|
||||
std::unique_ptr<IControlBinding> m_controlBinding;
|
||||
IControlBinding* m_controlBinding = nullptr;
|
||||
public:
|
||||
Control(ViewResources& res, View& parentView, std::unique_ptr<IControlBinding>&& controlBinding);
|
||||
Control(ViewResources& res, View& parentView, IControlBinding* controlBinding);
|
||||
void mouseDown(const boo::SWindowCoord&, boo::EMouseButton, boo::EModifierKey);
|
||||
void mouseUp(const boo::SWindowCoord&, boo::EMouseButton, boo::EModifierKey);
|
||||
void mouseEnter(const boo::SWindowCoord&);
|
||||
void mouseLeave(const boo::SWindowCoord&);
|
||||
|
||||
void setControlBinding(std::unique_ptr<IControlBinding>&& controlBinding);
|
||||
IControlBinding* setControlBinding(IControlBinding* controlBinding);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user