Exemple #1
0
AG_Slider *
AG_SliderNewSint16R(void *parent, enum ag_slider_type type, Uint flags, Sint16 *val, Sint16 min, Sint16 max)
{
	AG_Slider *sl = AG_SliderNew(parent, type, flags);
	if (val != NULL) { AG_BindSint16(sl, "value", val); }
	AG_SetSint16(sl, "min", min);
	AG_SetSint16(sl, "max", max);
	return (sl);
}
Exemple #2
0
bool GuiConfig::Write(const string &option, const int16_t &value)
{
	if(!option.size())
		return true;

	if(AG_SetSint16(agConfig, option.c_str(), value) == NULL)
		return true;

	return false;
}
Exemple #3
0
void
agar_gui_widget_set_int16 (AG_Widget *w, const char *binding,
  Sint16 val)
{
  AG_SetSint16 (w, binding, val);
}