#include <ilviews/base/resources/IlvResource.h>
#include <ilviews/base/resources/IlvColor.h>
#include <ilviews/base/region.h>
Classes | |
class | IlvPalette::Builder |
IlvPalette builder. More... | |
class | IlvPalette::Changer |
IlvPalette changer. More... | |
class | IlvPalette |
Resource class. More... | |
Enumerations | |
enum | IlvAntialiasingMode { IlvDefaultAntialiasingMode, IlvNoAntialiasingMode, IlvUseAntialiasingMode } |
The different anti-aliasing modes. More... | |
enum | IlvArcMode { IlvArcPie, IlvArcChord } |
The different ways to fill an arc. More... | |
enum | IlvBorderPosition { IlvBorderPosition::centeredOnBounds, IlvBorderPosition::insideBounds, IlvBorderPosition::outsideBounds } |
Indicates where a border is drawn. More... | |
enum | IlvDrawMode { IlvModeSet, IlvModeOr, IlvModeAnd, IlvModeXor, IlvModeNot, IlvModeInvert, IlvModeNotOr, IlvModeNotAnd, IlvModeNotXor } |
The different logical modes for drawing. More... | |
enum | IlvFillRule { IlvEvenOddRule, IlvWindingRule } |
The different ways to fill a polygonal area. More... | |
enum | IlvFillStyle { IlvFillPattern, IlvFillMaskPattern, IlvFillColorPattern, IlvFillGradientPattern } |
The different ways to fill an area. More... | |
Library: xviews or winviews or mviews (mutually exclusive)
Declaration of the IlvPalette class.
enum IlvAntialiasingMode |
The different anti-aliasing modes.
This enumeration indicates what sort of anti-aliasing mode you want for your drawing.
IlvPalette::setAntialiasingMode()
. Enumerator | |
---|---|
IlvDefaultAntialiasingMode | The anti-aliasing mode is the default one. |
IlvNoAntialiasingMode | No anti-aliasing is used. |
IlvUseAntialiasingMode | Anti-aliasing is forced. |
enum IlvArcMode |
The different ways to fill an arc.
When you use a drawing command that fills an arc (typically IlvPort::fillArc()
), this enumeration indicates how you want the arc to be closed.
Enumerator | |
---|---|
IlvArcPie | The arc is filled like a pie slice. |
IlvArcChord | The arc is filled by adding a chord between the two arc ends, and filling the entire resulting area. |
|
strong |
enum IlvDrawMode |
The different logical modes for drawing.
This enumeration indicates the logical operation used when drawing in an IlvPort
. This logical function combines the source and destination color values to perform some rendering effects. Most of the time, however, the actual resulting color cannot be predicted.
Usually, you will be using the IlvModeSet
mode, which simply copies the source color value to the destination port, regardless of the color value of the replaced pixel. The IlvModeXor
mode performs an XOR
operation on the source and target pixel values, so that if you draw the same thing twice at the same time, the result would be just as if you had not performed any drawing at all. This is the mode that Rogue Wave Views sometimes uses to give visual feedback during interactive operations.
Here, the different possible values are described, indicating what will be the final destination color value (dst
) depending on the source color value (src
) and the original color value of the destination pixel (orig
).
IlvPalette::setMode()
, IlvGraphic::setMode()
. enum IlvFillRule |
The different ways to fill a polygonal area.
When you use a drawing command that fills a polygon (typically IlvPort::fillPolyLine(
), and if the resulting polygon has segments that cross each other, there are different ways to decide whether a point should be considered as part of the polygon (and therefore, painted) or not. This enumeration lets you specify what behavior you expect.
enum IlvFillStyle |
The different ways to fill an area.
When you use a drawing command that fills an area (such as IlvPort::fillRectangle()
), and if you have set a pattern to the palette, then the pattern may be used in different ways.
Enumerator | |
---|---|
IlvFillPattern | The palette uses the monochrome pattern that was set by The pattern is copied to the destination port using the foreground color of the palette for each ' |
IlvFillMaskPattern | The palette uses the monochrome pattern that was set by The pattern is copied to the destination port using the foreground color of the palette for each ' |
IlvFillColorPattern | The palette uses the colored pattern that was set by The pattern is entirely copied to the destination port. |
IlvFillGradientPattern | The palette uses the gradient pattern that was set by The pattern is entirely copied to the destination port. |