summaryrefslogtreecommitdiffstats
path: root/include/widgets
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2016-12-27 22:19:15 +0100
committerDave Davenport <qball@gmpclient.org>2016-12-27 22:19:15 +0100
commit1c611b0eecff798c576771a72c58504579e581c8 (patch)
tree42d36af10625184a0e09b2556624a836fd77d04b /include/widgets
parentc5439118a70a8c8370ff3730962752356b3dd466 (diff)
First start at adding 4 sided padding
Diffstat (limited to 'include/widgets')
-rw-r--r--include/widgets/box.h2
-rw-r--r--include/widgets/widget-internal.h6
2 files changed, 7 insertions, 1 deletions
diff --git a/include/widgets/box.h b/include/widgets/box.h
index 4e5274fb..4aa71212 100644
--- a/include/widgets/box.h
+++ b/include/widgets/box.h
@@ -57,7 +57,7 @@ void box_add ( box *box, widget *child, gboolean expand, gboolean end );
* @param box Handle to the box widget.
*
* Obtains the minimal size required to display all widgets. (expanding widgets are not counted, except for their
- * padding)
+ * spacing)
*
* @returns the minimum size in pixels.
*/
diff --git a/include/widgets/widget-internal.h b/include/widgets/widget-internal.h
index 1638d9f1..5d810cf2 100644
--- a/include/widgets/widget-internal.h
+++ b/include/widgets/widget-internal.h
@@ -1,6 +1,7 @@
#ifndef WIDGET_INTERNAL_H
#define WIDGET_INTERNAL_H
+#include "theme.h"
/**
* Data structure holding the internal state of the Widget
*/
@@ -14,6 +15,8 @@ struct _widget
short w;
/** Height of the widget */
short h;
+ /** Padding */
+ Padding pad;
/** enabled or not */
gboolean enabled;
/** Expand the widget when packed */
@@ -48,5 +51,8 @@ struct _widget
/** Name of widget (used for theming) */
char *name;
+ char *class_name;
};
+
+void widget_init ( widget *widget , const char *name, const char *class_name );
#endif // WIDGET_INTERNAL_H