Pyrogenesis  trunk
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
CGUIMouseEventMask Class Reference

A custom shape that changes the object's "over-ability", and thus where one can click on it. More...

#include <MouseEventMask.h>

Inheritance diagram for CGUIMouseEventMask:
Inheritance graph
[legend]
Collaboration diagram for CGUIMouseEventMask:
Collaboration graph
[legend]

Classes

class  Impl
 

Public Member Functions

 CGUIMouseEventMask (IGUIObject *owner)
 
 ~CGUIMouseEventMask ()
 
 operator bool () const
 
bool IsMouseOver (const CVector2D &mousePos, const CRect &objectSize) const
 
void ToJSVal (const ScriptRequest &rq, JS::MutableHandleValue value) override
 Converts the setting data to a JS::Value using Script::ToJSVal. More...
 
- Public Member Functions inherited from IGUISetting
 NONCOPYABLE (IGUISetting)
 
 IGUISetting (const CStr &name, IGUIObject *owner)
 
bool FromString (const CStrW &value, const bool sendMessage)
 Parses the given string and assigns to the setting value. More...
 
bool FromJSVal (const ScriptRequest &rq, JS::HandleValue value, const bool sendMessage)
 Parses the given JS::Value using Script::FromJSVal and assigns it to the setting data. More...
 

Protected Member Functions

bool DoFromString (const CStrW &value) override
 
bool DoFromJSVal (const ScriptRequest &rq, JS::HandleValue value) override
 
CStr GetName () const override
 Return the name of the setting, from JS. More...
 
- Protected Member Functions inherited from IGUISetting
 IGUISetting (IGUISetting &&o)
 
virtual ~IGUISetting ()=default
 
virtual void OnSettingChange (const CStr &setting, bool sendMessage)
 Triggers the IGUIObject logic when a setting changes. More...
 

Protected Attributes

std::string m_Spec
 
std::unique_ptr< Implm_Impl
 
- Protected Attributes inherited from IGUISetting
IGUIObjectm_pObject
 The object that stores this setting. More...
 

Detailed Description

A custom shape that changes the object's "over-ability", and thus where one can click on it.

Supported:

TODO:

Constructor & Destructor Documentation

◆ CGUIMouseEventMask()

CGUIMouseEventMask::CGUIMouseEventMask ( IGUIObject owner)

◆ ~CGUIMouseEventMask()

CGUIMouseEventMask::~CGUIMouseEventMask ( )

Member Function Documentation

◆ DoFromJSVal()

bool CGUIMouseEventMask::DoFromJSVal ( const ScriptRequest rq,
JS::HandleValue  value 
)
overrideprotectedvirtual

Implements IGUISetting.

◆ DoFromString()

bool CGUIMouseEventMask::DoFromString ( const CStrW &  value)
overrideprotectedvirtual

Implements IGUISetting.

◆ GetName()

CStr CGUIMouseEventMask::GetName ( ) const
overrideprotectedvirtual

Return the name of the setting, from JS.

Implements IGUISetting.

◆ IsMouseOver()

bool CGUIMouseEventMask::IsMouseOver ( const CVector2D mousePos,
const CRect objectSize 
) const
Returns
true if the mouse pointer is over the mask. False if the mask is not initialised.

◆ operator bool()

CGUIMouseEventMask::operator bool ( ) const
inlineexplicit
Returns
true if the mask is initialised <=> its spec is not ""

◆ ToJSVal()

void CGUIMouseEventMask::ToJSVal ( const ScriptRequest rq,
JS::MutableHandleValue  value 
)
overridevirtual

Converts the setting data to a JS::Value using Script::ToJSVal.

Implements IGUISetting.

Member Data Documentation

◆ m_Impl

std::unique_ptr<Impl> CGUIMouseEventMask::m_Impl
protected

◆ m_Spec

std::string CGUIMouseEventMask::m_Spec
protected

The documentation for this class was generated from the following files: