1#ifndef LIBS_SHAPES_CRECTANGLEGRAPHICS_HPP_
2#define LIBS_SHAPES_CRECTANGLEGRAPHICS_HPP_
25 double padding,
double zDepth);
27 double sizeY,
double padding,
double zDepth);
29 double padding,
double zDepth);
31 double padding,
double zDepth);
34 double padding,
double radiusRound,
double zDepth);
36 double padding,
double radiusRound,
double zDepth,
39 double padding,
double radiusRound,
double zDepth);
41 double padding,
double radiusRound,
double zDepth);
43 double sizeY,
double padding,
44 double radiusRound,
double zDepth);
60 void getPos(
double *xPos,
double *yPos)
const;
61 void getSize(
double *sizeX,
double *sizeY)
const;
68 [[nodiscard]]
bool isSameSize(
double sizeX,
double sizeY)
const;
72 CRectangleGraphics(
double x,
double y,
double sizeX,
double sizeY,
double padding,
double zDepth,
bool hasTexture,
74 CRectangleGraphics(
double x,
double y,
double sizeX,
double sizeY,
bool withTexture,
double padding,
75 double radiusRound,
double zDepth,
bool hasGradient,
iv::types::color gradientColor);
Definition CRectangleGraphics.hpp:10
static CRectangleGraphics * createRectangleCornerRound(double x, double y, double sizeX, double sizeY, double padding, double radiusRound, double zDepth)
Definition CRectangleGraphics.cpp:413
static CRectangleGraphics * createRectangle(double x, double y, double sizeX, double sizeY, double padding, double zDepth)
Definition CRectangleGraphics.cpp:328
void getSize(double *sizeX, double *sizeY) const
Definition CRectangleGraphics.cpp:646
static CRectangleGraphics * createRectangleCornerRoundWithGradient(double x, double y, double sizeX, double sizeY, double padding, double radiusRound, double zDepth, iv::types::color gradientColor)
Definition CRectangleGraphics.cpp:424
double m_sizeX
Definition CRectangleGraphics.hpp:83
void setFrame(double thickness, iv::types::color colorFrame)
Definition CRectangleGraphics.cpp:821
static CRectangleGraphics * createRectangleGradient(double x, double y, double sizeX, double sizeY, double padding, double zDepth, iv::types::color gradientColor)
Definition CRectangleGraphics.cpp:340
void drawImage(IGraphics *graphics, const iv::ui::resources::ImageResource &resource) const
Definition CRectangleGraphics.cpp:606
bool operator==(const CRectangleGraphics &b) const
Definition CRectangleGraphics.cpp:575
double m_sizeXPadding
Definition CRectangleGraphics.hpp:85
void getPos(double *xPos, double *yPos) const
Definition CRectangleGraphics.cpp:637
static CRectangleGraphics * createRectangleOrgUpper(double x, double y, double sizeX, double sizeY, double padding, double zDepth)
Definition CRectangleGraphics.cpp:352
CSurface * m_surface
Definition CRectangleGraphics.hpp:88
double m_x
Definition CRectangleGraphics.hpp:78
EPrvRectangleEdgeType m_rectangleEdgeType
Definition CRectangleGraphics.hpp:77
CRectangleGraphics(const CRectangleGraphics &rectangle)
Definition CRectangleGraphics.cpp:472
static CRectangleGraphics * createRectangleCornerRoundWithTexture(double x, double y, double sizeX, double sizeY, double padding, double radiusRound, double zDepth)
Definition CRectangleGraphics.cpp:448
double m_round
Definition CRectangleGraphics.hpp:82
EPrvRectangleEdgeType
Definition CRectangleGraphics.hpp:13
double m_sizeYPadding
Definition CRectangleGraphics.hpp:86
void drawImageWithColor(IGraphics *graphics, iv::types::color colorRGB, const iv::ui::resources::ImageResource &resource) const
Definition CRectangleGraphics.cpp:611
~CRectangleGraphics()
Definition CRectangleGraphics.cpp:554
double m_z
Definition CRectangleGraphics.hpp:80
static CRectangleGraphics * createRectangleCornerRoundWithTextureOrgUpper(double x, double y, double sizeX, double sizeY, double padding, double radiusRound, double zDepth)
Definition CRectangleGraphics.cpp:460
CSurface * m_surfaceFrameOpt
Definition CRectangleGraphics.hpp:89
void setFrameGradient(double thickness, iv::types::color colorExterior, iv::types::color colorInterior)
Definition CRectangleGraphics.cpp:882
void draw(IGraphics *graphics) const
Definition CRectangleGraphics.cpp:591
void removeObjectDraw(IGraphics *graphics)
Definition CRectangleGraphics.cpp:622
CSurface * m_surfaceFrameDarkenOpt
Definition CRectangleGraphics.hpp:90
bool isPointInRectangle(double x, double y) const
Definition CRectangleGraphics.cpp:914
double m_sizeY
Definition CRectangleGraphics.hpp:84
void drawEdges(IGraphics *graphics) const
Definition CRectangleGraphics.cpp:617
void setClip(IGraphics *graphics)
Definition CRectangleGraphics.cpp:896
bool isSameSize(double sizeX, double sizeY) const
Definition CRectangleGraphics.cpp:909
static CRectangleGraphics * createRectangleWithInvertedTexture(double x, double y, double sizeX, double sizeY, double padding, double zDepth)
Definition CRectangleGraphics.cpp:364
void translate(double x, double y)
Definition CRectangleGraphics.cpp:903
bool operator!=(const CRectangleGraphics &b) const
Definition CRectangleGraphics.cpp:583
double m_y
Definition CRectangleGraphics.hpp:79
static CRectangleGraphics * createRectangleWithTexture(double x, double y, double sizeX, double sizeY, double padding, double zDepth)
Definition CRectangleGraphics.cpp:389
static CRectangleGraphics * createRectangleWithInvertedTextureOrgUpper(double x, double y, double sizeX, double sizeY, double padding, double zDepth)
Definition CRectangleGraphics.cpp:376
static CRectangleGraphics * createRectangleWithTextureOrgUpper(double x, double y, double sizeX, double sizeY, double padding, double zDepth)
Definition CRectangleGraphics.cpp:401
static CRectangleGraphics * createRectangleCornerRoundOrgUpper(double x, double y, double sizeX, double sizeY, double padding, double radiusRound, double zDepth)
Definition CRectangleGraphics.cpp:436
Definition CSurface.hpp:10
Definition IGraphics.hpp:20
Definition ImageResource.hpp:15
uint32_t color
Definition types.hpp:12