comparison gtk4/dw.c @ 2328:5363f953b22a

GTK4: Implement dw_window_redraw() for render/drawing area widgets. Causes them to trigger a draw/paint callback.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 28 Feb 2021 11:30:45 +0000
parents 0d7f8136d771
children 47f8f950f377
comparison
equal deleted inserted replaced
2327:0d7f8136d771 2328:5363f953b22a
1888 1888
1889 /* Causes entire window to be invalidated and redrawn. 1889 /* Causes entire window to be invalidated and redrawn.
1890 * Parameters: 1890 * Parameters:
1891 * handle: Toplevel window handle to be redrawn. 1891 * handle: Toplevel window handle to be redrawn.
1892 */ 1892 */
1893 void API dw_window_redraw(HWND handle) 1893 DW_FUNCTION_DEFINITION(dw_window_redraw, void, HWND handle)
1894 { 1894 DW_FUNCTION_ADD_PARAM1(handle)
1895 DW_FUNCTION_NO_RETURN(dw_window_redraw)
1896 DW_FUNCTION_RESTORE_PARAM1(handle, HWND)
1897 {
1898 if(handle && GTK_IS_DRAWING_AREA(handle))
1899 gtk_widget_queue_draw(GTK_WIDGET(handle));
1900 DW_FUNCTION_RETURN_NOTHING;
1895 } 1901 }
1896 1902
1897 /* 1903 /*
1898 * Changes a window's parent to newparent. 1904 * Changes a window's parent to newparent.
1899 * Parameters: 1905 * Parameters: