AG_Slider * AG_SliderNewUint8R(void *parent, enum ag_slider_type type, Uint flags, Uint8 *val, Uint8 min, Uint8 max) { AG_Slider *sl = AG_SliderNew(parent, type, flags); if (val != NULL) { AG_BindUint8(sl, "value", val); } AG_SetUint8(sl, "min", min); AG_SetUint8(sl, "max", max); return (sl); }
bool GuiConfig::Write(const std::string &option, const bool &value) { if(!option.size()) return true; if(AG_SetUint8(agConfig, option.c_str(), value) == NULL) return true; return false; }
void agar_gui_widget_set_uint8 (AG_Widget *w, const char *binding, Uint8 val) { AG_SetUint8 (w, binding, val); }