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!
== Callback types == === PlexyClickCallback === <pre>typedef void (*PlexyClickCallback)(uint32_t widget_id, void* userdata);</pre> Called when a widget reports a click-style activation. ==== Parameters ==== {| class="wikitable" |- ! Parameter !! Type !! Description |- | <code>widget_id</code> || <code>uint32_t</code> || Widget ID of the target control or container. |- | <code>userdata</code> || <code>void*</code> || Caller-provided context passed back into the callback. |} === PlexyValueCallback === <pre>typedef void (*PlexyValueCallback)(uint32_t widget_id, float value, void* userdata);</pre> Called when a widget emits a numeric value change. ==== Parameters ==== {| class="wikitable" |- ! Parameter !! Type !! Description |- | <code>widget_id</code> || <code>uint32_t</code> || Widget ID of the target control or container. |- | <code>value</code> || <code>float</code> || Numeric value to apply or report. |- | <code>userdata</code> || <code>void*</code> || Caller-provided context passed back into the callback. |} === PlexyTextCallback === <pre>typedef void (*PlexyTextCallback)(uint32_t widget_id, const char* text, void* userdata);</pre> Called when widget text content changes. ==== Parameters ==== {| class="wikitable" |- ! Parameter !! Type !! Description |- | <code>widget_id</code> || <code>uint32_t</code> || Widget ID of the target control or container. |- | <code>text</code> || <code>const char*</code> || Text content to display or apply. |- | <code>userdata</code> || <code>void*</code> || Caller-provided context passed back into the callback. |} === PlexyKeyCallback === <pre>typedef void (*PlexyKeyCallback)(uint32_t widget_id, uint32_t keycode, uint32_t mods, void* userdata);</pre> Called when a widget receives keyboard input. ==== Parameters ==== {| class="wikitable" |- ! Parameter !! Type !! Description |- | <code>widget_id</code> || <code>uint32_t</code> || Widget ID of the target control or container. |- | <code>keycode</code> || <code>uint32_t</code> || Key code supplied with a key event. |- | <code>mods</code> || <code>uint32_t</code> || Modifier state supplied with a key event. |- | <code>userdata</code> || <code>void*</code> || Caller-provided context passed back into the callback. |} === PlexyMenuCallback === <pre>typedef void (*PlexyMenuCallback)(uint32_t item_id, void* userdata);</pre> Called when an application menubar item is chosen. ==== Parameters ==== {| class="wikitable" |- ! Parameter !! Type !! Description |- | <code>item_id</code> || <code>uint32_t</code> || Identifier of a menu item. |- | <code>userdata</code> || <code>void*</code> || Caller-provided context passed back into the callback. |}
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)