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!
== Style == These functions control visual appearance such as color, corner radius, and surface material. === <code>plexy_set_corner_radius</code> === <pre>void plexy_set_corner_radius(PlexyWindow* win, uint32_t widget_id, float radius);</pre> Set the widget corner radius. ==== 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>radius</code> || <code>float</code> || Corner radius value. |} === <code>plexy_set_elevation</code> === <pre>void plexy_set_elevation(PlexyWindow* win, uint32_t widget_id, float level);</pre> Set the widget elevation or depth styling level. ==== 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>level</code> || <code>float</code> || Elevation level used to influence depth styling. |} === <code>plexy_set_fill_color</code> === <pre>void plexy_set_fill_color(PlexyWindow* win, uint32_t widget_id, float r, float g, float b, float a);</pre> Apply a fill color using RGBA components. ==== 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>r</code> || <code>float</code> || Red color component. |- | <code>g</code> || <code>float</code> || Green color component. |- | <code>b</code> || <code>float</code> || Blue color component. |- | <code>a</code> || <code>float</code> || Alpha or opacity component. |} === <code>plexy_set_fill_color_hex</code> === <pre>void plexy_set_fill_color_hex(PlexyWindow* win, uint32_t widget_id, const char* hex);</pre> Apply a fill color using a hex color string. ==== 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>hex</code> || <code>const char*</code> || Hexadecimal color string. |} === <code>plexy_set_text_color</code> === <pre>void plexy_set_text_color(PlexyWindow* win, uint32_t widget_id, float r, float g, float b, float a);</pre> Apply a text color using RGBA components. ==== 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>r</code> || <code>float</code> || Red color component. |- | <code>g</code> || <code>float</code> || Green color component. |- | <code>b</code> || <code>float</code> || Blue color component. |- | <code>a</code> || <code>float</code> || Alpha or opacity component. |} === <code>plexy_set_text_color_hex</code> === <pre>void plexy_set_text_color_hex(PlexyWindow* win, uint32_t widget_id, const char* hex);</pre> Apply a text color using a hex color string. ==== 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>hex</code> || <code>const char*</code> || Hexadecimal color string. |} === <code>plexy_set_font_size</code> === <pre>void plexy_set_font_size(PlexyWindow* win, uint32_t widget_id, float size);</pre> Set the rendered font size for the 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>size</code> || <code>float</code> || Generic size value or drawer size. |} === <code>plexy_set_border</code> === <pre>void plexy_set_border(PlexyWindow* win, uint32_t widget_id, float r, float g, float b, float a, float width);</pre> Set border color and width for a 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>r</code> || <code>float</code> || Red color component. |- | <code>g</code> || <code>float</code> || Green color component. |- | <code>b</code> || <code>float</code> || Blue color component. |- | <code>a</code> || <code>float</code> || Alpha or opacity component. |- | <code>width</code> || <code>float</code> || Requested width in pixels. |} === <code>plexy_set_glass</code> === <pre>void plexy_set_glass(PlexyWindow* win, uint32_t widget_id, float opacity);</pre> Apply a glass-style material effect with the given opacity. ==== 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>opacity</code> || <code>float</code> || Opacity amount for the material effect. |} === <code>plexy_set_glass_material</code> === <pre>void plexy_set_glass_material(PlexyWindow* win, uint32_t widget_id, float opacity);</pre> Apply the full glass material treatment with the given opacity. ==== 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>opacity</code> || <code>float</code> || Opacity amount for the material effect. |} === <code>plexy_set_surface_material</code> === <pre>void plexy_set_surface_material(PlexyWindow* win, uint32_t widget_id);</pre> Switch the widget back to an opaque surface-style material. ==== 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. |}
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)