Optimized Button class. Added IsPressed and GetPressed methods.
This commit is contained in:
@@ -8,24 +8,30 @@ namespace ehs
|
||||
class EHS_LIB_IO Button
|
||||
{
|
||||
private:
|
||||
Str_8 name;
|
||||
UInt_32 hash;
|
||||
Str_8 name;
|
||||
|
||||
public:
|
||||
Button();
|
||||
|
||||
Button(const Str_8& name);
|
||||
Button(Str_8 name);
|
||||
|
||||
Button(const Button& key);
|
||||
Button(Button &&key) noexcept;
|
||||
|
||||
Button& operator=(const Button& key);
|
||||
Button(const Button &key);
|
||||
|
||||
bool operator==(const Button& key) const;
|
||||
Button &operator=(Button &&key) noexcept;
|
||||
|
||||
bool operator!=(const Button& key) const;
|
||||
Button &operator=(const Button &key);
|
||||
|
||||
bool operator==(const Button &key) const;
|
||||
|
||||
bool operator!=(const Button &key) const;
|
||||
|
||||
UInt_32 GetHash() const;
|
||||
|
||||
Str_8 GetName() const;
|
||||
|
||||
UInt_32 GetHash() const;
|
||||
bool IsValid() const;
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user