![]() |
ARSA Language
2.8
(Encryption, GPU and Web 3.0)
|
#include <arsaui.h>
Public Member Functions | |
void | init () |
initialze arsagui, call !!!ONLY one time!!! when user want to do with arsagui. More... | |
void | deinit () |
deinitialze arsagui, call when user not use arsagui any more. More... | |
const char * | editbox (const char *window, const char *value=0, const char *parent_guid=0) |
bool | setfont (const char *guid, const char *fontlayer, const char *fontname_ttf=0) |
void | setmultiline (const char *guid, bool value=true) |
void | setreadonly (const char *guid, bool value=true) |
void | setpassword (const char *guid, bool value=true) |
const char * | getvalue (const char *guid) |
void | setvalue (const char *guid, const char *value) |
void | setvisible (const char *guid, bool value=true) |
bool | isvisible (const char *guid) |
void | setenable (const char *guid, bool value=true) |
bool | isenable (const char *guid) |
const char * | getselecttext (const char *guid) |
void | inserttext (const char *guid, const char *value) |
insert text at current cursor. More... | |
void | setselecttext (const char *guid) |
set select text with hightlight, lost focus gui for disable. More... | |
void | setfocus (const char *guid, bool focus=true) |
set focus gui. More... | |
bool | isfocus (const char *guid, bool includechild=false) |
is focus on gui. More... | |
void | setmaxchar (const char *guid, int maxchar=1) |
set maximum text. More... | |
int | getmaxchar (const char *guid) |
get maximum text. More... | |
void | clear () |
int | getcount () |
void | remove (const char *guid) |
bool | isidok (const char *guid) |
int | setbuffer (const char *guid, const char *buffername, const char *data) |
const char * | getbuffer (const char *guid, const char *buffername) |
void | settextalign (const char *guid, const char *ax="upperleft", const char *ay="upperleft") |
set text alignment in horizontal and vertical More... | |
int | popevent (const char *guid) |
pop gui event. More... | |
void arsaui::clear | ( | ) |
void arsaui::deinit | ( | ) |
deinitialze arsagui, call when user not use arsagui any more.
const char* arsaui::editbox | ( | const char * | window, |
const char * | value = 0 , |
||
const char * | parent_guid = 0 |
||
) |
const char* arsaui::getbuffer | ( | const char * | guid, |
const char * | buffername | ||
) |
int arsaui::getcount | ( | ) |
int arsaui::getmaxchar | ( | const char * | guid | ) |
get maximum text.
guid | gui id |
const char* arsaui::getselecttext | ( | const char * | guid | ) |
const char* arsaui::getvalue | ( | const char * | guid | ) |
void arsaui::init | ( | ) |
initialze arsagui, call !!!ONLY one time!!! when user want to do with arsagui.
void arsaui::inserttext | ( | const char * | guid, |
const char * | value | ||
) |
insert text at current cursor.
guid | gui id |
value | string to insert |
bool arsaui::isenable | ( | const char * | guid | ) |
bool arsaui::isfocus | ( | const char * | guid, |
bool | includechild = false |
||
) |
is focus on gui.
guid | gui id |
includechild | true is check all child, false is only myself. |
bool arsaui::isidok | ( | const char * | guid | ) |
bool arsaui::isvisible | ( | const char * | guid | ) |
int arsaui::popevent | ( | const char * | guid | ) |
pop gui event.
guid | gui id |
void arsaui::remove | ( | const char * | guid | ) |
int arsaui::setbuffer | ( | const char * | guid, |
const char * | buffername, | ||
const char * | data | ||
) |
void arsaui::setenable | ( | const char * | guid, |
bool | value = true |
||
) |
void arsaui::setfocus | ( | const char * | guid, |
bool | focus = true |
||
) |
set focus gui.
guid | gui id |
focus | true is focus, false is not focus |
bool arsaui::setfont | ( | const char * | guid, |
const char * | fontlayer, | ||
const char * | fontname_ttf = 0 |
||
) |
void arsaui::setmaxchar | ( | const char * | guid, |
int | maxchar = 1 |
||
) |
set maximum text.
guid | gui id |
maxchar | maximum character, default: 1 |
void arsaui::setmultiline | ( | const char * | guid, |
bool | value = true |
||
) |
void arsaui::setpassword | ( | const char * | guid, |
bool | value = true |
||
) |
void arsaui::setreadonly | ( | const char * | guid, |
bool | value = true |
||
) |
void arsaui::setselecttext | ( | const char * | guid | ) |
set select text with hightlight, lost focus gui for disable.
guid | gui id |
void arsaui::settextalign | ( | const char * | guid, |
const char * | ax = "upperleft" , |
||
const char * | ay = "upperleft" |
||
) |
set text alignment in horizontal and vertical
guid | gui id |
ax | alignment on horizontal, default: upperleft , value follows: upperleft -> Aligned to parent's top or left side (default) lowerright -> Aligned to parent's bottom or right side center -> Aligned to the center of parent scale -> Stretched to fit parent |
ay | alignment on vertical, default: upperleft , value follows: upperleft -> Aligned to parent's top or left side (default) lowerright -> Aligned to parent's bottom or right side center -> Aligned to the center of parent scale -> Stretched to fit parent |
void arsaui::setvalue | ( | const char * | guid, |
const char * | value | ||
) |
void arsaui::setvisible | ( | const char * | guid, |
bool | value = true |
||
) |