|
Raylib C++
1.0.0
Encapsulates the raylib library
|
Builder to create a RlImage easily. More...
#include <RlImageBuilder.hpp>


Public Types | |
| enum | ImageType { ImageColor = Width | Height | Color, ImageGradientV = Width | Height | Top | Bottom, ImageGradientH = Width | Height | Left | Right, ImageGradientRadial = Width | Height | Density | Inner | Outer, ImageChecked = Width | Height | ChecksX | ChecksY | Col1 | Col2, ImageWhiteNoise = Width | Height | Factor, ImageCellular = Width | Height | TitleSize } |
| Type of image. More... | |
Public Member Functions | |
| RlImageBuilder () | |
| Construct a new RlImageBuilder object. More... | |
| RlImageBuilder & | setType (const ImageType &type) |
| Set the type of image. More... | |
| RlImageBuilder & | setWidth (const int &width) |
| Set the width of image. More... | |
| RlImageBuilder & | setHeight (const int &height) |
| Set the height of image. More... | |
| RlImageBuilder & | setColor (const RlColor &color) |
| Set the color of image. More... | |
| RlImageBuilder & | setTop (const RlColor &top) |
| Set the Top color of image. More... | |
| RlImageBuilder & | setBottom (const RlColor &bottom) |
| Set the Bottom color of image. More... | |
| RlImageBuilder & | setLeft (const RlColor &left) |
| Set the Left color of image. More... | |
| RlImageBuilder & | setRight (const RlColor &right) |
| Set the Right color of image. More... | |
| RlImageBuilder & | setInner (const RlColor &inner) |
| Set the Inner color of image. More... | |
| RlImageBuilder & | setOuter (const RlColor &outer) |
| Set the Outer color of image. More... | |
| RlImageBuilder & | setCol1 (const RlColor &col1) |
| Set the first color. More... | |
| RlImageBuilder & | setCol2 (const RlColor &col2) |
| Set the second color. More... | |
| RlImageBuilder & | setFactor (const float &factor) |
| The factor of the white noise image. More... | |
| RlImageBuilder & | setDensity (const float &density) |
| The density of the radial gradient image. More... | |
| RlImageBuilder & | setTitleSize (const int &titleSize) |
| The title size of the cellular image. More... | |
| RlImageBuilder & | setChecksX (const int &checksX) |
| The number of checks X of the checked image. More... | |
| RlImageBuilder & | setChecksY (const int &checksY) |
| The number of checks Y of the checked image. More... | |
| raylib::image::RlImage | build () override |
| Build the RlImage object. More... | |
Builder to create a RlImage easily.
Type of image.
| raylib::builder::RlImageBuilder::RlImageBuilder | ( | ) |
Construct a new RlImageBuilder object.
|
overridevirtual |
Build the RlImage object.
| BuilderException |
Implements raylib::builder::IBuilder< raylib::image::RlImage >.

| raylib::builder::RlImageBuilder & raylib::builder::RlImageBuilder::setBottom | ( | const RlColor & | bottom | ) |
Set the Bottom color of image.
| bottom | the Bottom color of image |
| raylib::builder::RlImageBuilder & raylib::builder::RlImageBuilder::setChecksX | ( | const int & | checksX | ) |
The number of checks X of the checked image.
| checksX | the number of checks X of the checked image |
| raylib::builder::RlImageBuilder & raylib::builder::RlImageBuilder::setChecksY | ( | const int & | checksY | ) |
The number of checks Y of the checked image.
| checksY | the number of checks Y of the checked image |
| raylib::builder::RlImageBuilder & raylib::builder::RlImageBuilder::setCol1 | ( | const RlColor & | col1 | ) |
| raylib::builder::RlImageBuilder & raylib::builder::RlImageBuilder::setCol2 | ( | const RlColor & | col2 | ) |
| raylib::builder::RlImageBuilder & raylib::builder::RlImageBuilder::setColor | ( | const RlColor & | color | ) |
| raylib::builder::RlImageBuilder & raylib::builder::RlImageBuilder::setDensity | ( | const float & | density | ) |
The density of the radial gradient image.
| density | the density of the radial gradient image |
| raylib::builder::RlImageBuilder & raylib::builder::RlImageBuilder::setFactor | ( | const float & | factor | ) |
The factor of the white noise image.
| factor | the factor of image |
| raylib::builder::RlImageBuilder & raylib::builder::RlImageBuilder::setHeight | ( | const int & | height | ) |
| raylib::builder::RlImageBuilder & raylib::builder::RlImageBuilder::setInner | ( | const RlColor & | inner | ) |
Set the Inner color of image.
| inner | the Inner color of image |
| raylib::builder::RlImageBuilder & raylib::builder::RlImageBuilder::setLeft | ( | const RlColor & | left | ) |
Set the Left color of image.
| left | the Left color of image |
| raylib::builder::RlImageBuilder & raylib::builder::RlImageBuilder::setOuter | ( | const RlColor & | outer | ) |
Set the Outer color of image.
| outer | the Outer color of image |
| raylib::builder::RlImageBuilder & raylib::builder::RlImageBuilder::setRight | ( | const RlColor & | right | ) |
Set the Right color of image.
| right | the Right color of image |
| raylib::builder::RlImageBuilder & raylib::builder::RlImageBuilder::setTitleSize | ( | const int & | titleSize | ) |
The title size of the cellular image.
| titleSize | the title size of the cellular image |
| raylib::builder::RlImageBuilder & raylib::builder::RlImageBuilder::setTop | ( | const RlColor & | top | ) |
| raylib::builder::RlImageBuilder & raylib::builder::RlImageBuilder::setType | ( | const ImageType & | type | ) |
| raylib::builder::RlImageBuilder & raylib::builder::RlImageBuilder::setWidth | ( | const int & | width | ) |
1.8.17