Mercurial > dwindows
comparison dw.h @ 2355:fad0821cb953
Add new function dw_render_redraw() which will trigger expose event on render widgets.
This is to help optimize drawing on GTK4 and GTK3 with Wayland. To make existing code
function on GTK4 and GTK3 with Wayland, drawing outside of a callback will mark widgets
dirty and dw_flush() will trigger draw/expose callbacks on them. This may result in
double drawing the widgets. dw_render_redraw() will allow you to just trigger the
draw event without actually attempting to draw, allowing one draw pass in the expose
callback. Only tested on Windows, may require fixes on other platforms.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Mon, 08 Mar 2021 19:53:55 +0000 |
parents | 3361ce6070ce |
children | df0a66945296 |
comparison
equal
deleted
inserted
replaced
2354:dfb52d2bddaa | 2355:fad0821cb953 |
---|---|
1810 void API dw_thread_end(void); | 1810 void API dw_thread_end(void); |
1811 DWTID API dw_thread_id(void); | 1811 DWTID API dw_thread_id(void); |
1812 void API dw_exit(int exitcode); | 1812 void API dw_exit(int exitcode); |
1813 void API dw_shutdown(void); | 1813 void API dw_shutdown(void); |
1814 HWND API dw_render_new(unsigned long id); | 1814 HWND API dw_render_new(unsigned long id); |
1815 void API dw_render_redraw(HWND handle); | |
1815 void API dw_color_foreground_set(unsigned long value); | 1816 void API dw_color_foreground_set(unsigned long value); |
1816 void API dw_color_background_set(unsigned long value); | 1817 void API dw_color_background_set(unsigned long value); |
1817 unsigned long API dw_color_choose(unsigned long value); | 1818 unsigned long API dw_color_choose(unsigned long value); |
1818 char * API dw_font_choose(const char *currfont); | 1819 char * API dw_font_choose(const char *currfont); |
1819 void API dw_draw_point(HWND handle, HPIXMAP pixmap, int x, int y); | 1820 void API dw_draw_point(HWND handle, HPIXMAP pixmap, int x, int y); |