blob: b41c64b5ccfb8bbc0ceb96b0400d2a0f94d182dd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
#ifndef TURNSMM_PARTICIPANT_HPP
#define TURNSMM_PARTICIPANT_HPP
#include "turns-participant.h"
#include "turnsmm/enums.hpp"
#include <glibmm/object.h>
#include <glibmm/propertyproxy.h>
#include <glibmm/refptr.h>
#include <glibmm/ustring.h>
namespace Turns
{
class Participant final : public Glib::Object
{
public:
using BaseClassType = TurnsParticipantClass;
using BaseObjectType = TurnsParticipant;
using CppClassType = class Participant_Class;
using CppObjectType = Participant;
Participant();
Participant(Glib::ustring const & name, float priority, Disposition disposition);
[[nodiscard]] auto gobj() noexcept -> BaseObjectType *;
[[nodiscard]] auto gobj() const -> BaseObjectType const *;
[[nodiscard]] auto gobj_copy() noexcept -> BaseObjectType *;
[[nodiscard]] auto get_active() const noexcept -> bool;
[[nodiscard]] auto get_defeated() const noexcept -> bool;
[[nodiscard]] auto get_disposition() const noexcept -> Disposition;
[[nodiscard]] auto get_name() const -> Glib::ustring;
[[nodiscard]] auto get_priority() const noexcept -> float;
auto set_active(bool value) noexcept -> void;
auto set_defeated(bool value) noexcept -> void;
auto set_disposition(Disposition value) noexcept -> void;
auto set_name(Glib::ustring const & value) noexcept -> void;
auto set_priority(float value) noexcept -> void;
[[nodiscard]] auto property_active() const noexcept -> Glib::PropertyProxy_ReadOnly<bool>;
[[nodiscard]] auto property_active() noexcept -> Glib::PropertyProxy<bool>;
[[nodiscard]] auto property_defeated() const noexcept -> Glib::PropertyProxy_ReadOnly<bool>;
[[nodiscard]] auto property_defeated() noexcept -> Glib::PropertyProxy<bool>;
[[nodiscard]] auto property_disposition() const noexcept -> Glib::PropertyProxy_ReadOnly<Disposition>;
[[nodiscard]] auto property_disposition() noexcept -> Glib::PropertyProxy<Disposition>;
[[nodiscard]] auto property_name() const noexcept -> Glib::PropertyProxy_ReadOnly<Glib::ustring const &>;
[[nodiscard]] auto property_name() noexcept -> Glib::PropertyProxy<Glib::ustring const &>;
[[nodiscard]] auto property_priority() const noexcept -> Glib::PropertyProxy_ReadOnly<float>;
[[nodiscard]] auto property_priority() noexcept -> Glib::PropertyProxy<float>;
protected:
friend Participant_Class;
explicit Participant(BaseObjectType * gobj);
};
} // namespace Turns
namespace Glib
{
auto wrap(TurnsParticipant * object, bool copy = false) -> Glib::RefPtr<Turns::Participant>;
} // namespace Glib
#endif
|