8 #ifndef META_OCEAN_PLATFORM_META_QUEST_APPLICATION_VR_TABLE_MENU_BASE_H
9 #define META_OCEAN_PLATFORM_META_QUEST_APPLICATION_VR_TABLE_MENU_BASE_H
62 inline Entry(std::string name, std::string url);
81 typedef std::pair<std::string, Entries>
Group;
124 inline const std::string& name()
const;
130 inline const std::string& url()
const;
136 inline bool isEntry()
const;
153 bool isEntry_ =
false;
178 inline bool setMenuEntries(
const Group& group,
const RGBAColor& menuBackgroundColor =
RGBAColor(1.0f, 1.0f, 1.0f),
const RGBAColor& entryBackgroundColor =
RGBAColor(0.0f, 0.0f, 0.0f, 0.0f),
const Scalar entryHeight =
Scalar(0.04),
const Scalar minWidth =
Scalar(1),
const Scalar minHeight =
Scalar(0.5));
190 bool setMenuEntries(
const Groups& groups,
const RGBAColor& menuBackgroundColor =
RGBAColor(1.0f, 1.0f, 1.0f),
const RGBAColor& entryBackgroundColor =
RGBAColor(0.0f, 0.0f, 0.0f, 0.0f),
const Scalar entryHeight =
Scalar(0.04),
const Scalar minWidth =
Scalar(1),
const Scalar minHeight =
Scalar(0.5));
209 inline bool isShown()
const;
233 inline bool isValid()
const;
311 std::string focusedEntryNames_[2];
321 name_(std::move(name)),
331 return text_->size();
356 const Groups groups(1, group);
358 return setMenuEntries(groups, menuBackgroundColor, entryBackgroundColor, entryHeight, minWidth, minHeight);
bool isValid() const
Returns whether this matrix is a valid homogeneous transformation.
Definition: HomogenousMatrix4.h:1806
bool isNull() const
Returns whether this object reference holds no internal object.
Definition: base/ObjectRef.h:390
This class implements a color defined by red, green, blue and alpha parameters.
Definition: RGBAColor.h:41
This class is the base class for all rendering engines like.
Definition: Engine.h:46
float Scalar
Definition of a scalar type.
Definition: Math.h:128
HomogenousMatrixT4< Scalar > HomogenousMatrix4
Definition of the HomogenousMatrix4 object, depending on the OCEAN_MATH_USE_SINGLE_PRECISION flag eit...
Definition: HomogenousMatrix4.h:37
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15