PNTK
|
#include <gui_theme_context.h>
Public Member Functions | |
gui_theme_context (gui_draw_event *event, gui_widget *patron, const int style=GUI_STYLE_DEFAULT) | |
void | draw_button (const gui_rect &area, gui_widget_state state) |
void | draw_checkbox (const gui_rect &area, gui_widget_state state, gui_theme_tri_state value) |
void | draw_radiobutton (const gui_rect &area, gui_widget_state state, gui_theme_tri_state value) |
void | draw_background (const gui_rect &area) |
void | draw_tab (const gui_rect &area, gui_widget_state state, gui_position pos) |
void | draw_focus (const gui_rect &area) |
void | draw_frame (const gui_rect &area) |
void | draw_selection (const gui_rect &area) |
gui_size | get_theme_checkbox_size () |
![]() | |
gui_context (gui_draw_event *event) | |
gui_size | get_size () |
void | set_font (gui_font *font) |
void | draw_line (const gui_point &a, const gui_point &b, gui_context_state state) |
void | draw_border (const gui_rect &area, const gui_color &left, const gui_color &top, const gui_color &right, const gui_color &bottom) |
void | draw_rectangle (const gui_rect &area, gui_context_state state) |
void | draw_rounded_rectangle (const gui_rect &area, double radius, gui_context_state state) |
void | draw_circle (const gui_point &pos, double radius, gui_context_state state) |
void | draw_ellipse (const gui_point &pos, double radius_x, double radius_y, gui_context_state state) |
void | draw_ellipse (const gui_rect &area, gui_context_state state) |
void | draw_arc (const gui_point &pos, double radius, double start, double end, gui_context_state state) |
void | draw_point (const gui_point &pos, gui_context_state state) |
void | draw_polygon (const std::vector< gui_point > &points, gui_context_state state) |
void | draw_image (const gui_point &pos, gui_image *img) |
void | draw_image (const gui_point &pos, const gui_rect &src_area, gui_image *img) |
void | draw_image (const gui_rect &dst_area, const gui_rect &src_area, gui_image *img) |
void | draw_text (const gui_rect &area, const std::string &text, gui_context_state state, bool word_wrap=false) |
void | draw_patch (const gui_rect &area, gui_image *patch, gui_rect &margins) |
void | clear (const gui_color &clear_color) |
gui_widget * | get_widget_source () |
gui_draw_event * | get_draw_event () |
gui_size | get_text_extent (const std::string &text, int wrap_width=0) |
A blank canvas with access to OS theme methods.
pntk::gui_theme_context::gui_theme_context | ( | gui_draw_event * | event, |
gui_widget * | patron, | ||
const int | style = GUI_STYLE_DEFAULT |
||
) |
Creates a new rendering context from a source widget.