22 menu(video, items, click_selects, max_height, max_width, sorter_obj, menu_style, auto_join),
23 active_items_(items.
size(), false) {}
27 ?
"buttons/checkbox-pressed.png"
28 :
"buttons/checkbox.png");
31 Sint16 (rect.x + img->w + 2),
33 Uint16 (rect.w - img->w - 2),
40 if (event.type == SDL_MOUSEBUTTONDOWN) {
41 int hit_box =
hit_checkbox(event.button.x, event.button.y);
surface get_image(const image::locator &i_locator, TYPE type)
function to get the surface corresponding to an image.
GLuint GLuint GLsizei GLenum type
GLint GLint GLint GLint GLint GLint y
const std::vector< std::string > items
void blit_surface(const surface &surf, const SDL_Rect *srcrect, surface &dst, const SDL_Rect *dstrect)
Replacement for sdl_blit.
GLint GLint GLint GLint GLint x