Function ui_textboxex
#include <macawui.h>int ui_textboxex(
const char *id,
char *buf,
int size,
const char *placeholder,
int w,
int password
);
Shows a box to type text in, like ui_textbox, with a few more choices.
Parameters
idconst char *- A name you choose, different for each box.
bufchar *- Your buffer with the text, which typing changes.
sizeint- How many bytes
bufholds, with its 0 at the end. Typing that won't fit isn't taken. placeholderconst char *- Grey text shown while the box is empty, like
"your name".NULLfor none. wint- Its width in pixels. 0 for the full width.
passwordint- 0 for plain text,
UI_PASSWORDfor stars and a key button for Nestchain,UI_PASSWORD_NOKEYfor stars only.
Returns int
1 in the frame Enter is pressed in it, 0 otherwise.
In Widgets, with ui_label, ui_heading, ui_separator, ui_button, ui_checkbox, ui_radio, ui_slider, ui_textbox, ui_listbox, ui_dropdown, ui_tabs, ui_progress, ui_swatches, ui_image.