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()
It's also possible to change the style at any time during runtime:


Public Types Index

enum Type

Default 0, Flat 1, LinearGradient 2

Public Types


Different styles available for the FocusHighlightEffect:


BlackBerry 10.3.1

Default 0

The default FocusHighlightEffect.

Flat 1

A flat FocusHighlightEffect.


BlackBerry 10.3.1

LinearGradient 2

A linear gradient FocusHighlightEffect.


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