\hypertarget{structzxdg__positioner__v6__interface}{}\section{zxdg\+\_\+positioner\+\_\+v6\+\_\+interface Struct Reference}
\label{structzxdg__positioner__v6__interface}\index{zxdg\+\_\+positioner\+\_\+v6\+\_\+interface@{zxdg\+\_\+positioner\+\_\+v6\+\_\+interface}}
\subsection*{Data Fields}
\begin{DoxyCompactItemize}
\item 
void($\ast$ \mbox{\hyperlink{structzxdg__positioner__v6__interface_a873f21211a7cb41689f0c036e35e9a49}{destroy}} )(struct wl\+\_\+client $\ast$client, struct wl\+\_\+resource $\ast$resource)
\begin{DoxyCompactList}\small\item\em destroy the xdg\+\_\+positioner object \end{DoxyCompactList}\item 
void($\ast$ \mbox{\hyperlink{structzxdg__positioner__v6__interface_a2761ebb7b52c5f89ea538d41a48de760}{set\+\_\+size}} )(struct wl\+\_\+client $\ast$client, struct wl\+\_\+resource $\ast$resource, int32\+\_\+t width, int32\+\_\+t height)
\begin{DoxyCompactList}\small\item\em set the size of the to-\/be positioned rectangle \end{DoxyCompactList}\item 
void($\ast$ \mbox{\hyperlink{structzxdg__positioner__v6__interface_acdde0beda6fc0e2c9fadb494b138e47a}{set\+\_\+anchor\+\_\+rect}} )(struct wl\+\_\+client $\ast$client, struct wl\+\_\+resource $\ast$resource, int32\+\_\+t x, int32\+\_\+t y, int32\+\_\+t width, int32\+\_\+t height)
\begin{DoxyCompactList}\small\item\em set the anchor rectangle within the parent surface \end{DoxyCompactList}\item 
void($\ast$ \mbox{\hyperlink{structzxdg__positioner__v6__interface_aa863fec45738918345c69de901e7669d}{set\+\_\+anchor}} )(struct wl\+\_\+client $\ast$client, struct wl\+\_\+resource $\ast$resource, uint32\+\_\+t anchor)
\begin{DoxyCompactList}\small\item\em set anchor rectangle anchor edges \end{DoxyCompactList}\item 
void($\ast$ \mbox{\hyperlink{structzxdg__positioner__v6__interface_a7c454050905db3f27567cd87c19a0ca9}{set\+\_\+gravity}} )(struct wl\+\_\+client $\ast$client, struct wl\+\_\+resource $\ast$resource, uint32\+\_\+t gravity)
\begin{DoxyCompactList}\small\item\em set child surface gravity \end{DoxyCompactList}\item 
void($\ast$ \mbox{\hyperlink{structzxdg__positioner__v6__interface_a3b5f779a4885b51cb54ac36db09b96a9}{set\+\_\+constraint\+\_\+adjustment}} )(struct wl\+\_\+client $\ast$client, struct wl\+\_\+resource $\ast$resource, uint32\+\_\+t constraint\+\_\+adjustment)
\begin{DoxyCompactList}\small\item\em set the adjustment to be done when constrained \end{DoxyCompactList}\item 
void($\ast$ \mbox{\hyperlink{structzxdg__positioner__v6__interface_acec9f2bb47f2fccd1d76012968f6ee33}{set\+\_\+offset}} )(struct wl\+\_\+client $\ast$client, struct wl\+\_\+resource $\ast$resource, int32\+\_\+t x, int32\+\_\+t y)
\begin{DoxyCompactList}\small\item\em set surface position offset \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Field Documentation}
\mbox{\Hypertarget{structzxdg__positioner__v6__interface_a873f21211a7cb41689f0c036e35e9a49}\label{structzxdg__positioner__v6__interface_a873f21211a7cb41689f0c036e35e9a49}} 
\index{zxdg\+\_\+positioner\+\_\+v6\+\_\+interface@{zxdg\+\_\+positioner\+\_\+v6\+\_\+interface}!destroy@{destroy}}
\index{destroy@{destroy}!zxdg\+\_\+positioner\+\_\+v6\+\_\+interface@{zxdg\+\_\+positioner\+\_\+v6\+\_\+interface}}
\subsubsection{\texorpdfstring{destroy}{destroy}}
{\footnotesize\ttfamily void($\ast$ zxdg\+\_\+positioner\+\_\+v6\+\_\+interface\+::destroy) (struct wl\+\_\+client $\ast$client, struct wl\+\_\+resource $\ast$resource)}



destroy the xdg\+\_\+positioner object 

Notify the compositor that the xdg\+\_\+positioner will no longer be used. \mbox{\Hypertarget{structzxdg__positioner__v6__interface_a2761ebb7b52c5f89ea538d41a48de760}\label{structzxdg__positioner__v6__interface_a2761ebb7b52c5f89ea538d41a48de760}} 
\index{zxdg\+\_\+positioner\+\_\+v6\+\_\+interface@{zxdg\+\_\+positioner\+\_\+v6\+\_\+interface}!set\+\_\+size@{set\+\_\+size}}
\index{set\+\_\+size@{set\+\_\+size}!zxdg\+\_\+positioner\+\_\+v6\+\_\+interface@{zxdg\+\_\+positioner\+\_\+v6\+\_\+interface}}
\subsubsection{\texorpdfstring{set\+\_\+size}{set\_size}}
{\footnotesize\ttfamily void($\ast$ zxdg\+\_\+positioner\+\_\+v6\+\_\+interface\+::set\+\_\+size) (struct wl\+\_\+client $\ast$client, struct wl\+\_\+resource $\ast$resource, int32\+\_\+t width, int32\+\_\+t height)}



set the size of the to-\/be positioned rectangle 

Set the size of the surface that is to be positioned with the positioner object. The size is in surface-\/local coordinates and corresponds to the window geometry. See xdg\+\_\+surface.\+set\+\_\+window\+\_\+geometry.

If a zero or negative size is set the invalid\+\_\+input error is raised. 
\begin{DoxyParams}{Parameters}
{\em width} & width of positioned rectangle \\
\hline
{\em height} & height of positioned rectangle \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{structzxdg__positioner__v6__interface_acdde0beda6fc0e2c9fadb494b138e47a}\label{structzxdg__positioner__v6__interface_acdde0beda6fc0e2c9fadb494b138e47a}} 
\index{zxdg\+\_\+positioner\+\_\+v6\+\_\+interface@{zxdg\+\_\+positioner\+\_\+v6\+\_\+interface}!set\+\_\+anchor\+\_\+rect@{set\+\_\+anchor\+\_\+rect}}
\index{set\+\_\+anchor\+\_\+rect@{set\+\_\+anchor\+\_\+rect}!zxdg\+\_\+positioner\+\_\+v6\+\_\+interface@{zxdg\+\_\+positioner\+\_\+v6\+\_\+interface}}
\subsubsection{\texorpdfstring{set\+\_\+anchor\+\_\+rect}{set\_anchor\_rect}}
{\footnotesize\ttfamily void($\ast$ zxdg\+\_\+positioner\+\_\+v6\+\_\+interface\+::set\+\_\+anchor\+\_\+rect) (struct wl\+\_\+client $\ast$client, struct wl\+\_\+resource $\ast$resource, int32\+\_\+t x, int32\+\_\+t y, int32\+\_\+t width, int32\+\_\+t height)}



set the anchor rectangle within the parent surface 

Specify the anchor rectangle within the parent surface that the child surface will be placed relative to. The rectangle is relative to the window geometry as defined by xdg\+\_\+surface.\+set\+\_\+window\+\_\+geometry of the parent surface. The rectangle must be at least 1x1 large.

When the xdg\+\_\+positioner object is used to position a child surface, the anchor rectangle may not extend outside the window geometry of the positioned child\textquotesingle{}s parent surface.

If a zero or negative size is set the invalid\+\_\+input error is raised. 
\begin{DoxyParams}{Parameters}
{\em x} & x position of anchor rectangle \\
\hline
{\em y} & y position of anchor rectangle \\
\hline
{\em width} & width of anchor rectangle \\
\hline
{\em height} & height of anchor rectangle \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{structzxdg__positioner__v6__interface_aa863fec45738918345c69de901e7669d}\label{structzxdg__positioner__v6__interface_aa863fec45738918345c69de901e7669d}} 
\index{zxdg\+\_\+positioner\+\_\+v6\+\_\+interface@{zxdg\+\_\+positioner\+\_\+v6\+\_\+interface}!set\+\_\+anchor@{set\+\_\+anchor}}
\index{set\+\_\+anchor@{set\+\_\+anchor}!zxdg\+\_\+positioner\+\_\+v6\+\_\+interface@{zxdg\+\_\+positioner\+\_\+v6\+\_\+interface}}
\subsubsection{\texorpdfstring{set\+\_\+anchor}{set\_anchor}}
{\footnotesize\ttfamily void($\ast$ zxdg\+\_\+positioner\+\_\+v6\+\_\+interface\+::set\+\_\+anchor) (struct wl\+\_\+client $\ast$client, struct wl\+\_\+resource $\ast$resource, uint32\+\_\+t anchor)}



set anchor rectangle anchor edges 

Defines a set of edges for the anchor rectangle. These are used to derive an anchor point that the child surface will be positioned relative to. If two orthogonal edges are specified (e.\+g. \textquotesingle{}top\textquotesingle{} and \textquotesingle{}left\textquotesingle{}), then the anchor point will be the intersection of the edges (e.\+g. the top left position of the rectangle); otherwise, the derived anchor point will be centered on the specified edge, or in the center of the anchor rectangle if no edge is specified.

If two parallel anchor edges are specified (e.\+g. \textquotesingle{}left\textquotesingle{} and \textquotesingle{}right\textquotesingle{}), the invalid\+\_\+input error is raised. 
\begin{DoxyParams}{Parameters}
{\em anchor} & bit mask of anchor edges \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{structzxdg__positioner__v6__interface_a7c454050905db3f27567cd87c19a0ca9}\label{structzxdg__positioner__v6__interface_a7c454050905db3f27567cd87c19a0ca9}} 
\index{zxdg\+\_\+positioner\+\_\+v6\+\_\+interface@{zxdg\+\_\+positioner\+\_\+v6\+\_\+interface}!set\+\_\+gravity@{set\+\_\+gravity}}
\index{set\+\_\+gravity@{set\+\_\+gravity}!zxdg\+\_\+positioner\+\_\+v6\+\_\+interface@{zxdg\+\_\+positioner\+\_\+v6\+\_\+interface}}
\subsubsection{\texorpdfstring{set\+\_\+gravity}{set\_gravity}}
{\footnotesize\ttfamily void($\ast$ zxdg\+\_\+positioner\+\_\+v6\+\_\+interface\+::set\+\_\+gravity) (struct wl\+\_\+client $\ast$client, struct wl\+\_\+resource $\ast$resource, uint32\+\_\+t gravity)}



set child surface gravity 

Defines in what direction a surface should be positioned, relative to the anchor point of the parent surface. If two orthogonal gravities are specified (e.\+g. \textquotesingle{}bottom\textquotesingle{} and \textquotesingle{}right\textquotesingle{}), then the child surface will be placed in the specified direction; otherwise, the child surface will be centered over the anchor point on any axis that had no gravity specified.

If two parallel gravities are specified (e.\+g. \textquotesingle{}left\textquotesingle{} and \textquotesingle{}right\textquotesingle{}), the invalid\+\_\+input error is raised. 
\begin{DoxyParams}{Parameters}
{\em gravity} & bit mask of gravity directions \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{structzxdg__positioner__v6__interface_a3b5f779a4885b51cb54ac36db09b96a9}\label{structzxdg__positioner__v6__interface_a3b5f779a4885b51cb54ac36db09b96a9}} 
\index{zxdg\+\_\+positioner\+\_\+v6\+\_\+interface@{zxdg\+\_\+positioner\+\_\+v6\+\_\+interface}!set\+\_\+constraint\+\_\+adjustment@{set\+\_\+constraint\+\_\+adjustment}}
\index{set\+\_\+constraint\+\_\+adjustment@{set\+\_\+constraint\+\_\+adjustment}!zxdg\+\_\+positioner\+\_\+v6\+\_\+interface@{zxdg\+\_\+positioner\+\_\+v6\+\_\+interface}}
\subsubsection{\texorpdfstring{set\+\_\+constraint\+\_\+adjustment}{set\_constraint\_adjustment}}
{\footnotesize\ttfamily void($\ast$ zxdg\+\_\+positioner\+\_\+v6\+\_\+interface\+::set\+\_\+constraint\+\_\+adjustment) (struct wl\+\_\+client $\ast$client, struct wl\+\_\+resource $\ast$resource, uint32\+\_\+t constraint\+\_\+adjustment)}



set the adjustment to be done when constrained 

Specify how the window should be positioned if the originally intended position caused the surface to be constrained, meaning at least partially outside positioning boundaries set by the compositor. The adjustment is set by constructing a bitmask describing the adjustment to be made when the surface is constrained on that axis.

If no bit for one axis is set, the compositor will assume that the child surface should not change its position on that axis when constrained.

If more than one bit for one axis is set, the order of how adjustments are applied is specified in the corresponding adjustment descriptions.

The default adjustment is none. 
\begin{DoxyParams}{Parameters}
{\em constraint\+\_\+adjustment} & bit mask of constraint adjustments \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{structzxdg__positioner__v6__interface_acec9f2bb47f2fccd1d76012968f6ee33}\label{structzxdg__positioner__v6__interface_acec9f2bb47f2fccd1d76012968f6ee33}} 
\index{zxdg\+\_\+positioner\+\_\+v6\+\_\+interface@{zxdg\+\_\+positioner\+\_\+v6\+\_\+interface}!set\+\_\+offset@{set\+\_\+offset}}
\index{set\+\_\+offset@{set\+\_\+offset}!zxdg\+\_\+positioner\+\_\+v6\+\_\+interface@{zxdg\+\_\+positioner\+\_\+v6\+\_\+interface}}
\subsubsection{\texorpdfstring{set\+\_\+offset}{set\_offset}}
{\footnotesize\ttfamily void($\ast$ zxdg\+\_\+positioner\+\_\+v6\+\_\+interface\+::set\+\_\+offset) (struct wl\+\_\+client $\ast$client, struct wl\+\_\+resource $\ast$resource, int32\+\_\+t x, int32\+\_\+t y)}



set surface position offset 

Specify the surface position offset relative to the position of the anchor on the anchor rectangle and the anchor on the surface. For example if the anchor of the anchor rectangle is at (x, y), the surface has the gravity bottom$\vert$right, and the offset is (ox, oy), the calculated surface position will be (x + ox, y
\begin{DoxyItemize}
\item oy). The offset position of the surface is the one used for constraint testing. See set\+\_\+constraint\+\_\+adjustment.
\end{DoxyItemize}

An example use case is placing a popup menu on top of a user interface element, while aligning the user interface element of the parent surface with some user interface element placed somewhere in the popup surface. 
\begin{DoxyParams}{Parameters}
{\em x} & surface position x offset \\
\hline
{\em y} & surface position y offset \\
\hline
\end{DoxyParams}
