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
85 using Group = std::pair<std::string, Entries>;
128 inline const std::string& name()
const;
134 inline const std::string& url()
const;
140 inline bool isEntry()
const;
157 bool isEntry_ =
false;
182 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));
194 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));
213 inline bool isShown()
const;
237 inline bool isValid()
const;
315 std::string focusedEntryNames_[2];
325 name_(std::move(name)),
326 url_(std::move(url)),
336 return text_->size();
361 const Groups groups(1, group);
363 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:129
The namespace covering the entire Ocean framework.
Definition Accessor.h:15