Expose set_layer
The set_layer request allows to move a surface to another layer after creating it.
This commit is contained in:
parent
4ff7cf23c9
commit
b4c62f7926
5 changed files with 78 additions and 15 deletions
|
@ -45,6 +45,11 @@ void Window::setKeyboardInteractivity(bool enabled)
|
|||
d->surface->setKeyboardInteractivity(enabled);
|
||||
}
|
||||
|
||||
void Window::setLayer(Layer layer)
|
||||
{
|
||||
d->surface->setLayer(layer);
|
||||
}
|
||||
|
||||
Window::Window(WindowPrivate *d)
|
||||
: d(d)
|
||||
{
|
||||
|
|
|
@ -31,10 +31,22 @@ public:
|
|||
};
|
||||
Q_ENUM(Anchor);
|
||||
|
||||
/**
|
||||
* This enum type is used to specify the layer where a surface can be put in.
|
||||
*/
|
||||
enum Layer {
|
||||
LayerBackground = 0,
|
||||
LayerBottom = 1,
|
||||
LayerTop = 2,
|
||||
LayerOverlay = 3,
|
||||
};
|
||||
Q_ENUM(Layer)
|
||||
|
||||
void setAnchor(Anchor anchor);
|
||||
void setExclusiveZone(int32_t zone);
|
||||
void setMargins(const QMargins &margins);
|
||||
void setKeyboardInteractivity(bool enabled);
|
||||
void setLayer(Layer layer);
|
||||
|
||||
static Window *get(QWindow *window);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue