2024-02-05 22:25:30 -08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "ehs/EHS.h"
|
|
|
|
#include "ehs/Str.h"
|
|
|
|
|
|
|
|
namespace ehs
|
|
|
|
{
|
2024-07-24 01:36:20 -07:00
|
|
|
class EHS_LIB_IO Button
|
2024-02-05 22:25:30 -08:00
|
|
|
{
|
|
|
|
private:
|
|
|
|
UInt_32 hash;
|
2024-08-04 00:47:38 -07:00
|
|
|
Str_8 name;
|
2024-02-05 22:25:30 -08:00
|
|
|
|
|
|
|
public:
|
|
|
|
Button();
|
|
|
|
|
2024-08-04 00:47:38 -07:00
|
|
|
Button(Str_8 name);
|
2024-02-05 22:25:30 -08:00
|
|
|
|
2024-08-04 00:47:38 -07:00
|
|
|
Button(Button &&key) noexcept;
|
2024-02-05 22:25:30 -08:00
|
|
|
|
2024-08-04 00:47:38 -07:00
|
|
|
Button(const Button &key);
|
2024-02-05 22:25:30 -08:00
|
|
|
|
2024-08-04 00:47:38 -07:00
|
|
|
Button &operator=(Button &&key) noexcept;
|
2024-02-05 22:25:30 -08:00
|
|
|
|
2024-08-04 00:47:38 -07:00
|
|
|
Button &operator=(const Button &key);
|
2024-02-05 22:25:30 -08:00
|
|
|
|
2024-08-04 00:47:38 -07:00
|
|
|
bool operator==(const Button &key) const;
|
|
|
|
|
|
|
|
bool operator!=(const Button &key) const;
|
2024-02-05 22:25:30 -08:00
|
|
|
|
|
|
|
UInt_32 GetHash() const;
|
2024-08-04 00:47:38 -07:00
|
|
|
|
|
|
|
Str_8 GetName() const;
|
|
|
|
|
|
|
|
bool IsValid() const;
|
2024-02-05 22:25:30 -08:00
|
|
|
};
|
|
|
|
}
|