![]() |
MyScript Interactive Ink SDK
3.0.1
|
#include <Style.h>
Public Member Functions | |
| Style ()=default | |
| void | clear () noexcept |
| void | setStrokeColor (Color strokeColor) noexcept |
| Color | getStrokeColor () const noexcept |
| void | setStrokeWidth (float strokeWidth) noexcept |
| float | getStrokeWidth () const noexcept |
| void | setStrokeLineCap (LineCap strokeLineCap) noexcept |
| LineCap | getStrokeLineCap () const noexcept |
| void | setStrokeLineJoin (LineJoin strokeLineJoin) noexcept |
| LineJoin | getStrokeLineJoin () const noexcept |
| void | setStrokeMiterLimit (float strokeMiterLimit) noexcept |
| float | getStrokeMiterLimit () const noexcept |
| void | setStrokeDashArray (const std::vector< float > &strokeDashArray) noexcept |
| std::vector< float > | getStrokeDashArray () const noexcept |
| void | setStrokeDashOffset (float strokeDashOffset) noexcept |
| float | getStrokeDashOffset () const noexcept |
| void | setFillColor (Color fillColor) noexcept |
| Color | getFillColor () const noexcept |
| void | setFillRule (FillRule fillRule) noexcept |
| FillRule | getFillRule () const noexcept |
| void | setFontFamily (const String &fontFamily) noexcept |
| String | getFontFamily () const noexcept |
| void | setFontLineHeight (float fontLineHeight) noexcept |
| float | getFontLineHeight () const noexcept |
| void | setFontSize (float fontSize) noexcept |
| float | getFontSize () const noexcept |
| void | setFontStyle (const String &fontStyle) noexcept |
| String | getFontStyle () const noexcept |
| void | setFontVariant (const String &fontVariant) noexcept |
| String | getFontVariant () const noexcept |
| void | setFontWeight (int fontWeight) noexcept |
| int | getFontWeight () const noexcept |
| void | setDropShadowXOffset (float dropShadowXOffset) noexcept |
| float | getDropShadowXOffset () const noexcept |
| void | setDropShadowYOffset (float dropShadowYOffset) noexcept |
| float | getDropShadowYOffset () const noexcept |
| void | setDropShadowRadius (float dropShadowRadius) noexcept |
| float | getDropShadowRadius () const noexcept |
| void | setDropShadowColor (Color dropShadowColor) noexcept |
| Color | getDropShadowColor () const noexcept |
| std::underlying_type< StyleFlag >::type | getChangeFlags () noexcept |
| void | setChangeFlags (std::underlying_type< StyleFlag >::type flags) noexcept |
| void | clearChangeFlags () noexcept |
| void | applyTo (ICanvas &canvas) noexcept |
| bool | operator== (const Style &other) const noexcept |
| bool | operator!= (const Style &other) const noexcept |
Protected Attributes | |
| Color | strokeColor = Color::NONE |
| float | strokeWidth = 1.f |
| LineCap | strokeLineCap = LineCap::BUTT |
| LineJoin | strokeLineJoin = LineJoin::MITER |
| float | strokeMiterLimit = 0.5f |
| std::vector< float > | strokeDashArray {} |
| float | strokeDashOffset = 0.f |
| Color | fillColor = Color::BLACK |
| FillRule | fillRule = FillRule::NONZERO |
| String | fontFamily = "sans-serif" |
| float | fontLineHeight = 1.2f |
| float | fontSize = 10.0f |
| String | fontStyle = "normal" |
| String | fontVariant = "normal" |
| int | fontWeight = 400 |
| float | dropShadowXOffset = 0.5f |
| float | dropShadowYOffset = 0.5f |
| float | dropShadowRadius = 2.f |
| Color | dropShadowColor = Color::NONE |
| std::underlying_type< StyleFlag >::type | changeFlags = StyleFlag::StyleFlag_NONE |
Style information for the rendering of strokes and text.
|
default |
Default constructor.
|
noexcept |
Resets the style properties to their default value.
|
noexcept |
Sets the stroke color.
| strokeColor | the stroke color. |
|
noexcept |
Retrieves the stroke color.
|
noexcept |
Sets the stroke width.
| strokeWidth | the stroke width. |
|
noexcept |
Retrieves the stroke width.
|
noexcept |
Sets the stroke line cap.
| strokeLineCap | the stroke line cap. |
|
noexcept |
Retrieves the stroke line cap.
|
noexcept |
Sets the stroke line join.
| strokeLineJoin | the stroke line join. |
|
noexcept |
Retrieves the stroke line join.
|
noexcept |
Sets the stroke miter limit.
| strokeMiterLimit | the stroke miter limit. |
|
noexcept |
Retrieves the stroke miter limit.
|
noexcept |
Sets the pattern of dashes and gaps used to stroke paths.
| strokeDashArray | the vector describing the dashes pattern. |
|
noexcept |
Retrieves the stroke dash pattern.
|
noexcept |
Sets the distance into the dash pattern to start the dash.
| strokeDashOffset | the dash offset. |
|
noexcept |
Retrieves the stroke dash offset.
|
noexcept |
Sets the fill color.
| fillColor | the fill color. |
|
noexcept |
Retrieves the stroke fill color.
|
noexcept |
Sets the fill rule.
| fillRule | the fill rule. |
|
noexcept |
Retrieves the stroke fill rule.
|
noexcept |
Sets the font family.
| fontFamily | the font family. |
|
noexcept |
Retrieves the font family.
|
noexcept |
Sets the font line height.
| fontLineHeight | the font line height. |
|
noexcept |
Retrieves the font line height.
|
noexcept |
Sets the font size.
| fontSize | the font size. |
|
noexcept |
Retrieves the font size.
|
noexcept |
Sets the font style.
| fontStyle | the font style. |
|
noexcept |
Retrieves the font style.
|
noexcept |
Sets the font variant.
| fontVariant | the font variant. |
|
noexcept |
Retrieves the font variant.
|
noexcept |
Sets the font weight.
| fontWeight | the font weight. |
|
noexcept |
Retrieves the font weight.
|
noexcept |
Sets the drop shadow horizontal offset.
| dropShadowXOffset | the drop shadow horizontal offset. |
|
noexcept |
Retrieves the drop shadow horizontal offset.
|
noexcept |
Sets the drop shadow vertical offset.
| dropShadowYOffset | the drop shadow vertical offset. |
|
noexcept |
Retrieves the drop shadow vertical offset.
|
noexcept |
Sets the drop shadow blur radius.
| dropShadowRadius | the drop shadow blur radius. |
|
noexcept |
Retrieves the drop shadow blur radius.
|
noexcept |
Sets the drop shadow color.
| dropShadowColor | the drop shadow color. |
|
noexcept |
Retrieves the drop shadow color.
|
noexcept |
Returns the set of style attributes changed since construction or last call to clearChangeFlags().
|
noexcept |
Sets the change flags.
| flags | the set of style flags. |
|
noexcept |
Clears the change flags.
|
noexcept |
Apply changed style attributes to the specified target canvas.
| canvas | the target canvas. |
|
noexcept |
Operator == overload.
| other | the style to compare this with. |
true if the styles are strictly equal, otherwise false.
|
noexcept |
Operator != overload.
| other | the style to compare this with. |
true if the styles are strictly equal, otherwise false.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |