libwtk-sdl2  0.0.1
Public Member Functions | List of all members
draw_context Struct Reference

Public Member Functions

 draw_context (SDL_Renderer *renderer, font_manager &fm)
 
void present ()
 
void draw_button_box (SDL_Rect box, bool activated, bool selected)
 
void draw_button_text (std::string const &text, SDL_Rect abs_rect)
 
void draw_entry_box (SDL_Rect box, bool selected)
 
void draw_entry_text (std::string text, SDL_Rect abs_rect, int texture_x_offset=0, int texture_y_offset=0)
 
void draw_entry_pressed_background (SDL_Rect box)
 
void draw_entry_active_background (SDL_Rect box)
 
void draw_entry_hightlighted_background (SDL_Rect box)
 
void draw_entry_position_indicator (SDL_Rect box)
 
int draw_label_text (SDL_Rect box, std::string text, bool wrap, int font_idx=0)
 
void draw_background (SDL_Rect box)
 
void set_color (SDL_Color c)
 
void set_color_alpha (SDL_Color c)
 
void draw_rect_filled (SDL_Rect r)
 
void draw_rect (SDL_Rect r)
 
void blit (SDL_Surface *s, const SDL_Rect *srcrect, const SDL_Rect *dstrect)
 
void run_copy_commands (std::vector< copy_command > const &commands, point origin, SDL_Color color)
 
void copy_texture (SDL_Texture *t, SDL_Rect src, SDL_Rect dst)
 
void copy_texture (SDL_Texture *t, SDL_Rect dst)
 

The documentation for this struct was generated from the following file: