30#ifndef _CEGUIColourRect_h_
31#define _CEGUIColourRect_h_
33#include "CEGUI/Base.h"
34#include "CEGUI/Colour.h"
201 inline ColourRect operator*(
const float val)
const
214 d_top_left + val.d_top_left,
215 d_top_right + val.d_top_right,
216 d_bottom_left + val.d_bottom_left,
Definition: MemoryAllocatedObject.h:110
Class that holds details of colours for the four corners of a rectangle.
Definition: ColourRect.h:45
ColourRect(void)
Default constructor.
bool isMonochromatic() const
Determinate the ColourRect is monochromatic or variegated.
void setColours(const Colour &col)
Set the colour of all four corners simultaneously.
void setBottomAlpha(float alpha)
Set the alpha value to use for the bottom edge of the ColourRect.
void setAlpha(float alpha)
Set the alpha value to use for all four corners of the ColourRect.
void setLeftAlpha(float alpha)
Set the alpha value to use for the left edge of the ColourRect.
void setTopAlpha(float alpha)
Set the alpha value to use for the top edge of the ColourRect.
ColourRect(const Colour &col)
Constructor for ColourRect objects (via single colour). Also handles default construction.
ColourRect(const Colour &top_left, const Colour &top_right, const Colour &bottom_left, const Colour &bottom_right)
Constructor for ColourRect objects.
Colour getColourAtPoint(float x, float y) const
Get the colour at a point in the rectangle.
ColourRect getSubRectangle(float left, float right, float top, float bottom) const
Gets a portion of this ColourRect as a subset ColourRect.
void setRightAlpha(float alpha)
Set the alpha value to use for the right edge of the ColourRect.
Colour d_bottom_right
ColourRect component colours.
Definition: ColourRect.h:222
void modulateAlpha(float alpha)
Module the alpha components of each corner's colour by a constant.
ColourRect & operator*=(const ColourRect &other)
Modulate all components of this colour rect with corresponding components from another colour rect.
Class representing colour values within the system.
Definition: Colour.h:46
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
String CEGUIEXPORT operator+(const String &str1, const String &str2)
Return String object that is the concatenation of the given inputs.