19 #include <Dimension.h> 20 #include <linmath/float2.h> 21 #include <linmath/float3.h> 22 #include <linmath/float4.h> 44 Color(std::string hexString);
52 Color(std::string hexString,
float opacity);
58 Color(
int red,
int green,
int blue);
65 Color(
int red,
int green,
int blue,
float opacity);
70 Color(chag::float4 rawColor);
79 void hexStringToFloat(std::string hexString,
unsigned int pos,
unsigned int len,
float* target);
84 T botLeftX, botLeftY,topRightX,topRightY;
87 : botLeftX(botLeftX), botLeftY(botLeftY), topRightX(topRightX), topRightY(topRightY), empty(
false) {}
121 chag::float3 getCenterOffset(
float width,
float height);
158 HUDGraphic* setRoundedCorners(
int topLeft,
int topRight,
int botRight,
int botLeft);
160 HUDGraphic* setBorder(
int botAndTop,
int leftAndRight,
Color borderColor);
161 HUDGraphic* setBorder(
int top,
int right,
int bot,
int left,
Color borderColor);
162 HUDGraphic* setBorderSize(
int top,
int right,
int bot,
int left);
173 bool textureElseColor;
174 int roundedCorners[4] = {0, 0, 0, 0};
175 int borders[4] = {0, 0, 0, 0};
176 chag::float4 borderColor;
HUDGraphic * setCenterOffset(Dimension offsetX, Dimension offsetY)
Color(std::string hexString)
chag::float4 getBorderColor()
bool isTextureElseColor()
HUDGraphic * setTexturePosition(TexturePosition< int > texturePosition)
HUDGraphic(Texture *texture)
int * getRoundedCorners()