summaryrefslogtreecommitdiff
path: root/lib/src/turnsmm/turn-order.hpp
blob: 822e879f5f9ad5aba632c429ea94687f7a8658a4 (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
#ifndef TURNSMM_TURN_ORDER_HPP
#define TURNSMM_TURN_ORDER_HPP

#include "turns-turn-order.h"

#include <glibmm/object.h>
#include <glibmm/propertyproxy.h>
#include <glibmm/refptr.h>
#include <glibmm/ustring.h>

namespace Turns
{

  class TurnOrder final : public Glib::Object
  {
  public:
    using BaseClassType = TurnsTurnOrderClass;
    using BaseObjectType = TurnsTurnOrder;
    using CppClassType = class TurnOrder_Class;
    using CppObjectType = TurnOrder;

    TurnOrder();

    [[nodiscard]] auto gobj() noexcept -> BaseObjectType *;
    [[nodiscard]] auto gobj() const -> BaseObjectType const *;
    [[nodiscard]] auto gobj_copy() noexcept -> BaseObjectType *;

    [[nodiscard]] auto get_running() const noexcept -> bool;

    [[nodiscard]] auto property_running() const noexcept -> Glib::PropertyProxy_ReadOnly<bool>;

  protected:
    friend TurnOrder_Class;

    explicit TurnOrder(BaseObjectType * gobj);
  };

}  // namespace Turns

namespace Glib
{
  auto wrap(TurnsTurnOrder * object, bool copy = false) -> Glib::RefPtr<Turns::TurnOrder>;
}  // namespace Glib

#endif