2017-01-19 04:38:42 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "common.hpp"
|
|
|
|
|
|
|
|
POLYBAR_NS
|
|
|
|
|
2017-01-19 14:05:26 +00:00
|
|
|
enum class alignment;
|
|
|
|
|
2017-01-19 04:38:42 +00:00
|
|
|
namespace cairo {
|
2017-01-24 05:59:58 +00:00
|
|
|
struct point {
|
|
|
|
double x;
|
|
|
|
double y;
|
|
|
|
};
|
2017-01-19 04:38:42 +00:00
|
|
|
struct abspos {
|
|
|
|
double x;
|
|
|
|
double y;
|
2017-01-19 14:05:26 +00:00
|
|
|
bool clear{true};
|
2017-01-19 04:38:42 +00:00
|
|
|
};
|
|
|
|
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;
|
|
|
|
};
|
2017-01-24 05:59:58 +00:00
|
|
|
struct displace {
|
|
|
|
double x;
|
|
|
|
double y;
|
|
|
|
double w;
|
|
|
|
double h;
|
|
|
|
double dx;
|
|
|
|
double dy;
|
|
|
|
};
|
2017-01-19 04:38:42 +00:00
|
|
|
struct linear_gradient {
|
|
|
|
double x1;
|
|
|
|
double y1;
|
2017-01-24 05:59:58 +00:00
|
|
|
double x2;
|
|
|
|
double y2;
|
2017-01-19 10:11:28 +00:00
|
|
|
vector<unsigned int> steps;
|
2017-01-19 04:38:42 +00:00
|
|
|
};
|
2017-01-19 14:05:26 +00:00
|
|
|
struct rounded_corners {
|
|
|
|
double x;
|
|
|
|
double y;
|
|
|
|
double w;
|
|
|
|
double h;
|
|
|
|
double radius;
|
|
|
|
};
|
2017-01-19 04:38:42 +00:00
|
|
|
struct textblock {
|
2017-01-19 14:05:26 +00:00
|
|
|
alignment align;
|
2017-01-19 04:38:42 +00:00
|
|
|
string contents;
|
2017-01-24 10:50:16 +00:00
|
|
|
int font;
|
2017-01-24 05:59:58 +00:00
|
|
|
unsigned int bg;
|
|
|
|
int bg_operator;
|
|
|
|
rect bg_rect;
|
|
|
|
double *x_advance;
|
|
|
|
double *y_advance;
|
2017-01-19 04:38:42 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
POLYBAR_NS_END
|