diff -r bb21210e9cac -r d7a7fb79b5f7 ui/motif/graphics.c --- a/ui/motif/graphics.c Wed Jan 27 12:10:42 2016 +0100 +++ b/ui/motif/graphics.c Wed Jan 27 12:52:39 2016 +0100 @@ -28,6 +28,8 @@ #include #include +#include +#include #include "graphics.h" @@ -134,6 +136,16 @@ } } +void ui_drawingarea_getsize(UIWIDGET drawingarea, int *width, int *height) { + // TODO +} + +void ui_drawingarea_redraw(UIWIDGET drawingarea) { + XClearArea(XtDisplay(drawingarea), drawingarea->core.window, 0, 0, drawingarea->core.width, drawingarea->core.height, True); + +} + + /* -------------------- text layout functions -------------------- */ UiTextLayout* ui_text(UiGraphics *g) { UiTextLayout *text = malloc(sizeof(UiTextLayout));