- boolean
bool boolean(const(char)* key)
Undocumented in source. Be warned that the author may not have intended to support it.
- equals
bool equals(const(char)* key, const(char)* val)
Undocumented in source. Be warned that the author may not have intended to support it.
- exists
bool exists(const(char)* key)
Undocumented in source. Be warned that the author may not have intended to support it.
- find
int find(const(char)* key)
Undocumented in source. Be warned that the author may not have intended to support it.
- isvalid
bool isvalid()
Undocumented in source. Be warned that the author may not have intended to support it.
- keyAt
const(char)* keyAt(int index)
Undocumented in source. Be warned that the author may not have intended to support it.
- numArgs
int numArgs()
Undocumented in source. Be warned that the author may not have intended to support it.
- sargs_boolean
bool sargs_boolean(const(char)* key)
return true if key's value is "true", "yes", "on" or an existing key has no value
- sargs_equals
bool sargs_equals(const(char)* key, const(char)* val)
return true if val arg matches the value associated with key
- sargs_exists
bool sargs_exists(const(char)* key)
test if an argument exists by key name
- sargs_find
int sargs_find(const(char)* key)
get index of arg by key name, return -1 if not exists
- sargs_isvalid
bool sargs_isvalid()
true between sargs_setup() and sargs_shutdown()
- sargs_key_at
const(char)* sargs_key_at(int index)
get key name of argument at index, or empty string
- sargs_num_args
int sargs_num_args()
get number of parsed arguments
- sargs_setup
void sargs_setup(Desc* desc)
- sargs_shutdown
void sargs_shutdown()
- sargs_value
const(char)* sargs_value(const(char)* key)
get value by key name, return empty string if key doesn't exist or an existing key has no value
- sargs_value_at
const(char)* sargs_value_at(int index)
get value string of argument at index, or empty string
- sargs_value_def
const(char)* sargs_value_def(const(char)* key, const(char)* def)
get value by key name, return provided default if key doesn't exist or has no value
- setup
void setup(Desc desc)
Undocumented in source. Be warned that the author may not have intended to support it.
- shutdown
void shutdown()
Undocumented in source. Be warned that the author may not have intended to support it.
- value
const(char)* value(const(char)* key)
Undocumented in source. Be warned that the author may not have intended to support it.
- valueAt
const(char)* valueAt(int index)
Undocumented in source. Be warned that the author may not have intended to support it.
- valueDef
const(char)* valueDef(const(char)* key, const(char)* def)
Undocumented in source. Be warned that the author may not have intended to support it.
Machine generated D bindings for Sokol library.
Generated on: 2025-07-06 12:35:39
Source header: sokol_args.h Module: sokol.args
Do not edit manually; regenerate using gen_d.py.