You.i Engine
YiFocusSearchOptions.h
Go to the documentation of this file.
1 // © You i Labs Inc. 2000-2020. All rights reserved.
2 #ifndef _YI_FOCUS_SEARCH_OPTIONS_H_
3 #define _YI_FOCUS_SEARCH_OPTIONS_H_
4 
5 #include "framework/YiPredef.h"
6 
7 class CYISceneView;
8 
24 {
25 public:
29  typedef bool (*SearchPredicate)(const CYISceneView *);
30 
34  enum class WrapMode
35  {
36  Wrap = 0,
37  DoNotWrap
38  };
39 
44 
49 
54 
60  WrapMode GetWrapMode() const;
61 
65  bool IsValidCandidate(const CYISceneView *pView) const;
66 
67 private:
68  const SearchPredicate m_pPredicate;
69  const WrapMode m_wrapMode;
70 };
71 
76 #endif // _YI_FOCUS_SEARCH_OPTIONS_H_
A class containing focus search options.
Definition: YiFocusSearchOptions.h:23
The base class for all view types. Views are containers of renderable elements that often define inte...
Definition: YiSceneView.h:47
bool IsValidCandidate(const CYISceneView *pView) const
Indicates that the focus search should wrap around when the 'end' of the candidates list is reached...
WrapMode
Definition: YiFocusSearchOptions.h:34
WrapMode GetWrapMode() const
Indicates that the focus search abort when the 'end' of the candidates list is reached.
bool(* SearchPredicate)(const CYISceneView *)
Definition: YiFocusSearchOptions.h:29
SearchPredicate GetSearchPredicate() const