Exemplo n.º 1
0
AG_Slider *
AG_SliderNewSint32R(void *parent, enum ag_slider_type type, Uint flags, Sint32 *val, Sint32 min, Sint32 max)
{
	AG_Slider *sl = AG_SliderNew(parent, type, flags);
	if (val != NULL) { AG_BindSint32(sl, "value", val); }
	AG_SetSint32(sl, "min", min);
	AG_SetSint32(sl, "max", max);
	return (sl);
}
Exemplo n.º 2
0
bool GuiConfig::Write(const string &option, const int32_t &value)
{
	if(!option.size())
		return true;

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

	return false;
}
Exemplo n.º 3
0
void
agar_gui_widget_set_int32 (AG_Widget *w, const char *binding,
  Sint32 val)
{
  AG_SetSint32 (w, binding, val);
}