polybar/include/cairo/types.hpp

47 lines
563 B
C++
Raw Normal View History

2017-01-19 04:38:42 +00:00
#pragma once
#include "common.hpp"
POLYBAR_NS
namespace cairo {
struct abspos {
double x;
double y;
};
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 linear_gradient {
double x0;
double y0;
double x1;
double y1;
2017-01-19 10:11:28 +00:00
vector<unsigned int> steps;
2017-01-19 04:38:42 +00:00
};
struct textblock {
string contents;
2017-01-19 10:11:28 +00:00
unsigned char fontindex;
2017-01-19 04:38:42 +00:00
};
}
POLYBAR_NS_END