blob: 958266bf341266bb1cf9b00b1473a67ee1f70a3c (
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
|
#ifndef TURNS_ADW_TOASTOVERLAY_HPP
#define TURNS_ADW_TOASTOVERLAY_HPP
#include "turns/adw/helpers/gobj_cast.hpp"
#include "turns/adw/helpers/properties.hpp"
#include <glibmm/refptr.h>
#include <gtkmm/widget.h>
using AdwToastOverlay = struct _AdwToastOverlay;
namespace turns::adw
{
struct ToastOverlay_Class;
struct Toast;
struct ToastOverlay final : Gtk::Widget,
helpers::gobj_mixin<ToastOverlay, AdwToastOverlay>
{
using helpers::gobj_mixin<ToastOverlay, AdwToastOverlay>::gobj;
using helpers::gobj_mixin<ToastOverlay, AdwToastOverlay>::gobj_copy;
ToastOverlay(ToastOverlay && other) noexcept = default;
auto operator=(ToastOverlay && other) noexcept -> ToastOverlay & = default;
ToastOverlay(ToastOverlay const & other) = delete;
auto operator=(ToastOverlay const & other) noexcept -> ToastOverlay & = delete;
explicit ToastOverlay();
auto static get_type() -> GType;
auto static get_base_type() -> GType;
auto add(Toast && toast) -> void;
// clang-format off
template<typename Self> auto property_child(this Self && self);
// clang-format on
protected:
explicit ToastOverlay(Glib::ConstructParams const & params);
explicit ToastOverlay(AdwToastOverlay * gobj);
private:
friend ToastOverlay_Class;
static ToastOverlay_Class s_class;
};
template<typename Self>
auto ToastOverlay::property_child(this Self && self)
{
return helpers::make_property_proxy<Gtk::Widget *>(self, "child");
}
} // namespace turns::adw
namespace Glib
{
auto wrap(AdwToastOverlay * object, bool copy = false) -> Glib::RefPtr<turns::adw::ToastOverlay>;
} // namespace Glib
#endif
|