1
0
Fork 0
mirror of https://github.com/polybar/polybar.git synced 2024-11-11 13:50:56 -05:00
polybar/include/cairo/types.hpp
2017-01-24 11:50:26 +01:00

70 lines
984 B
C++

#pragma once
#include "common.hpp"
POLYBAR_NS
enum class alignment;
namespace cairo {
struct point {
double x;
double y;
};
struct abspos {
double x;
double y;
bool clear{true};
};
struct relpos {
double x;
double y;
};
struct rect {
double x;
double y;
double w;
double h;
};
struct line {
double x1;
double y1;
double x2;
double y2;
double w;
};
struct displace {
double x;
double y;
double w;
double h;
double dx;
double dy;
};
struct linear_gradient {
double x1;
double y1;
double x2;
double y2;
vector<unsigned int> steps;
};
struct rounded_corners {
double x;
double y;
double w;
double h;
double radius;
};
struct textblock {
alignment align;
string contents;
int font;
unsigned int bg;
int bg_operator;
rect bg_rect;
double *x_advance;
double *y_advance;
};
}
POLYBAR_NS_END