TouchGFX + 0/4 examples
CodeScope will show references to touchgfx::colortype from the following samples and libraries:
Examples
STM32469I-Discovery
Demonstrations
STM32469I_EVAL
Demonstrations
STM324x9I_EVAL
Demonstrations
STM32F429I-Discovery
Demonstrations
 
Symbols
loading...
Files
loading...

touchgfx::colortype struct

@struct colortype Types.hpp touchgfx/hal/Types.hpp Type for representing a color. This type can contain a color value. Note that in order to maintain backwards compatibility, casting this type to an integral value will yield a 16-bit value. To extract a 24/32-bit color from this type, use the getColor32 function.

Syntax

struct colortype {     colortype() : color(0) {}     colortype(uint32_t col)     {         color = col;     }     inline uint32_t getColor32() const     {         return color;     }     operator uint16_t() const     {         return (uint16_t)color;     }     uint32_t color;  };

Fields

color

No summary provided. Read more...

Methods

getColor32() const

@fn inline uint32_t getColor32() const Gets color 32 as a 32bit value suitable for passing to Color::getRedColor(), Color::getGreenColor() and Color::getBlueColor() which will handle both 16 bit colortypes and 24 bit colortypes. @see Color::getRedColor() @see Color::getGreenColor() @see Color::getBlueColor(). Read more...

Examples

touchgfx::colortype is referenced by 4 libraries and example projects.

References

LocationReferrerScopeText
Types.hpp:75
struct colortype
BlitOp.hpp:61touchgfx::BlitOp::colortouchgfx::BlitOp
colortype color; ///< Color to fill
Box.hpp:63touchgfx::Box::Box()
Box(uint16_t width, uint16_t height, colortype color, uint8_t alpha = 255) : Widget(),
Box.hpp:90touchgfx::Box::setColor()
void setColor(colortype color)
Box.hpp:104touchgfx::Box::getColor() consttouchgfx::Box
inline colortype getColor() const
Box.hpp:179touchgfx::Box::colortouchgfx::Box
colortype color; ///< The fill color for this Box
ButtonWithLabel.hpp:86touchgfx::ButtonWithLabel::setLabelColor()
void setLabelColor(colortype col, bool performInvalidate = false)
ButtonWithLabel.hpp:107touchgfx::ButtonWithLabel::setLabelColorPressed()
void setLabelColorPressed(colortype col, bool performInvalidate = false)
ButtonWithLabel.hpp:184touchgfx::ButtonWithLabel::colortouchgfx::ButtonWithLabel
colortype color; ///< The color used for the label when not pressed.
ButtonWithLabel.hpp:185touchgfx::ButtonWithLabel::colorPressedtouchgfx::ButtonWithLabel
colortype colorPressed; ///< The color used for the label when pressed.
Color.hpp:54touchgfx::Color::getColorFrom24BitRGB()touchgfx::Color
static colortype getColorFrom24BitRGB(uint8_t red, uint8_t green, uint8_t blue);
Color.hpp:67touchgfx::Color::getRedColor()
static inline uint8_t getRedColor(colortype color)
Color.hpp:84touchgfx::Color::getGreenColor()
static inline uint8_t getGreenColor(colortype color)
Color.hpp:101touchgfx::Color::getBlueColor()
static inline uint8_t getBlueColor(colortype color)
HAL.hpp:463touchgfx::HAL::blitCopyGlyph()::colortouchgfx::HAL::blitCopyGlyph()
virtual void blitCopyGlyph(const uint8_t* pSrc, uint16_t x, uint16_t y, uint16_t width, uint16_t height, uint16_t srcWidth, colortype color, uint8_t alpha, BlitOperations operation);
HAL.hpp:484touchgfx::HAL::blitFill()::colortouchgfx::HAL::blitFill()
virtual void blitFill(colortype color, uint16_t x, uint16_t y, uint16_t width, uint16_t height, uint8_t alpha);
LCD.hpp:93touchgfx::LCD::drawGlyph()::colortouchgfx::LCD::drawGlyph()
void drawGlyph(int16_t x, int16_t y, uint16_t offsetX, uint16_t offsetY, int16_t maxX, int16_t maxY, const GlyphNode* glyph, const uint8_t* glyphData, colortype color, uint8_t bitsPerPixel, uint8_t alpha = 255);
LCD.hpp:185touchgfx::LCD::fillRect()::colortouchgfx::LCD::fillRect()
virtual void fillRect(const Rect& rect, colortype color, uint8_t alpha = 255) = 0;
LCD.hpp:201touchgfx::LCD::drawHorizontalLine()::colortouchgfx::LCD::drawHorizontalLine()
void drawHorizontalLine(int16_t x, int16_t y, uint16_t width, uint16_t lineWidth, colortype color, uint8_t alpha = 255);
LCD.hpp:217touchgfx::LCD::drawVerticalLine()::colortouchgfx::LCD::drawVerticalLine()
void drawVerticalLine(int16_t x, int16_t y, uint16_t height, uint16_t lineWidth, colortype color, uint8_t alpha = 255);
LCD.hpp:231touchgfx::LCD::drawRect()::colortouchgfx::LCD::drawRect()
void drawRect(const Rect& rect, colortype color, uint8_t alpha = 255);
LCD.hpp:245touchgfx::LCD::drawBorder()::colortouchgfx::LCD::drawBorder()
void drawBorder(const Rect& rect, uint16_t lineWidth, colortype color, uint8_t alpha = 255);
LCD.hpp:260touchgfx::LCD::StringVisuals::colortouchgfx::LCD::StringVisuals
colortype color; ///< RGB color value. Default is 0 (black).
LCD.hpp:295touchgfx::LCD::StringVisuals::StringVisuals()
StringVisuals(const Font* font, colortype color, uint8_t alpha, Alignment alignment, uint16_t linespace, TextRotation rotation, TextDirection textDirection, uint8_t indentation, WideTextAction wideTextAction = WIDE_TEXT_NONE)
LCD.hpp:434touchgfx::LCD::drawGlyph()::colortouchgfx::LCD::drawGlyph()
virtual void drawGlyph(uint16_t* wbuf, Rect widgetArea, int16_t x, int16_t y, uint16_t offsetX, uint16_t offsetY, const Rect& invalidatedArea, const GlyphNode* glyph, const uint8_t* glyphData, colortype color, uint8_t bitsPerPixel, uint8_t alpha, TextRotation rotation = TEXT_ROTATE_0) = 0;
LCD16bpp.hpp:143touchgfx::LCD16bpp::fillRect()::colortouchgfx::LCD16bpp::fillRect()
virtual void fillRect(const Rect& rect, colortype color, uint8_t alpha = 255);
LCD16bpp.hpp:246touchgfx::LCD16bpp::drawGlyph()::colortouchgfx::LCD16bpp::drawGlyph()
virtual void drawGlyph(uint16_t* wbuf, Rect widgetArea, int16_t x, int16_t y, uint16_t offsetX, uint16_t offsetY, const Rect& invalidatedArea, const GlyphNode* glyph, const uint8_t* glyphData, colortype color, uint8_t bitsPerPixel, uint8_t alpha, TextRotation rotation = TEXT_ROTATE_0);
LCD24bpp.hpp:145touchgfx::LCD24bpp::fillRect()::colortouchgfx::LCD24bpp::fillRect()
virtual void fillRect(const Rect& rect, colortype color, uint8_t alpha = 255);
LCD24bpp.hpp:248touchgfx::LCD24bpp::drawGlyph()::colortouchgfx::LCD24bpp::drawGlyph()
virtual void drawGlyph(uint16_t* wbuf, Rect widgetArea, int16_t x, int16_t y, uint16_t offsetX, uint16_t offsetY, const Rect& invalidatedArea, const GlyphNode* glyph, const uint8_t* glyphData, colortype color, uint8_t bitsPerPixel, uint8_t alpha, TextRotation rotation = TEXT_ROTATE_0);
PainterRGB565.hpp:49touchgfx::PainterRGB565::PainterRGB565()::colortouchgfx::PainterRGB565::PainterRGB565()
PainterRGB565(colortype color = 0, uint8_t alpha = 255);
PainterRGB565.hpp:61touchgfx::PainterRGB565::setColor()::colortouchgfx::PainterRGB565::setColor()
void setColor(colortype color, uint8_t alpha = 255);
PainterRGB565.hpp:72touchgfx::PainterRGB565::getColor() consttouchgfx::PainterRGB565
colortype getColor() const;
ScrollableContainer.hpp:315touchgfx::ScrollableContainer::setScrollbarsColor()::colortouchgfx::ScrollableContainer::setScrollbarsColor()
void setScrollbarsColor(colortype color);
ScrollableContainer.hpp:392touchgfx::ScrollableContainer::scrollbarColortouchgfx::ScrollableContainer
colortype scrollbarColor; ///< The color of the scrollbar
TextArea.hpp:83touchgfx::TextArea::setColor()
inline void setColor(colortype color)
TextArea.hpp:97touchgfx::TextArea::getColor() consttouchgfx::TextArea
inline colortype getColor() const
TextArea.hpp:423touchgfx::TextArea::colortouchgfx::TextArea
colortype color; ///< The color to use.

Type Use