Brush Class

class Qul::PlatformInterface::Brush

Represents the fill pattern of shapes drawn using DrawingEngine. More...

Header: #include <platforminterface/drawingengine.h>
Since: Qt Quick Ultralite (Platform) 1.8

Public Types

enum Pattern { SolidPattern }

Public Functions

Brush(Qul::PlatformInterface::Rgba32 color)
Qul::PlatformInterface::Rgba32 color() const
Qul::PlatformInterface::Brush::Pattern pattern() const

Detailed Description

A brush has a pattern as specified by the pattern() method.

Currently there is only support for Qul::PlatformInterface::Brush::SolidPattern, representing a solid color.

See also DrawingEngine::blendPath.

Member Type Documentation

enum Brush::Pattern

Defines the different brush patterns that are supported.

Qul::PlatformInterface::Brush::SolidPattern0A solid color pattern.

Member Function Documentation

Brush::Brush(Qul::PlatformInterface::Rgba32 color)

Constructs a Qul::PlatformInterface::Brush::SolidPattern brush with the given color.

Qul::PlatformInterface::Rgba32 Brush::color() const

Returns the brush color.

Calling this function is only valid if the brush has the Qul::PlatformInterface::Brush::SolidPattern pattern.

Qul::PlatformInterface::Brush::Pattern Brush::pattern() const

Returns the brush pattern.

Available under certain Qt licenses.
Find out more.