Classes | |
class | clan::Color |
Color description class. More... | |
class | clan::Colorf |
Floating point color description class (for float). More... | |
class | clan::ColorHSLx< Type, ColorType > |
Color HSL description class. More... | |
class | clan::ColorHSVx< Type, ColorType > |
Color HSV description class. More... | |
class | clan::CursorDescription |
This class contains everything to construct a cursor - its data, default settings etc. More... | |
class | clan::CursorDescriptionFrame |
This class describes a single frame in a cursor description. More... | |
class | clan::Gradient |
Colorgradient description class. More... | |
struct | clan::SpanLayout::HitTestResult |
class | clan::Image |
Image class. More... | |
class | clan::SpanLayout |
Span layout class. More... | |
class | clan::Sprite |
Sprite class. More... | |
class | clan::Subtexture |
Sub-texture description. More... | |
class | clan::TextureGroup |
Texture grouping class. More... | |
Typedefs | |
typedef ColorHSLx< double, Colorf > | clan::ColorHSLd |
typedef ColorHSLx< float, Colorf > | clan::ColorHSLf |
typedef ColorHSLx< int, Color > | clan::ColorHSLi |
typedef ColorHSVx< double, Colorf > | clan::ColorHSVd |
typedef ColorHSVx< float, Colorf > | clan::ColorHSVf |
typedef ColorHSVx< int, Color > | clan::ColorHSVi |
Functions | |
clan::CursorDescriptionFrame::CursorDescriptionFrame (PixelBuffer pixelbuffer, Rect rect) | |
Constructs a CursorDescriptionFrame. More... | |
clan::SpanLayout::HitTestResult::HitTestResult () | |
Construction | |
clan::Color::Color () | |
Constructs a color. More... | |
clan::Color::Color (const Colorf &) | |
clan::Color::Color (unsigned char red, unsigned char green, unsigned char blue, unsigned char alpha=255) | |
Constructs a color. More... | |
clan::Color::Color (const std::string &hexstr) | |
Constructs a color. More... | |
Attributes | |
unsigned char | clan::Color::get_alpha () const |
Returns the alpha color component, in the range 0-255. More... | |
unsigned char | clan::Color::get_red () const |
Returns the red color component, in the range 0-255. More... | |
unsigned char | clan::Color::get_green () const |
Returns the green color component, in the range 0-255. More... | |
unsigned char | clan::Color::get_blue () const |
Returns the blue color component, in the range 0-255. More... | |
float | clan::Color::get_alpha_f () const |
Returns the alpha color component, in the range 0-1. More... | |
float | clan::Color::get_red_f () const |
Returns the red color component, in the range 0-1. More... | |
float | clan::Color::get_green_f () const |
Returns the green color component, in the range 0-1. More... | |
float | clan::Color::get_blue_f () const |
Returns the blue color component, in the range 0-1. More... | |
unsigned int | clan::Color::get_argb8 () const |
Returns the color in ARGB8888 format. More... | |
unsigned int | clan::Color::get_abgr8 () const |
Returns the color in ABGR8888 format. More... | |
unsigned int | clan::Color::get_rgba8 () const |
Returns the color in RGBA8888 format. More... | |
unsigned int | clan::Color::get_bgra8 () const |
Returns the color in BGRA8888 format. More... | |
bool | clan::Color::operator== (const Color &c) const |
Color == Color operator (deep compare) More... | |
bool | clan::Color::operator!= (const Color &c) const |
Color != Color operator (deep compare) More... | |
Operations | |
void | clan::Color::set_alpha (unsigned char value) |
Set alpha color component, in the range 0-255. More... | |
void | clan::Color::set_red (unsigned char value) |
Set red color component, in the range 0-255. More... | |
void | clan::Color::set_green (unsigned char value) |
Set green color component, in the range 0-255. More... | |
void | clan::Color::set_blue (unsigned char value) |
Set blue color component, in the range 0-255. More... | |
void | clan::Color::set_alpha_f (float value) |
Set alpha color component, in the range 0-1. More... | |
void | clan::Color::set_red_f (float value) |
Set red color component, in the range 0-1. More... | |
void | clan::Color::set_green_f (float value) |
Set green color component, in the range 0-1. More... | |
void | clan::Color::set_blue_f (float value) |
Set blue color component, in the range 0-1. More... | |
void | clan::Color::set_color (unsigned char new_red, unsigned char new_green, unsigned char new_blue, unsigned char new_alpha=255) |
Set color based on rgba color components in the range 0-255. More... | |
void | clan::Color::set_rgba8 (unsigned int color) |
Set color based on rgba color components. More... | |
void | clan::Color::set_bgra8 (unsigned int color) |
Set color based on rgba color components. More... | |
void | clan::Color::set_rgb8 (unsigned int color) |
Set color based on rgb color components. Alpha is set to 255. More... | |
void | clan::Color::set_argb8 (unsigned int color) |
Set color based on argb color components. More... | |
void | clan::Color::set_colorf (float new_red, float new_green, float new_blue, float new_alpha=1.0f) |
Set color based on rgba color components in the range 0-1. More... | |
Construction | |
clan::Colorf::Colorf () | |
Constructs a color. More... | |
clan::Colorf::Colorf (float r, float g, float b, float a=1.0f) | |
Constructs a color. More... | |
clan::Colorf::Colorf (const float *array_rgba) | |
Constructs a color. More... | |
clan::Colorf::Colorf (const Vec4f &color) | |
Constructs a color. More... | |
clan::Colorf::Colorf (unsigned char r, unsigned char g, unsigned char b, unsigned char a=255) | |
Constructs a color. More... | |
clan::Colorf::Colorf (int r, int g, int b, int a=255) | |
Constructs a color. More... | |
clan::Colorf::Colorf (const Color &color) | |
clan::Colorf::Colorf (const std::string &hexstr) | |
Constructs a color. More... | |
Attributes | |
float | clan::Colorf::get_red () const |
Get Red. More... | |
float | clan::Colorf::get_green () const |
Get Green. More... | |
float | clan::Colorf::get_blue () const |
Get Blue. More... | |
float | clan::Colorf::get_alpha () const |
Get Alpha. More... | |
Operations | |
void | clan::Colorf::normalize () |
Normalize the color by ensuring that all color values lie inbetween (0.0, 1.0) More... | |
void | clan::Colorf::set_alpha (float value) |
Set alpha color component, in the range 0-1. More... | |
void | clan::Colorf::set_red (float value) |
Set red color component, in the range 0-1. More... | |
void | clan::Colorf::set_green (float value) |
Set green color component, in the range 0-1. More... | |
void | clan::Colorf::set_blue (float value) |
Set blue color component, in the range 0-1. More... | |
bool | clan::Colorf::operator== (const Colorf &c) const |
Color == Color operator (deep compare) More... | |
bool | clan::Colorf::operator!= (const Colorf &c) const |
Color != Color operator (deep compare) More... | |
clan::Colorf::operator Color () const | |
Type conversion operator. More... | |
Construction | |
clan::ColorHSLx< Type, ColorType >::ColorHSLx () | |
Constructs a color. More... | |
clan::ColorHSLx< Type, ColorType >::ColorHSLx (Type h, Type s, Type l, Type a) | |
clan::ColorHSLx< Type, ColorType >::ColorHSLx (const ColorHSLx< Type, ColorType > ©) | |
clan::ColorHSLx< Type, ColorType >::ColorHSLx (const Color &color) | |
clan::ColorHSLx< Type, ColorType >::ColorHSLx (const Colorf &color) | |
Attributes | |
Type | clan::ColorHSLx< Type, ColorType >::h |
Type | clan::ColorHSLx< Type, ColorType >::s |
Type | clan::ColorHSLx< Type, ColorType >::l |
Type | clan::ColorHSLx< Type, ColorType >::a |
Operators | |
clan::ColorHSLx< Type, ColorType >::operator ColorType () | |
ColorHSLx< Type, ColorType > & | clan::ColorHSLx< Type, ColorType >::operator= (const ColorHSLx< Type, ColorType > ©) |
= operator. More... | |
bool | clan::ColorHSLx< Type, ColorType >::operator== (const ColorHSLx< Type, ColorType > &color) const |
== operator. More... | |
bool | clan::ColorHSLx< Type, ColorType >::operator!= (const ColorHSLx< Type, ColorType > &color) const |
!= operator. More... | |
Construction | |
clan::ColorHSVx< Type, ColorType >::ColorHSVx () | |
Constructs a color. More... | |
clan::ColorHSVx< Type, ColorType >::ColorHSVx (Type h, Type s, Type v, Type a) | |
clan::ColorHSVx< Type, ColorType >::ColorHSVx (const ColorHSVx< Type, ColorType > ©) | |
clan::ColorHSVx< Type, ColorType >::ColorHSVx (const Color &color) | |
clan::ColorHSVx< Type, ColorType >::ColorHSVx (const Colorf &color) | |
Attributes | |
Type | clan::ColorHSVx< Type, ColorType >::h |
Type | clan::ColorHSVx< Type, ColorType >::s |
Type | clan::ColorHSVx< Type, ColorType >::v |
Type | clan::ColorHSVx< Type, ColorType >::a |
Operators | |
clan::ColorHSVx< Type, ColorType >::operator ColorType () | |
ColorHSVx< Type, ColorType > & | clan::ColorHSVx< Type, ColorType >::operator= (const ColorHSVx< Type, ColorType > ©) |
= operator. More... | |
bool | clan::ColorHSVx< Type, ColorType >::operator== (const ColorHSVx< Type, ColorType > &color) const |
== operator. More... | |
bool | clan::ColorHSVx< Type, ColorType >::operator!= (const ColorHSVx< Type, ColorType > &color) const |
!= operator. More... | |
Construction | |
clan::Gradient::Gradient () | |
Constructs a color gradient. More... | |
clan::Gradient::Gradient (const Colorf &top_left, const Colorf &top_right, const Colorf &bottom_left, const Colorf &bottom_right) | |
Constructs a color gradient. More... | |
clan::Gradient::Gradient (const Colorf &first_color, const Colorf &second_color) | |
Constructs a Gradient. More... | |
Attributes | |
Colorf | clan::Gradient::top_left |
Color of top left corner of gradient. More... | |
Colorf | clan::Gradient::top_right |
Color of top right corner of gradient. More... | |
Colorf | clan::Gradient::bottom_left |
Color of bottom left corner of gradient. More... | |
Colorf | clan::Gradient::bottom_right |
Color of bottom right corner of gradient. More... | |
bool | clan::Gradient::operator== (const Gradient &other) const |
Compares gradient to another one. More... | |
bool | clan::Gradient::operator!= (const Gradient &other) const |
Compares gradient to another one. More... | |
Construction | |
clan::Image::Image () | |
Constructs a null instance. More... | |
clan::Image::Image (Texture2D texture, const Rect &rect) | |
Constructs an image from a texture. More... | |
clan::Image::Image (Subtexture &sub_texture) | |
Constructs an image from a subtexture. More... | |
clan::Image::Image (Canvas &canvas, const PixelBuffer &pixelbuffer, const Rect &rect) | |
Constructs a Image from a pixelbuffer. More... | |
clan::Image::Image (Canvas &canvas, const std::string &filename, const ImageImportDescription &import_desc=ImageImportDescription()) | |
Constructs a Image. More... | |
clan::Image::Image (Canvas &canvas, const std::string &filename, const FileSystem &fs, const ImageImportDescription &import_desc=ImageImportDescription()) | |
Constructs a Image. More... | |
virtual | clan::Image::~Image () |
Resources | |
static Resource< Image > | clan::Image::resource (Canvas &canvas, const std::string &id, const ResourceManager &resources) |
Retrieves a Sprite resource from the resource manager. More... | |
static Image | clan::Image::load (Canvas &canvas, const std::string &id, const XMLResourceDocument &doc) |
Loads a Sprite from a XML resource definition. More... | |
Attributes | |
bool | clan::Image::is_null () const |
Returns true if this object is invalid. More... | |
void | clan::Image::throw_if_null () const |
Throw an exception if this object is invalid. More... | |
float | clan::Image::get_scale_x () const |
Returns x scale. More... | |
float | clan::Image::get_scale_y () const |
Returns y scale. More... | |
float | clan::Image::get_alpha () const |
Returns current alpha. More... | |
Colorf | clan::Image::get_color () const |
Returns current color. More... | |
void | clan::Image::get_alignment (Origin &origin, float &x, float &y) const |
Returns translation hot-spot. More... | |
Subtexture | clan::Image::get_texture () const |
Return the texture of the image. More... | |
Sizef | clan::Image::get_size () const |
Return the size of the image. More... | |
float | clan::Image::get_width () const |
Return the width of the image. More... | |
float | clan::Image::get_height () const |
Return the height of the image. More... | |
Operators | |
bool | clan::Image::operator== (const Image &other) const |
Equality operator. More... | |
bool | clan::Image::operator!= (const Image &other) const |
Inequality operator. More... | |
bool | clan::Image::operator< (const Image &other) const |
Less than operator. More... | |
Operations | |
Image | clan::Image::clone () const |
Copies all information from this image to another, excluding the graphics that remain shared. More... | |
void | clan::Image::draw (Canvas &canvas, float x, float y) const |
Draw image on graphic context. More... | |
void | clan::Image::draw (Canvas &canvas, const Rectf &src, const Rectf &dest) const |
Draw image on graphic context. More... | |
void | clan::Image::draw (Canvas &canvas, const Rectf &dest) const |
Draw image on graphic context. More... | |
void | clan::Image::draw (Canvas &canvas, const Rectf &src, const Quadf &dest) const |
Draw image on graphic context. More... | |
void | clan::Image::draw (Canvas &canvas, const Quadf &dest) const |
Draw image on graphic context. More... | |
void | clan::Image::set_scale (float x, float y) |
Set scale for x and y directions individually. More... | |
void | clan::Image::set_alpha (float alpha) |
Sets transparency. More... | |
void | clan::Image::set_color (const Colorf &color) |
Sets the color. More... | |
void | clan::Image::set_color (const Color &c) |
Set color. More... | |
void | clan::Image::set_alignment (Origin origin, float x=0, float y=0) |
Sets translation hotspot. More... | |
void | clan::Image::set_wrap_mode (TextureWrapMode wrap_s, TextureWrapMode wrap_t) |
void | clan::Image::set_linear_filter (bool linear_filter=true) |
Set to true if a linear filter should be used for scaling up and down, false if a nearest-point filter should be used. More... | |
Construction | |
clan::SpanLayout::SpanLayout () | |
clan::SpanLayout::~SpanLayout () | |
Operations | |
void | clan::SpanLayout::clear () |
Clear. More... | |
void | clan::SpanLayout::add_text (const std::string &text, const Font &font, const Colorf &color=Colorf::white, int id=-1) |
Add text. More... | |
void | clan::SpanLayout::add_image (const Image &image, int baseline_offset=0, int id=-1) |
Add image. More... | |
template<typename T > | |
void | clan::SpanLayout::add_component (T *component, int baseline_offset=0, int id=-1) |
Add component. More... | |
void | clan::SpanLayout::layout (Canvas &canvas, int max_width) |
Layout. More... | |
void | clan::SpanLayout::set_position (const Point &pos) |
Set position. More... | |
Size | clan::SpanLayout::get_size () const |
Get Size. More... | |
Rect | clan::SpanLayout::get_rect () const |
Get Rect. More... | |
std::vector< Rect > | clan::SpanLayout::get_rect_by_id (int id) const |
Get Rect By Id. More... | |
HitTestResult | clan::SpanLayout::hit_test (Canvas &canvas, const Point &pos) |
Hit test. More... | |
void | clan::SpanLayout::draw_layout (Canvas &canvas) |
Draw layout. More... | |
void | clan::SpanLayout::draw_layout_ellipsis (Canvas &canvas, const Rect &content_rect) |
Draw layout generating ellipsis for clipped text. More... | |
void | clan::SpanLayout::set_component_geometry () |
Set component geometry. More... | |
Size | clan::SpanLayout::find_preferred_size (Canvas &canvas) |
Find preferred size. More... | |
void | clan::SpanLayout::set_selection_range (std::string::size_type start, std::string::size_type end) |
Set selection range. More... | |
void | clan::SpanLayout::set_selection_colors (const Colorf &foreground, const Colorf &background) |
Set selection colors. More... | |
void | clan::SpanLayout::show_cursor () |
Shows the cursor caret. More... | |
void | clan::SpanLayout::hide_cursor () |
Hides the cursor caret. More... | |
void | clan::SpanLayout::set_cursor_pos (std::string::size_type pos) |
Sets the cursor position. More... | |
void | clan::SpanLayout::set_cursor_overwrite_mode (bool enable) |
Toggles whether the cursor caret is shown as a solid box or a line. More... | |
void | clan::SpanLayout::set_cursor_color (const Colorf &color) |
Sets the cursor color. More... | |
std::string | clan::SpanLayout::get_combined_text () const |
Get Combined text. More... | |
void | clan::SpanLayout::set_align (SpanAlign align) |
Sets the text alignment. More... | |
int | clan::SpanLayout::get_first_baseline_offset () |
Returns the baseline offset for the first baseline. More... | |
int | clan::SpanLayout::get_last_baseline_offset () |
Returns the baseline offset for the last baseline. More... | |
Enums | |
enum | clan::Sprite::ShowOnFinish { clan::Sprite::show_blank, clan::Sprite::show_last_frame, clan::Sprite::show_first_frame } |
Construction | |
clan::Sprite::Sprite () | |
Constructs a null instance. More... | |
clan::Sprite::Sprite (Canvas &canvas, const std::string &fullname, const ImageImportDescription &import_desc=ImageImportDescription()) | |
Constructs a Sprite. More... | |
clan::Sprite::Sprite (Canvas &canvas, const std::string &filename, const FileSystem &file_system, const ImageImportDescription &import_desc=ImageImportDescription()) | |
Constructs a Sprite. More... | |
clan::Sprite::Sprite (Canvas &canvas, IODevice &file, const std::string &image_type, const ImageImportDescription &import_desc=ImageImportDescription()) | |
Constructs a Sprite. More... | |
clan::Sprite::Sprite (Canvas &canvas) | |
Constructs an empty Sprite. More... | |
virtual | clan::Sprite::~Sprite () |
Resources | |
static Resource< Sprite > | clan::Sprite::resource (Canvas &canvas, const std::string &id, const ResourceManager &resources) |
Retrieves a Sprite resource from the resource manager. More... | |
static Sprite | clan::Sprite::load (Canvas &canvas, const std::string &id, const XMLResourceDocument &doc) |
Loads a Sprite from a XML resource definition. More... | |
Attributes | |
bool | clan::Sprite::is_null () const |
Returns true if this object is invalid. More... | |
void | clan::Sprite::throw_if_null () const |
Throw an exception if this object is invalid. More... | |
Angle | clan::Sprite::get_angle () const |
Returns current angle in degrees. More... | |
Angle | clan::Sprite::get_base_angle () const |
Returns the base angle in degrees - angle added to any rotation set with set_rotate() or rotate(). More... | |
void | clan::Sprite::get_scale (float &x, float &y) const |
Returns scale for x and y. More... | |
float | clan::Sprite::get_alpha () const |
Returns current alpha. More... | |
Colorf | clan::Sprite::get_color () const |
Returns current color. More... | |
bool | clan::Sprite::get_linear_filter () const |
Returns true if the sprite uses a linear filter for scaling up and down, false if a nearest-point filter is used. More... | |
void | clan::Sprite::get_alignment (Origin &origin, int &x, int &y) const |
Returns translation hot-spot. More... | |
void | clan::Sprite::get_rotation_hotspot (Origin &origin, int &x, int &y) const |
Returns rotation hot-spot. More... | |
int | clan::Sprite::get_current_frame () const |
Returns current frame in animation. 0 is first frame. More... | |
int | clan::Sprite::get_frame_count () const |
Returns number of frames in animation. More... | |
int | clan::Sprite::get_frame_delay (int frame) const |
Returns the delay of a frame. More... | |
Point | clan::Sprite::get_frame_offset (int frame) const |
Returns the translation offset of a frame. 0 is first frame. More... | |
Size | clan::Sprite::get_frame_size (int frame) const |
Returns the size of a frame. 0 is first frame. More... | |
Subtexture | clan::Sprite::get_frame_texture (int frame) const |
Return the texture of a frame. 0 is first frame. More... | |
int | clan::Sprite::get_width () const |
Return the width of the current frame, shortcut for 'get_frame_size(get_current_frame()).width'. More... | |
int | clan::Sprite::get_height () const |
Return the height of the current frame, shortcut for 'get_frame_size(get_current_frame()).height'. More... | |
Size | clan::Sprite::get_size () const |
Return the size of the current frame, shortcut for 'get_frame_size(get_current_frame())'. More... | |
int | clan::Sprite::get_id () const |
Returns the attached id (if exists). More... | |
bool | clan::Sprite::is_play_loop () const |
Returns true if animation is played in loop (more than once). More... | |
bool | clan::Sprite::is_play_backward () const |
Returns true if animation is played in from right to left (starts at end). More... | |
bool | clan::Sprite::is_play_pingpong () const |
Returns true if animation is played in ping-pong mode. More... | |
ShowOnFinish | clan::Sprite::get_show_on_finish () const |
Returns an enum for what is shown when the animation is finished. More... | |
bool | clan::Sprite::is_finished () const |
Returns true if animation is finished. More... | |
bool | clan::Sprite::is_looping () const |
Returns true if animation has looped in the last update cycle. More... | |
Operators | |
bool | clan::Sprite::operator== (const Sprite &other) const |
Equality operator. More... | |
bool | clan::Sprite::operator!= (const Sprite &other) const |
Inequality operator. More... | |
bool | clan::Sprite::operator< (const Sprite &other) const |
Less than operator. More... | |
Operations | |
Sprite & | clan::Sprite::operator= (const Sprite ©) |
Copy assignment operator. More... | |
void | clan::Sprite::set_image_data (const Sprite &image_source) |
Sets the image data from another sprite, sharing animation state. More... | |
Sprite | clan::Sprite::clone () const |
Copies all information from this sprite to another, excluding the graphics that remain shared. More... | |
void | clan::Sprite::draw (Canvas &canvas, float x, float y) |
Draw sprite on graphic context. More... | |
void | clan::Sprite::draw (Canvas &canvas, int x, int y) |
void | clan::Sprite::draw (Canvas &canvas, const Rectf &src, const Rectf &dest) |
void | clan::Sprite::draw (Canvas &canvas, const Rectf &dest) |
void | clan::Sprite::update (int time_elapsed_ms) |
Call this function to update the animation. More... | |
void | clan::Sprite::set_angle (Angle angle) |
Set absolute rotation angle. More... | |
void | clan::Sprite::set_angle_pitch (Angle angle) |
Set absolute rotation pitch angle. More... | |
void | clan::Sprite::set_angle_yaw (Angle angle) |
Set absolute rotation yaw angle. More... | |
void | clan::Sprite::rotate (Angle angle) |
Add angle in degrees to current angle. More... | |
void | clan::Sprite::rotate_pitch (Angle angle) |
Add angle in degrees to current pitch angle. More... | |
void | clan::Sprite::rotate_yaw (Angle angle) |
Add angle in degrees to current yaw angle. More... | |
void | clan::Sprite::set_base_angle (Angle angle) |
Sets the base angle in degrees - angle added to any rotation set with set_rotate() or rotate(). More... | |
void | clan::Sprite::set_scale (float x, float y) |
Set scale for x and y directions individually. More... | |
void | clan::Sprite::set_alpha (float alpha) |
Sets transparency. More... | |
void | clan::Sprite::set_color (const Colorf &color) |
Sets the color. More... | |
void | clan::Sprite::set_color (const Color &c) |
Set color. More... | |
void | clan::Sprite::set_linear_filter (bool linear_filter=true) |
Set to true if a linear filter should be used for scaling up and down, false if a nearest-point filter should be used. More... | |
void | clan::Sprite::set_alignment (Origin origin, int x=0, int y=0) |
Sets translation hotspot. More... | |
void | clan::Sprite::set_rotation_hotspot (Origin origin, int x=0, int y=0) |
Sets rotation hotspot. More... | |
void | clan::Sprite::set_frame (unsigned int frame) |
Sets current animation frame. 0 is first frame. More... | |
void | clan::Sprite::set_delay (int delay_ms) |
Sets the delay for all frames. More... | |
void | clan::Sprite::set_frame_delay (int frame, int delay_ms) |
Sets the delay of a specific frame. More... | |
void | clan::Sprite::set_frame_offset (int frame, Point offset) |
Sets the translate offset of a specific frame. 0 is first frame. More... | |
void | clan::Sprite::set_id (int id) |
Sets an attached id. More... | |
void | clan::Sprite::finish () |
Finish animation. More... | |
void | clan::Sprite::restart () |
Restart animation. More... | |
void | clan::Sprite::set_play_loop (bool loop=true) |
Set to true if animation should loop, false otherwise. More... | |
void | clan::Sprite::set_play_pingpong (bool pingpong=true) |
Set to true if animation should loop, false otherwise. More... | |
void | clan::Sprite::set_play_backward (bool backward=true) |
Set to true if animation should go backward (start at end). More... | |
void | clan::Sprite::set_show_on_finish (Sprite::ShowOnFinish show_on_finish) |
Set what is shown when the animation is finished. More... | |
void | clan::Sprite::add_frame (const Texture2D &texture) |
Add frame. More... | |
void | clan::Sprite::add_frame (Canvas &canvas, const std::string &fullname, const ImageImportDescription &import_desc=ImageImportDescription()) |
Add frame. More... | |
void | clan::Sprite::add_frame (Canvas &canvas, IODevice &file, const std::string &image_type, const ImageImportDescription &import_desc=ImageImportDescription()) |
Add frame. More... | |
void | clan::Sprite::add_frame (Canvas &canvas, const std::string &filename, const FileSystem &file_system, const ImageImportDescription &import_desc=ImageImportDescription()) |
Add frame. More... | |
void | clan::Sprite::add_frames (const Texture2D &texture, Rect *frames, int num_frames) |
Add frames. More... | |
void | clan::Sprite::add_frame (const Texture2D &texture, const Rect &frame) |
Add frame. More... | |
void | clan::Sprite::add_gridclipped_frames (Canvas &canvas, const Texture2D &texture, int xpos, int ypos, int width, int height, int xarray=1, int yarray=1, int array_skipframes=0, int xspacing=0, int yspacing=0) |
Adds images formed in a grid. More... | |
void | clan::Sprite::add_alphaclipped_frames (Canvas &canvas, const Texture2D &texture, int xpos=0, int ypos=0, float trans_limit=0.05f) |
Adds images separated with pure alpha (within trans_limit). More... | |
void | clan::Sprite::add_alphaclipped_frames_free (Canvas &canvas, const Texture2D &texture, int xpos=0, int ypos=0, float trans_limit=0.05f) |
Adds images separated with pure alpha (within trans_limit). More... | |
Signals | |
Signal< void()> & | clan::Sprite::sig_animation_finished () |
Sig animation finished. More... | |
Implementation | |
class | clan::Sprite::FontFamily_Impl |
Construction | |
clan::Subtexture::Subtexture () | |
Constructs a null instance. More... | |
clan::Subtexture::Subtexture (Texture2D texture, const Rect &geometry) | |
Constructs a Subtexture. More... | |
clan::Subtexture::~Subtexture () | |
Attributes | |
bool | clan::Subtexture::is_null () const |
Returns true if this object is invalid. More... | |
void | clan::Subtexture::throw_if_null () const |
Throw an exception if this object is invalid. More... | |
Texture2D | clan::Subtexture::get_texture () |
Returns the texture. More... | |
Rect | clan::Subtexture::get_geometry () const |
Returns the part of the texture used by this object. More... | |
Enumerations | |
enum | clan::TextureGroup::TextureAllocationPolicy { clan::TextureGroup::create_new_texture, clan::TextureGroup::search_previous_textures } |
Texture allocation policy. More... | |
Construction | |
clan::TextureGroup::TextureGroup () | |
Constructs a null instance. More... | |
clan::TextureGroup::TextureGroup (const Size &texture_sizes) | |
Constructs a texture group. More... | |
clan::TextureGroup::~TextureGroup () | |
Attributes | |
bool | clan::TextureGroup::is_null () const |
Returns true if this object is invalid. More... | |
void | clan::TextureGroup::throw_if_null () const |
Throw an exception if this object is invalid. More... | |
int | clan::TextureGroup::get_subtexture_count () const |
Returns the amount of sub-textures allocated in group. More... | |
int | clan::TextureGroup::get_subtexture_count (unsigned int texture_index) const |
Returns the amount of sub-textures for a specific texture index. More... | |
int | clan::TextureGroup::get_texture_count () const |
Returns the amount of textures used by group. More... | |
TextureAllocationPolicy | clan::TextureGroup::get_texture_allocation_policy () const |
Returns the texture allocation policy. More... | |
Size | clan::TextureGroup::get_texture_sizes () const |
Returns the size of the textures used by this texture group. More... | |
std::vector< Texture2D > | clan::TextureGroup::get_textures () const |
Returns the textures. More... | |
Operations | |
Subtexture | clan::TextureGroup::add (GraphicContext &context, const Size &size) |
Allocate space for another sub texture. More... | |
void | clan::TextureGroup::remove (Subtexture &subtexture) |
Deallocate space, from a previously allocated texture. More... | |
void | clan::TextureGroup::set_texture_allocation_policy (TextureAllocationPolicy policy) |
Set the texture allocation policy. More... | |
void | clan::TextureGroup::insert_texture (Texture2D &texture, const Rect &texture_rect) |
Insert an existing texture into the texture group. More... | |
Construction | |
clan::CursorDescription::CursorDescription () | |
Constructs a cursor description. More... | |
clan::CursorDescription::CursorDescription (const CursorDescription ©) | |
Constructs a CursorDescription. More... | |
clan::CursorDescription::~CursorDescription () | |
static CursorDescription | clan::CursorDescription::load (GraphicContext &gc, const std::string &resource_id, const XMLResourceDocument &doc, const ImageImportDescription &import_desc=ImageImportDescription()) |
Loads a CursorDescription from a XML resource definition. More... | |
Attributes | |
const std::vector< CursorDescriptionFrame > & | clan::CursorDescription::get_frames () const |
Returns a list over all available frames. More... | |
Point | clan::CursorDescription::get_hotspot () const |
the offset of where the cursor is drawn relative to cursor image More... | |
bool | clan::CursorDescription::operator== (const CursorDescription &that) const |
bool | clan::CursorDescription::operator!= (const CursorDescription &that) const |
bool | clan::CursorDescription::operator< (const CursorDescription &that) const |
bool | clan::CursorDescription::operator> (const CursorDescription &that) const |
bool | clan::CursorDescription::operator<= (const CursorDescription &that) const |
bool | clan::CursorDescription::operator>= (const CursorDescription &that) const |
Operations | |
CursorDescription & | clan::CursorDescription::operator= (const CursorDescription ©) |
Copy assignment operator. More... | |
void | clan::CursorDescription::add_frame (const PixelBuffer &pixelbuffer) |
Adds a single image. More... | |
void | clan::CursorDescription::add_frame (const std::string &fullname, const ImageImportDescription &import_desc=ImageImportDescription()) |
Add frame. More... | |
void | clan::CursorDescription::add_frame (IODevice &file, const std::string &image_type, const ImageImportDescription &import_desc=ImageImportDescription()) |
Add frame. More... | |
void | clan::CursorDescription::add_frame (const std::string &filename, FileSystem &fs, const ImageImportDescription &import_desc=ImageImportDescription()) |
Add frame. More... | |
void | clan::CursorDescription::add_gridclipped_frames (const PixelBuffer &pixelbuffer, int xpos, int ypos, int width, int height, int xarray=1, int yarray=1, int array_skipframes=0, int xspacing=0, int yspacing=0) |
Adds images formed in a grid. More... | |
void | clan::CursorDescription::add_alphaclipped_frames (const PixelBuffer &pixelbuffer, int xpos=0, int ypos=0, float trans_limit=0.05f) |
Adds images separated with pure alpha (within trans_limit). More... | |
void | clan::CursorDescription::add_alphaclipped_frames_free (const PixelBuffer &pixelbuffer, int xpos=0, int ypos=0, float trans_limit=0.05f) |
Adds images separated with pure alpha (within trans_limit). More... | |
void | clan::CursorDescription::set_frame_delay (int frame, double delay) |
Sets the duration this frame is displayed, in seconds. More... | |
void | clan::CursorDescription::set_hotspot (const Point &hotspot) |
Sets the offset of where the cursor is drawn relative to the cursor image. More... | |
typedef ColorHSLx<double, Colorf> clan::ColorHSLd |
typedef ColorHSLx<float, Colorf> clan::ColorHSLf |
typedef ColorHSLx<int, Color> clan::ColorHSLi |
typedef ColorHSVx<double, Colorf> clan::ColorHSVd |
typedef ColorHSVx<float, Colorf> clan::ColorHSVf |
typedef ColorHSVx<int, Color> clan::ColorHSVi |
enum clan::SpanAlign |
Texture allocation policy.
Enumerator | |
---|---|
create_new_texture | |
search_previous_textures |
|
inline |
Constructs a color.
|
explicit |
clan::Color::Color | ( | const std::string & | hexstr | ) |
Constructs a color.
Color components are specified in the range 0 to 255.
An alpha value of 0 means complete transparency, while 255 means completely opaque (solid).
hexstr | The colors rgba components as a hexadecimal string of the format "#rrggbbaa", where the '#' and "aa" parts are optional. |
|
inline |
Constructs a color.
Color components are specified in the range 0 to 255.
An alpha value of 0 means complete transparency, while 255 means completely opaque (solid).
red | Red color component. |
green | Green color component. |
blue | Blue color component. |
alpha | Alpha (transparency) color component. |
|
inline |
|
inlineexplicit |
References clan::color, and clan::f.
|
inline |
Constructs a color.
Color components are specified in the range 0 to 1.
An alpha value of 0 means complete transparency, while 1 means completely opaque (solid).
array_rgba | = Red,Green,Blue,Alpha color component. |
|
inline |
Constructs a color.
Color components are specified in the range 0 to 255.
An alpha value of 0 means complete transparency, while 255 means completely opaque (solid).
hexstr | The colors rgba components as a hexadecimal string of the format "#rrggbbaa", where the '#' and "aa" parts are optional. |
References clan::Colorf::Colorf(), and clan::Color::find_color().
|
inline |
|
inline |
Constructs a color.
Color components are specified in the range 0 to 1.
An alpha value of 0 means complete transparency, while 1 means completely opaque (solid).
r | = Red color component. |
g | = Green color component. |
b | = Blue color component. |
a | = Alpha (transparency) color component. |
|
inline |
Constructs a color.
Color components are specified in the range 0 to 255.
An alpha value of 0 means complete transparency, while 255 means completely opaque (solid).
r | = Red color component. |
g | = Green color component. |
b | = Blue color component. |
a | = Alpha (transparency) color component. |
References clan::f.
|
inline |
Constructs a color.
Color components are specified in the range 0 to 255.
An alpha value of 0 means complete transparency, while 255 means completely opaque (solid).
r | = Red color component. |
g | = Green color component. |
b | = Blue color component. |
a | = Alpha (transparency) color component. |
References clan::f.
|
inline |
Constructs a color.
clan::ColorHSLx< Type, ColorType >::ColorHSLx | ( | const Color & | color | ) |
clan::ColorHSLx< Type, ColorType >::ColorHSLx | ( | const Colorf & | color | ) |
|
inline |
|
inline |
|
inline |
Constructs a color.
clan::ColorHSVx< Type, ColorType >::ColorHSVx | ( | const Color & | color | ) |
clan::ColorHSVx< Type, ColorType >::ColorHSVx | ( | const Colorf & | color | ) |
|
inline |
|
inline |
clan::CursorDescription::CursorDescription | ( | ) |
Constructs a cursor description.
clan::CursorDescription::CursorDescription | ( | const CursorDescription & | copy | ) |
Constructs a CursorDescription.
copy | = Cursor Description |
|
inline |
Constructs a CursorDescriptionFrame.
pixelbuffer | = Pixel Buffer |
rect | = Rect |
|
inline |
Constructs a color gradient.
|
inline |
Constructs a color gradient.
top_left | Top left color component. |
top_right | Top right color component. |
bottom_left | Bottom left color component. |
bottom_right | Bottom right color component. |
|
inline |
clan::Image::Image | ( | ) |
Constructs a null instance.
clan::Image::Image | ( | Canvas & | canvas, |
const PixelBuffer & | pixelbuffer, | ||
const Rect & | rect | ||
) |
clan::Image::Image | ( | Canvas & | canvas, |
const std::string & | filename, | ||
const FileSystem & | fs, | ||
const ImageImportDescription & | import_desc = ImageImportDescription() |
||
) |
clan::Image::Image | ( | Canvas & | canvas, |
const std::string & | filename, | ||
const ImageImportDescription & | import_desc = ImageImportDescription() |
||
) |
clan::Image::Image | ( | Subtexture & | sub_texture | ) |
Constructs an image from a subtexture.
sub_texture | = Subtexture to get image data from |
Constructs an image from a texture.
texture | = Texture to get image data from |
rect | = Position and size in texture to get image data from |
clan::SpanLayout::SpanLayout | ( | ) |
clan::Sprite::Sprite | ( | ) |
Constructs a null instance.
clan::Sprite::Sprite | ( | Canvas & | canvas, |
const std::string & | filename, | ||
const FileSystem & | file_system, | ||
const ImageImportDescription & | import_desc = ImageImportDescription() |
||
) |
clan::Sprite::Sprite | ( | Canvas & | canvas, |
const std::string & | fullname, | ||
const ImageImportDescription & | import_desc = ImageImportDescription() |
||
) |
clan::Sprite::Sprite | ( | Canvas & | canvas, |
IODevice & | file, | ||
const std::string & | image_type, | ||
const ImageImportDescription & | import_desc = ImageImportDescription() |
||
) |
clan::Subtexture::Subtexture | ( | ) |
Constructs a null instance.
Constructs a Subtexture.
clan::TextureGroup::TextureGroup | ( | ) |
Constructs a null instance.
clan::TextureGroup::TextureGroup | ( | const Size & | texture_sizes | ) |
Constructs a texture group.
clan::CursorDescription::~CursorDescription | ( | ) |
|
virtual |
clan::SpanLayout::~SpanLayout | ( | ) |
|
virtual |
clan::Subtexture::~Subtexture | ( | ) |
clan::TextureGroup::~TextureGroup | ( | ) |
Subtexture clan::TextureGroup::add | ( | GraphicContext & | context, |
const Size & | size | ||
) |
Allocate space for another sub texture.
void clan::Sprite::add_alphaclipped_frames | ( | Canvas & | canvas, |
const Texture2D & | texture, | ||
int | xpos = 0 , |
||
int | ypos = 0 , |
||
float | trans_limit = 0.05f |
||
) |
Adds images separated with pure alpha (within trans_limit).
The alpha clipper will cut out frames from an image based on the transparency in the picture. It first determines the height of a row by searching for the first line that it considers completely transparent. Then it finds the width of each frame on this line by looking for columns that are completely transparency.
void clan::CursorDescription::add_alphaclipped_frames | ( | const PixelBuffer & | pixelbuffer, |
int | xpos = 0 , |
||
int | ypos = 0 , |
||
float | trans_limit = 0.05f |
||
) |
Adds images separated with pure alpha (within trans_limit).
The alpha clipper will cut out frames from an image based on the transparency in the picture. It first determines the height of a row by searching for the first line that it considers completely transparent. Then it finds the width of each frame on this line by looking for columns that are completely transparency.
void clan::Sprite::add_alphaclipped_frames_free | ( | Canvas & | canvas, |
const Texture2D & | texture, | ||
int | xpos = 0 , |
||
int | ypos = 0 , |
||
float | trans_limit = 0.05f |
||
) |
Adds images separated with pure alpha (within trans_limit).
The alpha clipper will cut out frames from an image based on the transparency in the picture. It scans the lines horizontally from top to bottom. As soon as a non-transarent pixel is discovered, the clipper finds the bounding box for that region and then moves on.
void clan::CursorDescription::add_alphaclipped_frames_free | ( | const PixelBuffer & | pixelbuffer, |
int | xpos = 0 , |
||
int | ypos = 0 , |
||
float | trans_limit = 0.05f |
||
) |
Adds images separated with pure alpha (within trans_limit).
The alpha clipper will cut out frames from an image based on the transparency in the picture. It scans the lines horizontally from top to bottom. As soon as a non-transarent pixel is discovered, the clipper finds the bounding box for that region and then moves on.
void clan::SpanLayout::add_component | ( | T * | component, |
int | baseline_offset = 0 , |
||
int | id = -1 |
||
) |
Add component.
component | = T |
baseline_offset | = value |
id | = value |
void clan::Sprite::add_frame | ( | Canvas & | canvas, |
const std::string & | filename, | ||
const FileSystem & | file_system, | ||
const ImageImportDescription & | import_desc = ImageImportDescription() |
||
) |
Add frame.
filename | = String Ref |
dir | = Virtual Directory |
void clan::Sprite::add_frame | ( | Canvas & | canvas, |
const std::string & | fullname, | ||
const ImageImportDescription & | import_desc = ImageImportDescription() |
||
) |
Add frame.
fullname | = String Ref |
void clan::Sprite::add_frame | ( | Canvas & | canvas, |
IODevice & | file, | ||
const std::string & | image_type, | ||
const ImageImportDescription & | import_desc = ImageImportDescription() |
||
) |
Add frame.
file | = IODevice |
image_type | = String |
void clan::CursorDescription::add_frame | ( | const PixelBuffer & | pixelbuffer | ) |
void clan::CursorDescription::add_frame | ( | const std::string & | filename, |
FileSystem & | fs, | ||
const ImageImportDescription & | import_desc = ImageImportDescription() |
||
) |
Add frame.
filename | = String Ref |
dir | = Virtual Directory |
void clan::CursorDescription::add_frame | ( | const std::string & | fullname, |
const ImageImportDescription & | import_desc = ImageImportDescription() |
||
) |
Add frame.
fullname | = String Ref |
void clan::CursorDescription::add_frame | ( | IODevice & | file, |
const std::string & | image_type, | ||
const ImageImportDescription & | import_desc = ImageImportDescription() |
||
) |
Add frame.
file | = IODevice |
image_type | = String |
void clan::Sprite::add_gridclipped_frames | ( | Canvas & | canvas, |
const Texture2D & | texture, | ||
int | xpos, | ||
int | ypos, | ||
int | width, | ||
int | height, | ||
int | xarray = 1 , |
||
int | yarray = 1 , |
||
int | array_skipframes = 0 , |
||
int | xspacing = 0 , |
||
int | yspacing = 0 |
||
) |
Adds images formed in a grid.
This function will cut out a grid of frames from one image.
pixelbuffer | Image source. |
texture | Image source. |
xpos,ypos | Position of where image grid starts. |
width,height | Size of a frame in the grid. |
xarray,yarray | Number of columns and rows in grid. |
array_skipframes | Number of frames to skip at last gridline. |
xspacing,yspacing | Pixel interspacing between grid frames. |
void clan::CursorDescription::add_gridclipped_frames | ( | const PixelBuffer & | pixelbuffer, |
int | xpos, | ||
int | ypos, | ||
int | width, | ||
int | height, | ||
int | xarray = 1 , |
||
int | yarray = 1 , |
||
int | array_skipframes = 0 , |
||
int | xspacing = 0 , |
||
int | yspacing = 0 |
||
) |
Adds images formed in a grid.
This function will cut out a grid of frames from one image.
pixelbuffer | Image source. |
texture | Image source. |
xpos,ypos | Position of where image grid starts. |
width,height | Size of a frame in the grid. |
xarray,yarray | Number of columns and rows in grid. |
array_skipframes | Number of frames to skip at last gridline. |
xspacing,yspacing | Pixel interspacing between grid frames. |
void clan::SpanLayout::add_image | ( | const Image & | image, |
int | baseline_offset = 0 , |
||
int | id = -1 |
||
) |
Add image.
image | = Image |
baseline_offset | = value |
id | = value |
void clan::SpanLayout::add_text | ( | const std::string & | text, |
const Font & | font, | ||
const Colorf & | color = Colorf::white , |
||
int | id = -1 |
||
) |
void clan::SpanLayout::clear | ( | ) |
Clear.
Image clan::Image::clone | ( | ) | const |
Copies all information from this image to another, excluding the graphics that remain shared.
Sprite clan::Sprite::clone | ( | ) | const |
Copies all information from this sprite to another, excluding the graphics that remain shared.
Draw image on graphic context.
gc | Graphic context on which to render upon. |
dest | Quad to draw image in. |
Draw image on graphic context.
gc | Graphic context on which to render upon. |
dest | Rectangle to draw image in. |
Draw image on graphic context.
gc | Graphic context on which to render upon. |
src | Source rectangle to draw. Use this is draw only part of the image. |
dest | Quad to draw image in. |
Draw image on graphic context.
gc | Graphic context on which to render upon. |
src | Source rectangle to draw. Use this is draw only part of the image. |
dest | Rectangle to draw image in. |
void clan::Sprite::draw | ( | Canvas & | canvas, |
float | x, | ||
float | y | ||
) |
Draw sprite on graphic context.
x,y | Anchor position of where to render sprite. Actual rendering position depends on the anchor and the alignment mode. |
gc | Graphic context on which to render upon. If null, will use Display's current graphic context. |
src | Source rectangle to draw. Use this is draw only part of the sprite. |
dest | Rectangle to draw sprite in. |
void clan::Image::draw | ( | Canvas & | canvas, |
float | x, | ||
float | y | ||
) | const |
Draw image on graphic context.
x,y | Anchor position of where to render image. Actual rendering position depends on the anchor and the alignment mode. |
gc | Graphic context on which to render upon. |
void clan::Sprite::draw | ( | Canvas & | canvas, |
int | x, | ||
int | y | ||
) |
Draw layout generating ellipsis for clipped text.
canvas | = Canvas |
content_rect | = Clipping rectangle |
|
static |
Find and returns the static color matching a string.
name | Name of color to match, eg. "blue". |
Referenced by clan::Colorf::Colorf().
void clan::Sprite::finish | ( | ) |
Finish animation.
When an animation is finished, it will no longer show, unless ShowLastFrame is set to anything other than show_blank
|
inline |
Returns the color in ABGR8888 format.
References clan::Vec4< Type >::a, clan::Vec4< Type >::b, clan::Vec4< Type >::g, and clan::Vec4< Type >::r.
void clan::Image::get_alignment | ( | Origin & | origin, |
float & | x, | ||
float & | y | ||
) | const |
Returns translation hot-spot.
void clan::Sprite::get_alignment | ( | Origin & | origin, |
int & | x, | ||
int & | y | ||
) | const |
Returns translation hot-spot.
|
inline |
Returns the alpha color component, in the range 0-255.
References clan::Vec4< Type >::a.
float clan::Sprite::get_alpha | ( | ) | const |
Returns current alpha.
Alpha 0.0f is full transparency, and 1.0f is full visibility (solid).
float clan::Image::get_alpha | ( | ) | const |
Returns current alpha.
Alpha 0.0f is full transparency, and 1.0f is full visibility (solid).
|
inline |
|
inline |
Returns the alpha color component, in the range 0-1.
References clan::Vec4< Type >::a.
Angle clan::Sprite::get_angle | ( | ) | const |
Returns current angle in degrees.
|
inline |
Returns the color in ARGB8888 format.
References clan::Vec4< Type >::a, clan::Vec4< Type >::b, clan::Vec4< Type >::g, and clan::Vec4< Type >::r.
Angle clan::Sprite::get_base_angle | ( | ) | const |
Returns the base angle in degrees - angle added to any rotation set with set_rotate() or rotate().
|
inline |
Returns the color in BGRA8888 format.
References clan::Vec4< Type >::a, clan::Vec4< Type >::b, clan::Vec4< Type >::g, and clan::Vec4< Type >::r.
|
inline |
Returns the blue color component, in the range 0-255.
References clan::Vec4< Type >::b.
|
inline |
|
inline |
Returns the blue color component, in the range 0-1.
References clan::Vec4< Type >::b.
Colorf clan::Sprite::get_color | ( | ) | const |
Returns current color.
Alpha 0.0f is full transparency, and 1.0f is full visibility (solid).
Colorf clan::Image::get_color | ( | ) | const |
Returns current color.
Alpha 0.0f is full transparency, and 1.0f is full visibility (solid).
std::string clan::SpanLayout::get_combined_text | ( | ) | const |
Get Combined text.
int clan::Sprite::get_current_frame | ( | ) | const |
Returns current frame in animation. 0 is first frame.
int clan::SpanLayout::get_first_baseline_offset | ( | ) |
Returns the baseline offset for the first baseline.
int clan::Sprite::get_frame_count | ( | ) | const |
Returns number of frames in animation.
int clan::Sprite::get_frame_delay | ( | int | frame | ) | const |
Returns the delay of a frame.
frame | = The frame. 0 is first frame. |
Point clan::Sprite::get_frame_offset | ( | int | frame | ) | const |
Returns the translation offset of a frame. 0 is first frame.
Size clan::Sprite::get_frame_size | ( | int | frame | ) | const |
Returns the size of a frame. 0 is first frame.
Subtexture clan::Sprite::get_frame_texture | ( | int | frame | ) | const |
Return the texture of a frame. 0 is first frame.
const std::vector<CursorDescriptionFrame>& clan::CursorDescription::get_frames | ( | ) | const |
Returns a list over all available frames.
Rect clan::Subtexture::get_geometry | ( | ) | const |
Returns the part of the texture used by this object.
|
inline |
Returns the green color component, in the range 0-255.
References clan::Vec4< Type >::g.
|
inline |
|
inline |
Returns the green color component, in the range 0-1.
References clan::Vec4< Type >::g.
float clan::Image::get_height | ( | ) | const |
Return the height of the image.
int clan::Sprite::get_height | ( | ) | const |
Return the height of the current frame, shortcut for 'get_frame_size(get_current_frame()).height'.
Point clan::CursorDescription::get_hotspot | ( | ) | const |
the offset of where the cursor is drawn relative to cursor image
int clan::Sprite::get_id | ( | ) | const |
Returns the attached id (if exists).
int clan::SpanLayout::get_last_baseline_offset | ( | ) |
Returns the baseline offset for the last baseline.
bool clan::Sprite::get_linear_filter | ( | ) | const |
Returns true if the sprite uses a linear filter for scaling up and down, false if a nearest-point filter is used.
|
static |
Returns the names of static colors defined.
|
inline |
Returns the red color component, in the range 0-255.
References clan::Vec4< Type >::r.
|
inline |
|
inline |
Returns the red color component, in the range 0-1.
References clan::Vec4< Type >::r.
|
inline |
Returns the color in RGBA8888 format.
References clan::Vec4< Type >::a, clan::Vec4< Type >::b, clan::Vec4< Type >::g, and clan::Vec4< Type >::r.
void clan::Sprite::get_rotation_hotspot | ( | Origin & | origin, |
int & | x, | ||
int & | y | ||
) | const |
Returns rotation hot-spot.
void clan::Sprite::get_scale | ( | float & | x, |
float & | y | ||
) | const |
Returns scale for x and y.
1.0f is normal scale, 2.0f is twice the size, etc.
float clan::Image::get_scale_x | ( | ) | const |
Returns x scale.
1.0f is normal scale, 2.0f is twice the size, etc.
float clan::Image::get_scale_y | ( | ) | const |
Returns y scale.
1.0f is normal scale, 2.0f is twice the size, etc.
ShowOnFinish clan::Sprite::get_show_on_finish | ( | ) | const |
Returns an enum for what is shown when the animation is finished.
If show_blank is returned, nothing is shown when animation is done.
Sizef clan::Image::get_size | ( | ) | const |
Return the size of the image.
Size clan::Sprite::get_size | ( | ) | const |
Return the size of the current frame, shortcut for 'get_frame_size(get_current_frame())'.
int clan::TextureGroup::get_subtexture_count | ( | ) | const |
Returns the amount of sub-textures allocated in group.
int clan::TextureGroup::get_subtexture_count | ( | unsigned int | texture_index | ) | const |
Returns the amount of sub-textures for a specific texture index.
Texture2D clan::Subtexture::get_texture | ( | ) |
Returns the texture.
Subtexture clan::Image::get_texture | ( | ) | const |
Return the texture of the image.
TextureAllocationPolicy clan::TextureGroup::get_texture_allocation_policy | ( | ) | const |
Returns the texture allocation policy.
int clan::TextureGroup::get_texture_count | ( | ) | const |
Returns the amount of textures used by group.
Size clan::TextureGroup::get_texture_sizes | ( | ) | const |
Returns the size of the textures used by this texture group.
std::vector<Texture2D> clan::TextureGroup::get_textures | ( | ) | const |
Returns the textures.
float clan::Image::get_width | ( | ) | const |
Return the width of the image.
int clan::Sprite::get_width | ( | ) | const |
Return the width of the current frame, shortcut for 'get_frame_size(get_current_frame()).width'.
void clan::SpanLayout::hide_cursor | ( | ) |
Hides the cursor caret.
HitTestResult clan::SpanLayout::hit_test | ( | Canvas & | canvas, |
const Point & | pos | ||
) |
Insert an existing texture into the texture group.
texture | = Texture to insert |
texture_rect | = Free space within the texture that the texture group can use |
bool clan::Sprite::is_finished | ( | ) | const |
Returns true if animation is finished.
When an animation is finished, it will no longer show, unless ShowLastFrame is set to anything other than show_blank
bool clan::Sprite::is_looping | ( | ) | const |
Returns true if animation has looped in the last update cycle.
|
inline |
Returns true if this object is invalid.
|
inline |
Returns true if this object is invalid.
|
inline |
Returns true if this object is invalid.
|
inline |
Returns true if this object is invalid.
bool clan::Sprite::is_play_backward | ( | ) | const |
Returns true if animation is played in from right to left (starts at end).
bool clan::Sprite::is_play_loop | ( | ) | const |
Returns true if animation is played in loop (more than once).
bool clan::Sprite::is_play_pingpong | ( | ) | const |
Returns true if animation is played in ping-pong mode.
void clan::SpanLayout::layout | ( | Canvas & | canvas, |
int | max_width | ||
) |
Layout.
canvas | = Canvas |
max_width | = value |
|
static |
Loads a Sprite from a XML resource definition.
|
static |
Loads a Sprite from a XML resource definition.
|
static |
Loads a CursorDescription from a XML resource definition.
|
inline |
Normalize the color by ensuring that all color values lie inbetween (0.0, 1.0)
References clan::Vec4< Type >::a, clan::Vec4< Type >::b, clan::f, clan::Vec4< Type >::g, and clan::Vec4< Type >::r.
|
inline |
Type conversion operator.
clan::ColorHSVx< Type, ColorType >::operator ColorType | ( | ) |
clan::ColorHSLx< Type, ColorType >::operator ColorType | ( | ) |
|
inline |
Color != Color operator (deep compare)
References clan::Vec4< Type >::a, clan::Vec4< Type >::b, clan::c, clan::Vec4< Type >::g, and clan::Vec4< Type >::r.
|
inline |
Color != Color operator (deep compare)
References clan::Vec4< Type >::a, clan::Vec4< Type >::b, clan::c, clan::Vec4< Type >::g, and clan::Vec4< Type >::r.
|
inline |
|
inline |
|
inline |
|
inline |
Compares gradient to another one.
|
inline |
Inequality operator.
|
inline |
Inequality operator.
|
inline |
|
inline |
Less than operator.
|
inline |
Less than operator.
|
inline |
|
inline |
|
inline |
CursorDescription& clan::CursorDescription::operator= | ( | const CursorDescription & | copy | ) |
Copy assignment operator.
|
inline |
Color == Color operator (deep compare)
References clan::Vec4< Type >::a, clan::Vec4< Type >::b, clan::c, clan::Vec4< Type >::g, and clan::Vec4< Type >::r.
|
inline |
Color == Color operator (deep compare)
References clan::Vec4< Type >::a, clan::Vec4< Type >::b, clan::c, clan::Vec4< Type >::g, and clan::Vec4< Type >::r.
|
inline |
|
inline |
|
inline |
|
inline |
Compares gradient to another one.
References clan::Gradient::bottom_left, clan::Gradient::bottom_right, clan::Gradient::top_left, and clan::Gradient::top_right.
|
inline |
Equality operator.
|
inline |
Equality operator.
|
inline |
|
inline |
void clan::TextureGroup::remove | ( | Subtexture & | subtexture | ) |
Deallocate space, from a previously allocated texture.
Warning - It is advised to set TextureAllocationPolicy to search_previous_textures if using this function. Also be aware of texture fragmentation. Empty textures are not removed.
|
static |
|
static |
void clan::Sprite::restart | ( | ) |
Restart animation.
void clan::Sprite::rotate | ( | Angle | angle | ) |
Add angle in degrees to current angle.
void clan::Sprite::rotate_pitch | ( | Angle | angle | ) |
Add angle in degrees to current pitch angle.
void clan::Sprite::rotate_yaw | ( | Angle | angle | ) |
Add angle in degrees to current yaw angle.
void clan::SpanLayout::set_align | ( | SpanAlign | align | ) |
Sets the text alignment.
Alignment is applied when layout() is called
align | = The alignment |
void clan::Image::set_alignment | ( | Origin | origin, |
float | x = 0 , |
||
float | y = 0 |
||
) |
Sets translation hotspot.
void clan::Sprite::set_alignment | ( | Origin | origin, |
int | x = 0 , |
||
int | y = 0 |
||
) |
Sets translation hotspot.
void clan::Image::set_alpha | ( | float | alpha | ) |
Sets transparency.
Alpha 0.0f is full transparency, and 1.0f is full visibility (solid).
void clan::Sprite::set_alpha | ( | float | alpha | ) |
Sets transparency.
Alpha 0.0f is full transparency, and 1.0f is full visibility (solid).
|
inline |
Set alpha color component, in the range 0-1.
References clan::Vec4< Type >::a.
|
inline |
Set alpha color component, in the range 0-255.
References clan::Vec4< Type >::a.
|
inline |
Set alpha color component, in the range 0-1.
References clan::Vec4< Type >::a, and clan::f.
void clan::Sprite::set_angle | ( | Angle | angle | ) |
Set absolute rotation angle.
void clan::Sprite::set_angle_pitch | ( | Angle | angle | ) |
Set absolute rotation pitch angle.
void clan::Sprite::set_angle_yaw | ( | Angle | angle | ) |
Set absolute rotation yaw angle.
void clan::Color::set_argb8 | ( | unsigned int | color | ) |
Set color based on argb color components.
void clan::Sprite::set_base_angle | ( | Angle | angle | ) |
Sets the base angle in degrees - angle added to any rotation set with set_rotate() or rotate().
void clan::Color::set_bgra8 | ( | unsigned int | color | ) |
Set color based on rgba color components.
|
inline |
Set blue color component, in the range 0-1.
References clan::Vec4< Type >::b.
|
inline |
Set blue color component, in the range 0-255.
References clan::Vec4< Type >::b.
|
inline |
Set blue color component, in the range 0-1.
References clan::Vec4< Type >::b, and clan::f.
|
inline |
Set color.
c | = Color |
References clan::c, clan::color, and clan::Image::set_color().
Referenced by clan::Image::set_color().
|
inline |
Set color.
c | = Color |
References clan::c, clan::color, and clan::Sprite::set_color().
Referenced by clan::Sprite::set_color().
void clan::Image::set_color | ( | const Colorf & | color | ) |
Sets the color.
Alpha 0.0f is full transparency, and 1.0f is full visibility (solid).
void clan::Sprite::set_color | ( | const Colorf & | color | ) |
Sets the color.
Alpha 0.0f is full transparency, and 1.0f is full visibility (solid).
|
inline |
Set color based on rgba color components in the range 0-255.
References clan::Vec4< Type >::a, clan::Vec4< Type >::b, clan::Vec4< Type >::g, and clan::Vec4< Type >::r.
|
inline |
Set color based on rgba color components in the range 0-1.
References clan::Vec4< Type >::a, clan::Vec4< Type >::b, clan::f, clan::Vec4< Type >::g, and clan::Vec4< Type >::r.
void clan::SpanLayout::set_component_geometry | ( | ) |
Set component geometry.
void clan::SpanLayout::set_cursor_color | ( | const Colorf & | color | ) |
Sets the cursor color.
color | = Color of cursor |
void clan::SpanLayout::set_cursor_overwrite_mode | ( | bool | enable | ) |
Toggles whether the cursor caret is shown as a solid box or a line.
enable | = Shows the cursor as a solid box if set to true |
void clan::SpanLayout::set_cursor_pos | ( | std::string::size_type | pos | ) |
Sets the cursor position.
pos | = Index of cursor |
void clan::Sprite::set_delay | ( | int | delay_ms | ) |
Sets the delay for all frames.
delay_ms | = Delay in milliseconds |
void clan::Sprite::set_frame | ( | unsigned int | frame | ) |
Sets current animation frame. 0 is first frame.
It will cap to available range.
void clan::CursorDescription::set_frame_delay | ( | int | frame, |
double | delay | ||
) |
Sets the duration this frame is displayed, in seconds.
void clan::Sprite::set_frame_delay | ( | int | frame, |
int | delay_ms | ||
) |
Sets the delay of a specific frame.
frame | = Frame number. 0 is first frame. |
delay_ms | = Delay in milliseconds |
void clan::Sprite::set_frame_offset | ( | int | frame, |
Point | offset | ||
) |
Sets the translate offset of a specific frame. 0 is first frame.
|
inline |
Set green color component, in the range 0-1.
References clan::Vec4< Type >::g.
|
inline |
Set green color component, in the range 0-255.
References clan::Vec4< Type >::g.
|
inline |
Set green color component, in the range 0-1.
References clan::f, and clan::Vec4< Type >::g.
void clan::CursorDescription::set_hotspot | ( | const Point & | hotspot | ) |
Sets the offset of where the cursor is drawn relative to the cursor image.
void clan::Sprite::set_id | ( | int | id | ) |
Sets an attached id.
void clan::Sprite::set_image_data | ( | const Sprite & | image_source | ) |
Sets the image data from another sprite, sharing animation state.
Use this to change the look of your sprite.
void clan::Image::set_linear_filter | ( | bool | linear_filter = true | ) |
Set to true if a linear filter should be used for scaling up and down, false if a nearest-point filter should be used.
void clan::Sprite::set_linear_filter | ( | bool | linear_filter = true | ) |
Set to true if a linear filter should be used for scaling up and down, false if a nearest-point filter should be used.
void clan::Sprite::set_play_backward | ( | bool | backward = true | ) |
Set to true if animation should go backward (start at end).
void clan::Sprite::set_play_loop | ( | bool | loop = true | ) |
Set to true if animation should loop, false otherwise.
void clan::Sprite::set_play_pingpong | ( | bool | pingpong = true | ) |
Set to true if animation should loop, false otherwise.
|
inline |
Set red color component, in the range 0-1.
References clan::Vec4< Type >::r.
|
inline |
Set red color component, in the range 0-255.
References clan::Vec4< Type >::r.
|
inline |
Set red color component, in the range 0-1.
References clan::f, and clan::Vec4< Type >::r.
void clan::Color::set_rgb8 | ( | unsigned int | color | ) |
Set color based on rgb color components. Alpha is set to 255.
void clan::Color::set_rgba8 | ( | unsigned int | color | ) |
Set color based on rgba color components.
void clan::Sprite::set_rotation_hotspot | ( | Origin | origin, |
int | x = 0 , |
||
int | y = 0 |
||
) |
Sets rotation hotspot.
void clan::Image::set_scale | ( | float | x, |
float | y | ||
) |
Set scale for x and y directions individually.
1.0f is normal scale, 2.0f is twice the size, etc.
void clan::Sprite::set_scale | ( | float | x, |
float | y | ||
) |
Set scale for x and y directions individually.
1.0f is normal scale, 2.0f is twice the size, etc.
void clan::SpanLayout::set_selection_range | ( | std::string::size_type | start, |
std::string::size_type | end | ||
) |
Set selection range.
size_type | = String |
size_type | = String |
void clan::Sprite::set_show_on_finish | ( | Sprite::ShowOnFinish | show_on_finish | ) |
Set what is shown when the animation is finished.
void clan::TextureGroup::set_texture_allocation_policy | ( | TextureAllocationPolicy | policy | ) |
Set the texture allocation policy.
void clan::Image::set_wrap_mode | ( | TextureWrapMode | wrap_s, |
TextureWrapMode | wrap_t | ||
) |
void clan::SpanLayout::show_cursor | ( | ) |
Shows the cursor caret.
Signal<void()>& clan::Sprite::sig_animation_finished | ( | ) |
Sig animation finished.
void clan::Subtexture::throw_if_null | ( | ) | const |
Throw an exception if this object is invalid.
void clan::TextureGroup::throw_if_null | ( | ) | const |
Throw an exception if this object is invalid.
void clan::Sprite::throw_if_null | ( | ) | const |
Throw an exception if this object is invalid.
void clan::Image::throw_if_null | ( | ) | const |
Throw an exception if this object is invalid.
void clan::Sprite::update | ( | int | time_elapsed_ms | ) |
Call this function to update the animation.
time_elapsed_ms | = Time elapsed in milliseconds. |
Type clan::ColorHSLx< Type, ColorType >::a |
Type clan::ColorHSVx< Type, ColorType >::a |
|
static |
rgb(240, 248, 255).
|
static |
rgb(240, 248, 255).
|
static |
rgb(250, 235, 215).
|
static |
rgb(250, 235, 215).
|
static |
rgb( 0, 255, 255).
|
static |
rgb( 0, 255, 255).
|
static |
rgb(127, 255, 212).
|
static |
rgb(127, 255, 212).
|
static |
rgb(240, 255, 255).
|
static |
rgb(240, 255, 255).
|
static |
rgb(245, 245, 220).
|
static |
rgb(245, 245, 220).
|
static |
rgb(255, 228, 196).
|
static |
rgb(255, 228, 196).
|
static |
rgb( 0, 0, 0).
|
static |
rgb( 0, 0, 0).
|
static |
rgb(255, 235, 205).
|
static |
rgb(255, 235, 205).
|
static |
rgb( 0, 0, 255).
|
static |
rgb( 0, 0, 255).
|
static |
rgb(138, 43, 226).
|
static |
rgb(138, 43, 226).
Colorf clan::Gradient::bottom_left |
Color of bottom left corner of gradient.
Referenced by clan::Gradient::operator==().
Colorf clan::Gradient::bottom_right |
Color of bottom right corner of gradient.
Referenced by clan::Gradient::operator==().
|
static |
rgb(165, 42, 42).
|
static |
rgb(165, 42, 42).
|
static |
rgb(222, 184, 135).
|
static |
rgb(222, 184, 135).
|
static |
rgb( 95, 158, 160).
|
static |
rgb( 95, 158, 160).
|
static |
rgb(127, 255, 0).
|
static |
rgb(127, 255, 0).
|
static |
rgb(210, 105, 30).
|
static |
rgb(210, 105, 30).
|
static |
rgb(255, 127, 80).
|
static |
rgb(255, 127, 80).
|
static |
rgb(100, 149, 237).
|
static |
rgb(100, 149, 237).
|
static |
rgb(255, 248, 220).
|
static |
rgb(255, 248, 220).
|
static |
rgb(220, 20, 60).
|
static |
rgb(220, 20, 60).
|
static |
rgb( 0, 255, 255).
|
static |
rgb( 0, 255, 255).
|
static |
rgb( 0, 0, 139).
|
static |
rgb( 0, 0, 139).
|
static |
rgb( 0, 139, 139).
|
static |
rgb( 0, 139, 139).
|
static |
rgb(184, 134, 11).
|
static |
rgb(184, 134, 11).
|
static |
rgb(169, 169, 169).
|
static |
rgb(169, 169, 169).
|
static |
rgb( 0, 100, 0).
|
static |
rgb( 0, 100, 0).
|
static |
rgb(169, 169, 169).
|
static |
rgb(169, 169, 169).
|
static |
rgb(189, 183, 107).
|
static |
rgb(189, 183, 107).
|
static |
rgb(139, 0, 139).
|
static |
rgb(139, 0, 139).
|
static |
rgb( 85, 107, 47).
|
static |
rgb( 85, 107, 47).
|
static |
rgb(255, 140, 0).
|
static |
rgb(255, 140, 0).
|
static |
rgb(153, 50, 204).
|
static |
rgb(153, 50, 204).
|
static |
rgb(139, 0, 0).
|
static |
rgb(139, 0, 0).
|
static |
rgb(233, 150, 122).
|
static |
rgb(233, 150, 122).
|
static |
rgb(143, 188, 143).
|
static |
rgb(143, 188, 143).
|
static |
rgb( 72, 61, 139).
|
static |
rgb( 72, 61, 139).
|
static |
rgb( 47, 79, 79).
|
static |
rgb( 47, 79, 79).
|
static |
rgb( 47, 79, 79).
|
static |
rgb( 47, 79, 79).
|
static |
rgb( 0, 206, 209).
|
static |
rgb( 0, 206, 209).
|
static |
rgb(148, 0, 211).
|
static |
rgb(148, 0, 211).
|
static |
rgb(255, 20, 147).
|
static |
rgb(255, 20, 147).
|
static |
rgb( 0, 191, 255).
|
static |
rgb( 0, 191, 255).
double clan::CursorDescriptionFrame::delay |
|
static |
rgb(105, 105, 105).
|
static |
rgb(105, 105, 105).
|
static |
rgb(105, 105, 105).
|
static |
rgb(105, 105, 105).
|
static |
rgb( 30, 144, 255).
|
static |
rgb( 30, 144, 255).
|
static |
rgb(178, 34, 34).
|
static |
rgb(178, 34, 34).
|
static |
rgb(255, 250, 240).
|
static |
rgb(255, 250, 240).
|
static |
rgb( 34, 139, 34).
|
static |
rgb( 34, 139, 34).
|
static |
rgb(255, 0, 255).
|
static |
rgb(255, 0, 255).
|
static |
rgb(220, 220, 220).
|
static |
rgb(220, 220, 220).
|
static |
rgb(248, 248, 255).
|
static |
rgb(248, 248, 255).
|
static |
rgb(255, 215, 0).
|
static |
rgb(255, 215, 0).
|
static |
rgb(218, 165, 32).
|
static |
rgb(218, 165, 32).
|
static |
rgb(128, 128, 128).
|
static |
rgb(128, 128, 128).
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
rgb( 0, 128, 0).
|
static |
rgb( 0, 128, 0).
|
static |
rgb(173, 255, 47).
|
static |
rgb(173, 255, 47).
|
static |
rgb(128, 128, 128).
|
static |
rgb(128, 128, 128).
Type clan::ColorHSVx< Type, ColorType >::h |
Type clan::ColorHSLx< Type, ColorType >::h |
|
static |
rgb(240, 255, 240).
|
static |
rgb(240, 255, 240).
|
static |
rgb(255, 105, 180).
|
static |
rgb(255, 105, 180).
|
static |
rgb(205, 92, 92).
|
static |
rgb(205, 92, 92).
|
static |
rgb( 75, 0, 130).
|
static |
rgb( 75, 0, 130).
|
static |
rgb(255, 255, 240).
|
static |
rgb(255, 255, 240).
|
static |
rgb(240, 230, 140).
|
static |
rgb(240, 230, 140).
Type clan::ColorHSLx< Type, ColorType >::l |
|
static |
rgb(230, 230, 250).
|
static |
rgb(230, 230, 250).
|
static |
rgb(255, 240, 245).
|
static |
rgb(255, 240, 245).
|
static |
rgb(124, 252, 0).
|
static |
rgb(124, 252, 0).
|
static |
rgb(255, 250, 205).
|
static |
rgb(255, 250, 205).
|
static |
rgb(173, 216, 230).
|
static |
rgb(173, 216, 230).
|
static |
rgb(240, 128, 128).
|
static |
rgb(240, 128, 128).
|
static |
rgb(224, 255, 255).
|
static |
rgb(224, 255, 255).
|
static |
rgb(250, 250, 210).
|
static |
rgb(250, 250, 210).
|
static |
rgb(211, 211, 211).
|
static |
rgb(211, 211, 211).
|
static |
rgb(144, 238, 144).
|
static |
rgb(144, 238, 144).
|
static |
rgb(211, 211, 211).
|
static |
rgb(211, 211, 211).
|
static |
rgb(255, 182, 193).
|
static |
rgb(255, 182, 193).
|
static |
rgb(255, 160, 122).
|
static |
rgb(255, 160, 122).
|
static |
rgb( 32, 178, 170).
|
static |
rgb( 32, 178, 170).
|
static |
rgb(135, 206, 250).
|
static |
rgb(135, 206, 250).
|
static |
rgb(119, 136, 153).
|
static |
rgb(119, 136, 153).
|
static |
rgb(119, 136, 153).
|
static |
rgb(119, 136, 153).
|
static |
rgb(176, 196, 222).
|
static |
rgb(176, 196, 222).
|
static |
rgb(255, 255, 224).
|
static |
rgb(255, 255, 224).
|
static |
rgb( 0, 255, 0).
|
static |
rgb( 0, 255, 0).
|
static |
rgb( 50, 205, 50).
|
static |
rgb( 50, 205, 50).
|
static |
rgb(250, 240, 230).
|
static |
rgb(250, 240, 230).
|
static |
rgb(255, 0, 255).
|
static |
rgb(255, 0, 255).
|
static |
rgb(128, 0, 0).
|
static |
rgb(128, 0, 0).
|
static |
rgb(102, 205, 170).
|
static |
rgb(102, 205, 170).
|
static |
rgb( 0, 0, 205).
|
static |
rgb( 0, 0, 205).
|
static |
rgb(186, 85, 211).
|
static |
rgb(186, 85, 211).
|
static |
rgb(147, 112, 219).
|
static |
rgb(147, 112, 219).
|
static |
rgb( 60, 179, 113).
|
static |
rgb( 60, 179, 113).
|
static |
rgb(123, 104, 238).
|
static |
rgb(123, 104, 238).
|
static |
rgb( 0, 250, 154).
|
static |
rgb( 0, 250, 154).
|
static |
rgb( 72, 209, 204).
|
static |
rgb( 72, 209, 204).
|
static |
rgb(199, 21, 133).
|
static |
rgb(199, 21, 133).
|
static |
rgb( 25, 25, 112).
|
static |
rgb( 25, 25, 112).
|
static |
rgb(245, 255, 250).
|
static |
rgb(245, 255, 250).
|
static |
rgb(255, 228, 225).
|
static |
rgb(255, 228, 225).
|
static |
rgb(255, 228, 181).
|
static |
rgb(255, 228, 181).
|
static |
rgb(255, 222, 173).
|
static |
rgb(255, 222, 173).
|
static |
rgb( 0, 0, 128).
|
static |
rgb( 0, 0, 128).
int clan::SpanLayout::HitTestResult::object_id |
int clan::SpanLayout::HitTestResult::offset |
|
static |
rgb(253, 245, 230).
|
static |
rgb(253, 245, 230).
|
static |
rgb(128, 128, 0).
|
static |
rgb(128, 128, 0).
|
static |
rgb(107, 142, 35).
|
static |
rgb(107, 142, 35).
|
static |
rgb(255, 165, 0).
|
static |
rgb(255, 165, 0).
|
static |
rgb(255, 69, 0).
|
static |
rgb(255, 69, 0).
|
static |
rgb(218, 112, 214).
|
static |
rgb(218, 112, 214).
|
static |
rgb(238, 232, 170).
|
static |
rgb(238, 232, 170).
|
static |
rgb(152, 251, 152).
|
static |
rgb(152, 251, 152).
|
static |
rgb(175, 238, 238).
|
static |
rgb(175, 238, 238).
|
static |
rgb(219, 112, 147).
|
static |
rgb(219, 112, 147).
|
static |
rgb(255, 239, 213).
|
static |
rgb(255, 239, 213).
|
static |
rgb(255, 218, 185).
|
static |
rgb(255, 218, 185).
|
static |
rgb(205, 133, 63).
|
static |
rgb(205, 133, 63).
|
static |
rgb(255, 192, 203).
|
static |
rgb(255, 192, 203).
PixelBuffer clan::CursorDescriptionFrame::pixelbuffer |
|
static |
rgb(221, 160, 221).
|
static |
rgb(221, 160, 221).
|
static |
rgb(176, 224, 230).
|
static |
rgb(176, 224, 230).
|
static |
rgb(128, 0, 128).
|
static |
rgb(128, 0, 128).
Rect clan::CursorDescriptionFrame::rect |
|
static |
rgb(255, 0, 0).
|
static |
rgb(255, 0, 0).
|
static |
rgb(188, 143, 143).
|
static |
rgb(188, 143, 143).
|
static |
rgb( 65, 105, 225).
|
static |
rgb( 65, 105, 225).
Type clan::ColorHSVx< Type, ColorType >::s |
Type clan::ColorHSLx< Type, ColorType >::s |
|
static |
rgb(139, 69, 19).
|
static |
rgb(139, 69, 19).
|
static |
rgb(250, 128, 114).
|
static |
rgb(250, 128, 114).
|
static |
rgb(244, 164, 96).
|
static |
rgb(244, 164, 96).
|
static |
rgb( 46, 139, 87).
|
static |
rgb( 46, 139, 87).
|
static |
rgb(255, 245, 238).
|
static |
rgb(255, 245, 238).
|
static |
rgb(160, 82, 45).
|
static |
rgb(160, 82, 45).
|
static |
rgb(192, 192, 192).
|
static |
rgb(192, 192, 192).
|
static |
rgb(135, 206, 235).
|
static |
rgb(135, 206, 235).
|
static |
rgb(106, 90, 205).
|
static |
rgb(106, 90, 205).
|
static |
rgb(112, 128, 144).
|
static |
rgb(112, 128, 144).
|
static |
rgb(112, 128, 144).
|
static |
rgb(112, 128, 144).
|
static |
rgb(255, 250, 250).
|
static |
rgb(255, 250, 250).
|
static |
rgb( 0, 255, 127).
|
static |
rgb( 0, 255, 127).
|
static |
rgb( 70, 130, 180).
|
static |
rgb( 70, 130, 180).
|
static |
rgb(210, 180, 140).
|
static |
rgb(210, 180, 140).
|
static |
rgb( 0, 128, 128).
|
static |
rgb( 0, 128, 128).
|
static |
rgb(216, 191, 216).
|
static |
rgb(216, 191, 216).
|
static |
rgb(255, 99, 71).
|
static |
rgb(255, 99, 71).
Colorf clan::Gradient::top_left |
Color of top left corner of gradient.
Referenced by clan::Gradient::operator==().
Colorf clan::Gradient::top_right |
Color of top right corner of gradient.
Referenced by clan::Gradient::operator==().
|
static |
rgba(0, 0, 0, 0).
|
static |
rgba(0, 0, 0, 0).
|
static |
rgb( 64, 224, 208).
|
static |
rgb( 64, 224, 208).
enum clan::SpanLayout::HitTestResult::Type clan::SpanLayout::HitTestResult::type |
Type clan::ColorHSVx< Type, ColorType >::v |
|
static |
rgb(238, 130, 238).
|
static |
rgb(238, 130, 238).
|
static |
rgb(245, 222, 179).
|
static |
rgb(245, 222, 179).
|
static |
rgb(255, 255, 255).
|
static |
rgb(255, 255, 255).
|
static |
rgb(245, 245, 245).
|
static |
rgb(245, 245, 245).
|
static |
rgb(255, 255, 0).
|
static |
rgb(255, 255, 0).
|
static |
rgb(154, 205, 50).
|
static |
rgb(154, 205, 50).
|
friend |