15 #ifndef WIDGET_MENU_HPP_INCLUDED
16 #define WIDGET_MENU_HPP_INCLUDED
73 int normal_rgb,
int selected_rgb,
int heading_rgb,
74 double normal_alpha,
double selected_alpha,
double heading_alpha);
79 virtual void draw_row(
menu& menu_ref,
const size_t row_index,
const SDL_Rect& rect,
ROW_TYPE type);
87 std::map<std::string, sdl::timage>
img_map_;
100 sdl::timage background_image_;
126 : fields(fields),
help(), id(id)
167 bool click_selects=
false,
int max_height=-1,
int max_width=-1,
168 const sorter* sorter_obj=
nullptr,
style *menu_style=
nullptr,
const bool auto_join=
true);
187 void set_heading(
const std::vector<std::string>& heading);
193 virtual void set_items(
const std::vector<std::string>&
items,
bool strip_spaces=
true,
194 bool keep_viewport=
false);
235 int hit(
int x,
int y)
const;
237 std::pair<int,int>
hit_cell(
int x,
int y)
const;
319 void fill_items(
const std::vector<std::string>&
items,
bool strip_spaces);
GLuint GLuint GLsizei GLenum type
GLint GLint GLint GLint GLint GLint y
const std::vector< std::string > items
GLsizei const GLfloat * value
GLenum GLenum GLvoid GLvoid * column
GLint GLint GLint GLint GLint x
GLint GLint GLint GLint GLint GLint GLsizei GLsizei height
GLenum GLenum GLvoid * row
this module manages the cache of images.
GLint GLint GLint GLint GLint GLint GLsizei width
GLsizei const GLcharARB ** string