summaryrefslogtreecommitdiff
path: root/src/lib/libwidget/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libwidget/include')
-rw-r--r--src/lib/libwidget/include/libwidget/core.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/lib/libwidget/include/libwidget/core.h b/src/lib/libwidget/include/libwidget/core.h
index b02ac99..5a5b891 100644
--- a/src/lib/libwidget/include/libwidget/core.h
+++ b/src/lib/libwidget/include/libwidget/core.h
@@ -58,11 +58,15 @@ struct bp_color {
*
* @x: Cartesian X position
* @y: Cartesian Y position
+ * @width: Widget width
+ * @height: Widget height
* @color: Color blueprint
*/
struct blueprint {
uint32_t x;
uint32_t y;
+ uint32_t width;
+ uint32_t height;
struct bp_color color;
};
@@ -96,6 +100,16 @@ struct widget {
};
/*
+ * Initialize the library
+ *
+ * @lwsp: Libwidget state pointer
+ *
+ * Returns zero on success, otherwise a less than zero
+ * value on failure.
+ */
+int libwidget_init(struct libwidget_state *lwsp);
+
+/*
* Initialize a widget
*
* @wp: Widget to initialize