PlexyDesk : GPU accelerated Display Server for GNU/Linux and BSD
Search
PlexyDesk
Not logged in
Talk
Contributions
Create account
Log in
Open Desktop Systems Journal
Main page
Documentation
Architecture
Development
Components
News
Gallery
Community
Page
Discussion
Read
Edit
Edit source
View history
Editing
PlexyUI API
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Layout properties == These functions change how a widget is positioned, aligned, or sized inside its parent layout. === <code>plexy_flex_direction</code> === <pre>void plexy_flex_direction(PlexyWindow* win, uint32_t widget_id, int direction);</pre> Set the flex direction property on an existing widget. '''Note:''' 0=row, 1=column ==== Parameters ==== {| class="wikitable" |- ! Parameter !! Type !! Description |- | <code>win</code> || <code>PlexyWindow*</code> || Window handle that owns or contains the widget tree. |- | <code>widget_id</code> || <code>uint32_t</code> || Widget ID of the target control or container. |- | <code>direction</code> || <code>int</code> || Layout direction constant, such as row or column. |} === <code>plexy_justify</code> === <pre>void plexy_justify(PlexyWindow* win, uint32_t widget_id, int justify);</pre> Set the justify property on an existing widget. ==== Parameters ==== {| class="wikitable" |- ! Parameter !! Type !! Description |- | <code>win</code> || <code>PlexyWindow*</code> || Window handle that owns or contains the widget tree. |- | <code>widget_id</code> || <code>uint32_t</code> || Widget ID of the target control or container. |- | <code>justify</code> || <code>int</code> || Main-axis justification constant. |} === <code>plexy_align</code> === <pre>void plexy_align(PlexyWindow* win, uint32_t widget_id, int align);</pre> Set the align property on an existing widget. ==== Parameters ==== {| class="wikitable" |- ! Parameter !! Type !! Description |- | <code>win</code> || <code>PlexyWindow*</code> || Window handle that owns or contains the widget tree. |- | <code>widget_id</code> || <code>uint32_t</code> || Widget ID of the target control or container. |- | <code>align</code> || <code>int</code> || Cross-axis alignment constant. |} === <code>plexy_flex_grow</code> === <pre>void plexy_flex_grow(PlexyWindow* win, uint32_t widget_id, float grow);</pre> Set the flex grow property on an existing widget. ==== Parameters ==== {| class="wikitable" |- ! Parameter !! Type !! Description |- | <code>win</code> || <code>PlexyWindow*</code> || Window handle that owns or contains the widget tree. |- | <code>widget_id</code> || <code>uint32_t</code> || Widget ID of the target control or container. |- | <code>grow</code> || <code>float</code> || Flex growth factor used during layout. |} === <code>plexy_size</code> === <pre>void plexy_size(PlexyWindow* win, uint32_t widget_id, float width, float height);</pre> Set the size property on an existing widget. ==== Parameters ==== {| class="wikitable" |- ! Parameter !! Type !! Description |- | <code>win</code> || <code>PlexyWindow*</code> || Window handle that owns or contains the widget tree. |- | <code>widget_id</code> || <code>uint32_t</code> || Widget ID of the target control or container. |- | <code>width</code> || <code>float</code> || Requested width in pixels. |- | <code>height</code> || <code>float</code> || Requested height in pixels. |} === <code>plexy_margin</code> === <pre>void plexy_margin(PlexyWindow* win, uint32_t widget_id, float top, float right, float bottom, float left);</pre> Set the margin property on an existing widget. ==== Parameters ==== {| class="wikitable" |- ! Parameter !! Type !! Description |- | <code>win</code> || <code>PlexyWindow*</code> || Window handle that owns or contains the widget tree. |- | <code>widget_id</code> || <code>uint32_t</code> || Widget ID of the target control or container. |- | <code>top</code> || <code>float</code> || Top edge distance or coordinate. |- | <code>right</code> || <code>float</code> || Right edge distance. |- | <code>bottom</code> || <code>float</code> || Bottom edge distance. |- | <code>left</code> || <code>float</code> || Left edge distance. |} === <code>plexy_padding</code> === <pre>void plexy_padding(PlexyWindow* win, uint32_t widget_id, float top, float right, float bottom, float left);</pre> Set the padding property on an existing widget. ==== Parameters ==== {| class="wikitable" |- ! Parameter !! Type !! Description |- | <code>win</code> || <code>PlexyWindow*</code> || Window handle that owns or contains the widget tree. |- | <code>widget_id</code> || <code>uint32_t</code> || Widget ID of the target control or container. |- | <code>top</code> || <code>float</code> || Top edge distance or coordinate. |- | <code>right</code> || <code>float</code> || Right edge distance. |- | <code>bottom</code> || <code>float</code> || Bottom edge distance. |- | <code>left</code> || <code>float</code> || Left edge distance. |} === <code>plexy_gap</code> === <pre>void plexy_gap(PlexyWindow* win, uint32_t widget_id, float gap);</pre> Set the gap property on an existing widget. ==== Parameters ==== {| class="wikitable" |- ! Parameter !! Type !! Description |- | <code>win</code> || <code>PlexyWindow*</code> || Window handle that owns or contains the widget tree. |- | <code>widget_id</code> || <code>uint32_t</code> || Widget ID of the target control or container. |- | <code>gap</code> || <code>float</code> || Spacing inserted between child items. |}
Summary:
Please note that all contributions to PlexyDesk - Display Server for GNU/Linux may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Project:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)