FocusHighlightEffectStyle

Since: BlackBerry 10.3.1

#include <bb/cascades/FocusHighlightEffectStyle>

Represents the styles used for the FocusHighlightEffect.

Use the FocusHighlightEffectStyle::Type enum values to set a specific style for the FocusHighlightEffect. The default style is FocusHighlightEffectStyle::Flat, which is supported by all types of controls and can be set on any type of VisualNode. The LinearGradient type is currently only supported by the ImageView control. If the Image provided to an ImageView is nine-sliced, the displayed linear gradient can appear inconsistent and might not look as desired.

Here's an example of how to specify the FocusHighlightEffectStyle, in QML.
 FocusHighlightEffect {
     style: FocusHighlightEffectStyle.Flat
 }
Here's an example of setting the style in C++:
 FocusHighlightEffect* FocusHighlightEffect::create()
         .style(FocusHighlightEffectStyle::Flat);
It's also possible to change the style at any time during runtime:
 FocusHighlightEffect->setStyle(FocusHighlightEffectStyle::Flat);


Overview

Public Types Index

enum Type

Default 0, Flat 1, LinearGradient 2

Public Types

Type

Different styles available for the FocusHighlightEffect:

Since:

BlackBerry 10.3.1

Default 0

The default FocusHighlightEffect.

Flat 1

A flat FocusHighlightEffect.

Since:

BlackBerry 10.3.1

LinearGradient 2

A linear gradient FocusHighlightEffect.

Since:

BlackBerry 10.3.1

Last modified: 2015-01-22



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus