summaryrefslogtreecommitdiff
path: root/src/ui/widget.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/widget.h')
-rw-r--r--src/ui/widget.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui/widget.h b/src/ui/widget.h
index 66fe222b..02ee091f 100644
--- a/src/ui/widget.h
+++ b/src/ui/widget.h
@@ -25,6 +25,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
25/* Base class for UI widgets. */ 25/* Base class for UI widgets. */
26 26
27#include "metrics.h" 27#include "metrics.h"
28#include "util.h"
28 29
29#include <the_Foundation/object.h> 30#include <the_Foundation/object.h>
30#include <the_Foundation/objectlist.h> 31#include <the_Foundation/objectlist.h>
@@ -96,6 +97,7 @@ enum iWidgetFlag {
96#define noBackground_WidgetFlag iBit64(42) 97#define noBackground_WidgetFlag iBit64(42)
97#define drawBackgroundToHorizontalSafeArea_WidgetFlag iBit64(43) 98#define drawBackgroundToHorizontalSafeArea_WidgetFlag iBit64(43)
98#define drawBackgroundToVerticalSafeArea_WidgetFlag iBit64(44) 99#define drawBackgroundToVerticalSafeArea_WidgetFlag iBit64(44)
100#define visualOffset_WidgetFlag iBit64(45)
99 101
100enum iWidgetAddPos { 102enum iWidgetAddPos {
101 back_WidgetAddPos, 103 back_WidgetAddPos,
@@ -113,6 +115,7 @@ struct Impl_Widget {
113 int64_t flags; 115 int64_t flags;
114 iRect rect; 116 iRect rect;
115 int padding[4]; /* left, top, right, bottom */ 117 int padding[4]; /* left, top, right, bottom */
118 iAnim visualOffset;
116 int bgColor; 119 int bgColor;
117 int frameColor; 120 int frameColor;
118 iObjectList *children; 121 iObjectList *children;
@@ -200,6 +203,7 @@ void setPos_Widget (iWidget *, iInt2 pos);
200void setSize_Widget (iWidget *, iInt2 size); 203void setSize_Widget (iWidget *, iInt2 size);
201void setPadding_Widget (iWidget *, int left, int top, int right, int bottom); 204void setPadding_Widget (iWidget *, int left, int top, int right, int bottom);
202iLocalDef void setPadding1_Widget (iWidget *d, int padding) { setPadding_Widget(d, padding, padding, padding, padding); } 205iLocalDef void setPadding1_Widget (iWidget *d, int padding) { setPadding_Widget(d, padding, padding, padding, padding); }
206void setVisualOffset_Widget (iWidget *d, int value, uint32_t span, int animFlags);
203void setBackgroundColor_Widget (iWidget *, int bgColor); 207void setBackgroundColor_Widget (iWidget *, int bgColor);
204void setFrameColor_Widget (iWidget *, int frameColor); 208void setFrameColor_Widget (iWidget *, int frameColor);
205void setCommandHandler_Widget (iWidget *, iBool (*handler)(iWidget *, const char *)); 209void setCommandHandler_Widget (iWidget *, iBool (*handler)(iWidget *, const char *));