8#include <mousetrap/widget.hpp>
16 using OverlayInternal = GtkOverlay;
17 DEFINE_INTERNAL_MAPPING(Overlay);
24 class Overlay :
public detail::notify_if_gtk_uninitialized,
26 HAS_SIGNAL(Overlay, realize),
27 HAS_SIGNAL(Overlay, unrealize),
28 HAS_SIGNAL(Overlay, destroy),
29 HAS_SIGNAL(Overlay, hide),
30 HAS_SIGNAL(Overlay, show),
31 HAS_SIGNAL(Overlay, map),
32 HAS_SIGNAL(Overlay, unmap)
39 Overlay(detail::OverlayInternal*);
58 void add_overlay(
const Widget& widget,
bool included_in_measurement =
true,
bool clip =
false);
65 detail::OverlayInternal* _internal =
nullptr;
a widget that allows to display multiple widgets above a common child
Definition: overlay.hpp:33
void remove_child()
remove the bottom-most widget
Definition: overlay.cpp:73
void remove_overlay(const Widget &widget)
remove a widget from the overlay, this does not affect the bottom-most child widget
Definition: overlay.cpp:68
Overlay()
construct empty
Definition: overlay.cpp:11
void set_child(const Widget &widget)
set the bottom-most widget
Definition: overlay.cpp:47
void add_overlay(const Widget &widget, bool included_in_measurement=true, bool clip=false)
add a widget on top
Definition: overlay.cpp:56
NativeObject get_internal() const override
expose internal
Definition: overlay.cpp:42
~Overlay()
destructor
Definition: overlay.cpp:37