ListBoxScrollPresenterConceptImpl is the base class concept implementation for the List Box presenters that use Scroll View in their presentation. More...
#include <kanzi/ui/node/concept/list_box/list_box_scroll_presenter.hpp>
Public Member Functions | |
| ScrollViewSharedPtr | getScrollView () const |
| Returns the Scroll View that the presenter uses. More... | |
| void | initialize (TListBoxClass *listBox) |
| ListBoxScrollPresenterConceptImpl specific initialization. More... | |
| ListBoxScrollPresenterConceptImpl ()=default | |
| Constructor. More... | |
Protected Member Functions | |
| void | onClickBegin (ClickManipulator::ClickBeginMessageArguments &messageArguments) |
| Handles ClickManipulator::onClickBeginMessage. More... | |
| void | onItemSelected (ListBoxConcept::ItemSelectedMessageArguments &messageArguments) |
| Handles ListBoxConcept::ItemSelectedMessage. More... | |
| void | onScrolled (ScrollViewConcept::ScrolledMessageArguments &messageArguments) |
| Handles ScrollViewClass::ScrolledMessage. More... | |
| void | onScrollFinished (ScrollViewConcept::ScrollFinishedMessageArguments &messageArguments) |
| Handles ScrollViewClass::ScrollFinishedMessage. More... | |
| void | onScrollStarted (ScrollViewConcept::ScrollStartedMessageArguments &messageArguments) |
| Handles ScrollViewClass::ScrollStartedMessage. More... | |
| void | onSnapRequested (ScrollViewConcept::SnapRequestMessageArguments &messageArguments) |
| Handles ScrollViewClass::SnapRequestMessage. More... | |
| void | onUserScrollFinished (ScrollViewConcept::UserScrollFinishedMessageArguments &messageArguments) |
| Handles ScrollViewClass::UserScrollFinishedMessage. More... | |
| void | onUserScrollStarted (ScrollViewConcept::UserScrollStartedMessageArguments &messageArguments) |
| Handles ScrollViewClass::UserScrollStartedMessage. More... | |
| void | scrollToTargetItem (size_t itemIndex, Vector2 scrollPosition, bool smooth) const |
| Requests Scroll View to scroll to target item position. More... | |
| void | sendListBoxTargetChangedMessage (size_t targetItem) const |
| Sends ListBoxScrollPresenterConcept::TargetChangedMessage message to List Box. More... | |
| void | sendScrollViewSetScrollMessage (const Vector2 &scrollPosition) const |
| Sends ScrollViewConcept::SetScrollMessage message to Scroll View. More... | |
| void | sendScrollViewSetScrollTargetMessage (const Vector2 &scrollTarget) const |
| Sends ScrollViewConcept::SetScrollTargetMessage message to Scroll View. More... | |
Protected Attributes | |
| TListBoxClass * | m_listBox |
| List Box that owns this presenter. More... | |
ListBoxScrollPresenterConceptImpl is the base class concept implementation for the List Box presenters that use Scroll View in their presentation.
TDerivedClass must implement:
|
explicitdefault |
Constructor.
| void kanzi::ListBoxScrollPresenterConceptImpl< TDerivedClass, TListBoxClass, TScrollView >::initialize | ( | TListBoxClass * | listBox | ) |
ListBoxScrollPresenterConceptImpl specific initialization.
| listBox | The List Box that owns this presenter. |
| ListBoxScrollPresenterConceptImpl< TDerivedClass, TListBoxClass, TScrollView >::ScrollViewSharedPtr kanzi::ListBoxScrollPresenterConceptImpl< TDerivedClass, TListBoxClass, TScrollView >::getScrollView | ( | ) | const |
Returns the Scroll View that the presenter uses.
|
protected |
Handles ScrollViewClass::ScrolledMessage.
|
protected |
Handles ScrollViewClass::ScrollStartedMessage.
|
protected |
Handles ScrollViewClass::ScrollFinishedMessage.
|
protected |
Handles ScrollViewClass::UserScrollStartedMessage.
|
protected |
Handles ScrollViewClass::UserScrollFinishedMessage.
|
protected |
Handles ScrollViewClass::SnapRequestMessage.
|
protected |
Handles ClickManipulator::onClickBeginMessage.
|
protected |
Handles ListBoxConcept::ItemSelectedMessage.
|
protected |
Requests Scroll View to scroll to target item position.
| itemIndex | The index of the List Box item that the presenter brings to the center of the list box area. |
| scrollPosition | The scroll target position for the Scroll View. |
| smooth | For animated scrolling, set to true. For immediate scrolling, set to false. |
|
protected |
Sends ScrollViewConcept::SetScrollTargetMessage message to Scroll View.
| scrollTarget | The scroll target for the Scroll View. |
|
protected |
Sends ScrollViewConcept::SetScrollMessage message to Scroll View.
| scrollPosition | The scroll position for the Scroll View. |
|
protected |
Sends ListBoxScrollPresenterConcept::TargetChangedMessage message to List Box.
| targetItem | New scroll target item in a List Box. |
|
protected |
List Box that owns this presenter.