Modernized code in guisan objects, improved GUI layout

This commit is contained in:
Dimitris Panokostas 2020-05-15 00:27:51 +02:00
parent ed31f6849d
commit ecb56ef5be
94 changed files with 7326 additions and 7347 deletions

View file

@ -64,42 +64,41 @@
namespace gcn
{
class Widget;
class Widget;
/**
* Represents an action event.
*
* @author Olof Naessén
* @since 0.6.0
*/
class GCN_CORE_DECLSPEC ActionEvent: public Event
{
public:
/**
* Represents an action event.
*
* @author Olof Naessén
* @since 0.6.0
*/
class GCN_CORE_DECLSPEC ActionEvent : public Event
{
public:
/**
* Constructor.
*
* @param source the source widget of the event.
* @param id the identifier of the event.
*/
ActionEvent(Widget* source, const std::string& id);
/**
* Constructor.
*
* @param source the source widget of the event.
* @param id the identifier of the event.
*/
ActionEvent(Widget* source, std::string id);
/**
* Destructor.
*/
virtual ~ActionEvent();
/**
* Destructor.
*/
virtual ~ActionEvent();
/**
* Gets the id of the event.
*
* @return the id of the event.
*/
const std::string& getId() const;
/**
* Gets the id of the event.
*
* @return the id of the event.
*/
[[nodiscard]] const std::string& getId() const;
protected:
std::string mId;
};
protected:
std::string mId;
};
}
#endif // GCN_ACTIONEVENT_HPP