summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--desktop/core_window.h26
1 files changed, 19 insertions, 7 deletions
diff --git a/desktop/core_window.h b/desktop/core_window.h
index b7f1ba32e..6138f49e3 100644
--- a/desktop/core_window.h
+++ b/desktop/core_window.h
@@ -34,7 +34,12 @@ typedef enum {
/** Callbacks to achieve various core window functionality. */
struct core_window_callback_table {
- /** Request a redraw of the window. */
+ /**
+ * Request a redraw of the window
+ *
+ * \param cw the core window object
+ * \param r rectangle to redraw
+ */
void (*redraw_request)(struct core_window *cw, struct rect r);
/**
@@ -46,10 +51,21 @@ struct core_window_callback_table {
*/
void (*update_size)(struct core_window *cw, int width, int height);
- /** Scroll the window to make area visible */
+ /**
+ * Scroll the window to make area visible
+ *
+ * \param cw the core window object
+ * \param r rectangle to make visible
+ */
void (*scroll_visible)(struct core_window *cw, struct rect r);
- /** Get window viewport dimensions */
+ /**
+ * Get window viewport dimensions
+ *
+ * \param cw the core window object
+ * \param width to be set to viewport width in px
+ * \param height to be set to viewport height in px
+ */
void (*get_window_dimensions)(struct core_window *cw,
int *width, int *height);
@@ -64,8 +80,4 @@ struct core_window_callback_table {
};
-void core_window_draw(struct core_window *cw, int x, int y, struct rect r,
- const struct redraw_context *ctx);
-
-
#endif