32 #include "../api_display.h"
34 #include "../../Core/Math/origin.h"
35 #include "../../Core/Resources/resource.h"
37 #include "../Image/image_import_description.h"
38 #include "../Render/texture.h"
54 class ResourceManager;
55 class XMLResourceDocument;
125 void throw_if_null()
const;
129 float get_scale_x()
const;
133 float get_scale_y()
const;
137 float get_alpha()
const;
144 void get_alignment(
Origin &origin,
int &x,
int &y)
const;
152 Size get_size()
const;
155 int get_width()
const;
158 int get_height()
const;
167 return impl==other.impl;
173 return impl!=other.impl;
179 return impl < other.impl;
215 const Rectf &dest)
const;
223 const Rectf &dest)
const;
233 const Quadf &dest)
const;
241 const Quadf &dest)
const;
245 void set_scale(
float x,
float y);
249 void set_alpha(
float alpha);
253 void set_color(
const Colorf &color);
261 void set_alignment(
Origin origin,
int x = 0,
int y = 0);
268 void set_linear_filter(
bool linear_filter =
true);
279 const Rect &src_rect,
286 std::shared_ptr<Image_Impl> impl;
Floating point color description class (for float).
Definition: color.h:661
Sub-texture description.
Definition: subtexture.h:46
Resource proxy of a specific type.
Definition: resource.h:59
2D Graphics Canvas
Definition: canvas.h:70
TextureWrapMode
Texture coordinate wrapping modes.
Definition: texture.h:66
void set_color(const Color &c)
Set color.
Definition: image.h:258
unsigned char get_green() const
Returns the green color component, in the range 0-255.
Definition: color.h:91
bool operator<(const Image &other) const
Less than operator.
Definition: image.h:177
Pixel data container.
Definition: pixel_buffer.h:69
unsigned char get_blue() const
Returns the blue color component, in the range 0-255.
Definition: color.h:94
Origin
Alignment origins.
Definition: origin.h:41
Image Import Description Class.
Definition: image_import_description.h:49
unsigned char get_alpha() const
Returns the alpha color component, in the range 0-255.
Definition: color.h:85
unsigned char get_red() const
Returns the red color component, in the range 0-255.
Definition: color.h:88
2D (left,top,right,bottom) rectangle structure - Integer
Definition: rect.h:453
Type a
Definition: vec4.h:84
2D texture object class.
Definition: texture_2d.h:42
Type r
Definition: vec4.h:81
2D (left,top,right,bottom) rectangle structure - Float
Definition: rect.h:467
2D quad structure - Float
Definition: quad.h:216
Virtual File System (VFS).
Definition: file_system.h:48
bool is_null() const
Returns true if this object is invalid.
Definition: image.h:122
bool operator!=(const Image &other) const
Inequality operator.
Definition: image.h:171
Resource manager.
Definition: resource_manager.h:45
bool operator==(const Image &other) const
Equality operator.
Definition: image.h:165
Image class.
Definition: image.h:60
2D (width,height) size structure - Integer
Definition: size.h:157
XML Resource Document.
Definition: xml_resource_document.h:49
Type b
Definition: vec4.h:83
Color description class.
Definition: color.h:47
Type g
Definition: vec4.h:82