6 HSlider::HSlider(const Resources &r):
11 void HSlider::render_part(const Part &part)
13 if(part.get_name()=="slider")
15 const Graphic *graphic=part.get_graphic(state);
16 const Graphic::Sides &shadow=graphic->get_shadow();
17 unsigned gw=graphic->get_slice().w-shadow.left-shadow.right;
18 unsigned gh=(part.get_fill_x() ? geom.h, graphic->get_slice().h)-shadow.bottom-shadow.top;
19 GL::translate((geom.w-gw)*(value-min)/(max-min), part.get_alignment().y