proper anchor points
This commit is contained in:
1 parent
bdc1a4561d
commit
333ebca300
3 files changed
+151
-99
No files matched your search
+14
-1
@@ -24,6 +24,18 @@ enum easing_t {
|
||||
EASE_IN_OUT_CUBIC
|
||||
};
|
||||
|
||||
enum anchor_point_t {
|
||||
ANCHOR_TOP_LEFT,
|
||||
ANCHOR_TOP_CENTER,
|
||||
ANCHOR_TOP_RIGHT,
|
||||
ANCHOR_CENTER_LEFT,
|
||||
ANCHOR_CENTER,
|
||||
ANCHOR_CENTER_RIGHT,
|
||||
ANCHOR_BOTTOM_LEFT,
|
||||
ANCHOR_BOTTOM_CENTER,
|
||||
ANCHOR_BOTTOM_RIGHT,
|
||||
};
|
||||
|
||||
extern "C" {
|
||||
typedef struct compositor_t compositor_t;
|
||||
|
||||
@@ -39,7 +51,8 @@ uint32_t compositor_insert(compositor_t* comp,
|
||||
uint32_t fb_width,
|
||||
uint32_t fb_height,
|
||||
int32_t x, int32_t y,
|
||||
int32_t z_order, float scale = 1.0f);
|
||||
int32_t z_order, float scale,
|
||||
anchor_point_t anchor);
|
||||
|
||||
// Remove element by ID
|
||||
void compositor_remove(compositor_t* comp, uint32_t id);
|
||||
|
||||
Reference in new issue
Block a user