Polyphase Game Engine
Loading...
Searching...
No Matches
ComboBox Class Reference

#include <ComboBox.h>

Inheritance diagram for ComboBox:
Widget Node Object

Public Member Functions

 DECLARE_NODE (ComboBox, Widget)
 
virtual void Create () override
 
virtual void GatherProperties (std::vector< Property > &props) override
 
virtual void Tick (float deltaTime) override
 
virtual void EditorTick (float deltaTime) override
 
virtual void PreRender () override
 
void AddOption (const std::string &option)
 
void RemoveOption (int32_t index)
 
void ClearOptions ()
 
void SetOptions (const std::vector< std::string > &options)
 
const std::vector< std::string > & GetOptions () const
 
int32_t GetOptionCount () const
 
void SetSelectedIndex (int32_t index)
 
int32_t GetSelectedIndex () const
 
std::string GetSelectedOption () const
 
bool IsOpen () const
 
void Open ()
 
void Close ()
 
void Toggle ()
 
void SetBackgroundColor (glm::vec4 color)
 
glm::vec4 GetBackgroundColor ()
 
void SetTextColor (glm::vec4 color)
 
glm::vec4 GetTextColor ()
 
void SetDropdownColor (glm::vec4 color)
 
glm::vec4 GetDropdownColor ()
 
void SetHoveredColor (glm::vec4 color)
 
glm::vec4 GetHoveredColor ()
 
void SetMaxVisibleItems (int32_t count)
 
int32_t GetMaxVisibleItems () const
 
QuadGetBackground ()
 
TextGetTextWidget ()
 
- Public Member Functions inherited from Widget
 DECLARE_NODE (Widget, Node)
 
 Widget ()
 
virtual void Start () override
 
virtual void SetVisible (bool visible) override
 
virtual void PrepareTick (std::vector< NodePtrWeak > &outTickNodes, bool game, bool recurse) override
 
virtual void Render () override
 
virtual VertexType GetVertexType () const override
 
virtual bool IsWidget () const override
 
WidgetGetParentWidget ()
 
const WidgetGetParentWidget () const
 
WidgetGetChildWidget (int32_t index)
 
Rect GetRect ()
 
void SetX (float x)
 
void SetY (float y)
 
void SetWidth (float width)
 
void SetHeight (float height)
 
void SetXRatio (float x)
 
void SetYRatio (float y)
 
void SetWidthRatio (float width)
 
void SetHeightRatio (float height)
 
void SetLeftMargin (float left)
 
void SetTopMargin (float top)
 
void SetRightMargin (float right)
 
void SetBottomMargin (float bottom)
 
virtual void SetPosition (float x, float y)
 
virtual void SetDimensions (float width, float height)
 
void SetPosition (glm::vec2 position)
 
void SetDimensions (glm::vec2 dimensions)
 
void SetRect (float x, float y, float width, float height)
 
void SetRect (glm::vec2 position, glm::vec2 dimensions)
 
void SetRect (Rect rect)
 
void SetRatios (float x, float y, float width, float height)
 
void SetMargins (float left, float top, float right, float bottom)
 
void SetOffset (float x, float y)
 
glm::vec2 GetOffset () const
 
void SetSize (float x, float y)
 
glm::vec2 GetSize () const
 
AnchorMode GetAnchorMode () const
 
void SetAnchorMode (AnchorMode anchorMode)
 
bool AnchorStretchesX (AnchorMode mode) const
 
bool AnchorStretchesY (AnchorMode mode) const
 
bool StretchX () const
 
bool StretchY () const
 
glm::vec2 GetAnchorRatio () const
 
void SetFullScreen ()
 
void Centered ()
 
void CenterPivot ()
 
float GetX () const
 
float GetY () const
 
float GetWidth () const
 
float GetHeight () const
 
glm::vec2 GetPosition () const
 
glm::vec2 GetDimensions () const
 
void UpdateRect ()
 
void UpdateColor ()
 
void FitInsideParent ()
 
float GetParentWidth () const
 
float GetParentHeight () const
 
virtual void SetColor (glm::vec4 color)
 
glm::vec4 GetColor () const
 
void SetOpacity (uint8_t opacity)
 
uint8_t GetOpacity () const
 
void SetOpacityFloat (float opacity)
 
float GetOpacityFloat () const
 
virtual bool ShouldHandleInput ()
 
virtual void MarkDirty ()
 
void MarkClean ()
 
bool IsDirty () const
 
bool ContainsMouse (bool testScissor=true) const
 
virtual bool ContainsPoint (int32_t x, int32_t y)
 
void MoveToMousePosition ()
 
const glm::mat3 & GetTransform ()
 
void SetRotation (float degrees)
 
float GetRotation () const
 
void SetPivot (glm::vec2 pivot)
 
glm::vec2 GetPivot () const
 
void SetScale (glm::vec2 scale)
 
glm::vec2 GetScale () const
 
glm::vec2 GetAbsoluteScale () const
 
bool IsScissorEnabled () const
 
void EnableScissor (bool enable)
 
Rect GetScissorRect () const
 
void SetUseGameResolution (bool use)
 
bool GetUseGameResolution () const
 
void SetTooltipName (const std::string &name)
 
const std::string & GetTooltipName () const
 
void SetTooltipDescription (const std::string &description)
 
const std::string & GetTooltipDescription () const
 
bool HasTooltip () const
 
- Public Member Functions inherited from Node
 DECLARE_FACTORY_MANAGER (Node)
 
 DECLARE_FACTORY (Node, Node)
 
 DECLARE_OBJECT (Node, Object)
 
 DECLARE_SCRIPT_LINK_BASE (Node)
 
 Node ()
 
virtual ~Node ()
 
virtual void Destroy ()
 
void DestroyDeferred ()
 
void Doom ()
 
virtual void SaveStream (Stream &stream, Platform platform)
 
virtual void LoadStream (Stream &stream, Platform platform, uint32_t version)
 
virtual void Copy (Node *srcNode, bool recurse)
 
virtual void Render (PipelineConfig pipelineConfig)
 
virtual void Awake ()
 
virtual void Stop ()
 
uint32_t GetLastTickedFrame () const
 
virtual void OnInstanced ()
 
virtual void GatherReplicatedData (std::vector< NetDatum > &outData)
 
virtual void GatherNetFuncs (std::vector< NetFunc > &outFuncs)
 
void GatherPropertyOverrides (std::vector< Property > &outOverrides)
 
void ApplyPropertyOverrides (const std::vector< Property > &overs)
 
virtual void BeginOverlap (Primitive3D *thisComp, Primitive3D *otherComp)
 
virtual void EndOverlap (Primitive3D *thisComp, Primitive3D *otherComp)
 
virtual void OnCollision (Primitive3D *thisComp, Primitive3D *otherComp, glm::vec3 impactPoint, glm::vec3 impactNormal, btPersistentManifold *manifold)
 
NodeId GetNodeId () const
 
uint64_t GetPersistentUuid () const
 
void SetPersistentUuid (uint64_t uuid)
 
void EnsurePersistentUuid ()
 
void EmitSignal (const std::string &name, const std::vector< Datum > &args)
 
void ConnectSignal (const std::string &name, Node *listener, SignalHandlerFP func)
 
void ConnectSignal (const std::string &name, Node *listener, const ScriptFunc &func)
 
void DisconnectSignal (const std::string &name, Node *listener)
 
void RenderShadow ()
 
void RenderSelected (bool renderChildren)
 
NodeCreateChild (TypeId nodeType)
 
NodeCreateChild (const char *typeName)
 
NodeCreateChildClone (Node *srcNode, bool recurse)
 
NodePtr Clone (bool recurse, bool instantiateLinkedScene=true, bool resolveNodePaths=false)
 
void DestroyAllChildren ()
 
NodeGetRoot ()
 
bool IsWorldRoot () const
 
NodeGetSubRoot ()
 
template<class NodeClass >
NodeClass * CreateChild ()
 
template<class NodeClass >
SharedPtr< NodeClass > CreateChildSp ()
 
template<class NodeClass >
NodeClass * CreateChild (const char *name)
 
template<class NodeClass >
SharedPtr< NodeClass > CreateChildSp (const char *name)
 
bool IsDestroyed () const
 
bool IsPendingDestroy () const
 
bool IsDoomed () const
 
bool HasStarted () const
 
bool HasAwoken () const
 
void EnableTick (bool enable)
 
bool IsTickEnabled () const
 
virtual void SetWorld (World *world, bool subRoot)
 
WorldGetWorld ()
 
void SetScene (Scene *scene)
 
SceneGetScene ()
 
uint8_t GetTargetScreen () const
 
void SetTargetScreen (uint8_t screen)
 
std::vector< NetDatum > & GetReplicatedData ()
 
void SetNetId (NetId id)
 
NetId GetNetId () const
 
NetHostId GetOwningHost () const
 
void SetOwningHost (NetHostId hostId, bool setAsPawn=false)
 
void SetReplicate (bool replicate)
 
bool IsReplicated () const
 
void SetReplicateTransform (bool repTransform)
 
bool IsTransformReplicated () const
 
void ForceReplication ()
 
void ClearForcedReplication ()
 
bool NeedsForcedReplication ()
 
virtual bool CheckNetRelevance (Node *playerNode)
 
bool IsAlwaysRelevant () const
 
void SetAlwaysRelevant (bool alwaysRelevant)
 
bool HasTag (const std::string &tag)
 
void AddTag (const std::string &tag)
 
void RemoveTag (const std::string &tag)
 
void SetName (const std::string &newName)
 
const std::string & GetName () const
 
virtual void SetActive (bool active)
 
bool IsActive (bool recurse=false) const
 
bool IsVisible (bool recurse=false) const
 
void SetTransient (bool transient)
 
virtual bool IsTransient () const
 
void SetPersistent (bool persistent)
 
bool IsPersistent () const
 
void SetDefault (bool isDefault)
 
bool IsDefault () const
 
void SetUserdataCreated (bool created)
 
bool IsUserdataCreated () const
 
virtual const char * GetTypeName () const
 
virtual DrawData GetDrawData ()
 
virtual bool IsNode3D () const
 
virtual bool IsPrimitive3D () const
 
virtual bool IsLight3D () const
 
NodeGetParent ()
 
const NodeGetParent () const
 
const std::vector< NodePtr > & GetChildren () const
 
virtual void Attach (Node *parent, bool keepWorldTransform=false, int32_t index=-1)
 
void Detach (bool keepWorldTransform=false)
 
void AddChild (Node *child, int32_t index=-1)
 
void RemoveChild (Node *child)
 
void RemoveChild (int32_t index)
 
template<typename T >
void AddChild (const SharedPtr< T > &child, int32_t index=-1)
 
template<typename T >
void RemoveChild (const SharedPtr< Node > &child)
 
int32_t FindChildIndex (const std::string &name) const
 
int32_t FindChildIndex (Node *child) const
 
NodeFindChild (const std::string &name, bool recurse) const
 
NodeFindChildWithTag (const std::string &name, bool recurse) const
 
NodeFindDescendant (const std::string &name)
 
NodeFindAncestor (const std::string &name)
 
bool HasAncestor (Node *node)
 
NodeGetChild (int32_t index) const
 
NodeGetChildByType (TypeId type) const
 
uint32_t GetNumChildren () const
 
int32_t FindParentNodeIndex () const
 
void SetHitCheckId (uint32_t id)
 
uint32_t GetHitCheckId () const
 
bool IsLateTickEnabled () const
 
void EnableLateTick (bool enable)
 
ScriptGetScript ()
 
void SetScriptFile (const std::string &fileName)
 
bool DoChildrenHaveUniqueNames () const
 
void BreakSceneLink ()
 
bool IsSceneLinked (bool ignoreInPie=true) const
 
bool IsSceneLinkedChild (bool ignoreInPie=true)
 
bool IsForeign () const
 
bool HasAuthority () const
 
bool IsOwned () const
 
bool IsLocallyControlled () const
 
Datum GetField (const std::string &key)
 
void SetField (const std::string &name, const Datum &value)
 
Datum GetField (int32_t key)
 
void SetField (int32_t key, const Datum &value)
 
Datum CallFunction (const std::string &name, const std::vector< Datum > &args={})
 
NetFuncFindNetFunc (const char *name)
 
NetFuncFindNetFunc (uint16_t index)
 
void InvokeNetFunc (const char *name)
 
void InvokeNetFunc (const char *name, Datum param0)
 
void InvokeNetFunc (const char *name, Datum param0, Datum param1)
 
void InvokeNetFunc (const char *name, Datum param0, Datum param1, Datum param2)
 
void InvokeNetFunc (const char *name, Datum param0, Datum param1, Datum param2, Datum param3)
 
void InvokeNetFunc (const char *name, Datum param0, Datum param1, Datum param2, Datum param3, Datum param4)
 
void InvokeNetFunc (const char *name, Datum param0, Datum param1, Datum param2, Datum param3, Datum param4, Datum param5)
 
void InvokeNetFunc (const char *name, Datum param0, Datum param1, Datum param2, Datum param3, Datum param4, Datum param5, Datum param6)
 
void InvokeNetFunc (const char *name, Datum param0, Datum param1, Datum param2, Datum param3, Datum param4, Datum param5, Datum param6, Datum param7)
 
void InvokeNetFunc (const char *name, const std::vector< Datum > &params)
 
const WeakPtr< Node > & GetSelfPtr () const
 
template<typename T >
T * FindChild (const std::string &name, bool recurse)
 
template<typename T >
void Traverse (T func, bool inverted=false)
 
template<typename T >
bool ForEach (T func, bool inverted=false)
 
- Public Member Functions inherited from Object
virtual ~Object ()=default
 
virtual const char * RuntimeName () const =0
 
virtual const char * RuntimeParentName () const =0
 
virtual RuntimeId InstanceRuntimeId () const =0
 
virtual ObjectQueryInterface (RuntimeId id) const
 
virtual bool Is (RuntimeId id) const
 
virtual bool Is (const char *name) const
 
virtual bool DrawCustomProperty (Property &prop)
 
template<typename T >
T * As () const
 
virtual bool Equals (const Object *rhs) const
 

Static Public Member Functions

static void SetHandleMouse (bool inHandle)
 
static void SetHandleKeyboard (bool inHandle)
 
static void SetHandleGamepad (bool inHandle)
 
- Static Public Member Functions inherited from Widget
static float InterfaceToNormalized (float interfaceCoord, float interfaceSize)
 
static bool IsMouseInside (Rect rect)
 
- Static Public Member Functions inherited from Node
static NodePtr Construct (const std::string &name)
 
static NodePtr Construct (TypeId typeId)
 
static void Destruct (Node *node)
 
static void ProcessPendingDestroys ()
 
static void RegisterNetFuncs (Node *node)
 
static void Deleter (Node *node)
 
template<class NodeClass >
static SharedPtr< NodeClass > Construct ()
 
- Static Public Member Functions inherited from Object
static const char * ClassRuntimeName ()
 

Protected Member Functions

void CycleSelectedIndex (int32_t delta)
 
void CycleHoveredIndex (int32_t delta)
 
void UpdateAppearance ()
 
void UpdateDropdown ()
 
void CreateDropdownItems ()
 
void DestroyDropdownItems ()
 
void SyncOptionsString ()
 
- Protected Member Functions inherited from Widget
virtual void SetParent (Node *parent) override
 
float PixelsToRatioX (float x) const
 
float PixelsToRatioY (float y) const
 
float RatioToPixelsX (float x) const
 
float RatioToPixelsY (float y) const
 
void PushScissor ()
 
void PopScissor ()
 
void SetScissor (Rect &area)
 
- Protected Member Functions inherited from Node
void TickCommon (float deltaTime)
 
void ValidateUniqueChildName (Node *newChild)
 
void SendNetFunc (NetFunc *func, uint32_t numParams, const Datum **params)
 

Static Protected Member Functions

static bool HandlePropChange (Datum *datum, uint32_t index, const void *newValue)
 
- Static Protected Member Functions inherited from Widget
static bool HandlePropChange (Datum *datum, uint32_t index, const void *newValue)
 
- Static Protected Member Functions inherited from Node
static bool HandlePropChange (Datum *datum, uint32_t index, const void *newValue)
 
static bool OnRep_OwningHost (Datum *datum, uint32_t index, const void *newValue)
 

Protected Attributes

std::vector< std::string > mOptions
 
std::string mOptionsString
 
int32_t mSelectedIndex = -1
 
bool mIsOpen = false
 
int32_t mHoveredIndex = -1
 
int32_t mScrollOffset = 0
 
TextureRef mBackgroundTexture
 
glm::vec4 mBackgroundColor = { 0.25f, 0.25f, 0.25f, 1.0f }
 
glm::vec4 mTextColor = { 1.0f, 1.0f, 1.0f, 1.0f }
 
glm::vec4 mDropdownColor = { 0.2f, 0.2f, 0.2f, 1.0f }
 
glm::vec4 mHoveredColor = { 0.35f, 0.35f, 0.35f, 1.0f }
 
glm::vec4 mArrowColor = { 0.7f, 0.7f, 0.7f, 1.0f }
 
float mArrowWidth = 20.0f
 
float mItemHeight = 24.0f
 
int32_t mMaxVisibleItems = 5
 
QuadmBackground = nullptr
 
TextmText = nullptr
 
QuadmArrow = nullptr
 
CanvasmDropdownCanvas = nullptr
 
std::vector< Quad * > mDropdownItems
 
std::vector< Text * > mDropdownTexts
 
- Protected Attributes inherited from Widget
Rect mRect
 
Rect mScissorRect
 
glm::mat3 mTransform
 
glm::vec4 mColor
 
glm::vec2 mOffset
 
glm::vec2 mSize
 
glm::vec2 mPivot
 
glm::vec2 mScale
 
glm::vec2 mAbsoluteScale
 
float mRotation
 
AnchorMode mAnchorMode
 
uint8_t mActiveMargins
 
bool mUseScissor
 
bool mUseGameResolution = false
 
uint8_t mOpacity
 
std::string mTooltipName
 
std::string mTooltipDescription
 
- Protected Attributes inherited from Node
std::string mName
 
WorldmWorld = nullptr
 
NodePtrWeak mParent
 
NodePtrWeak mSelf
 
std::vector< NodePtrmChildren
 
std::unordered_map< std::string, Node * > mChildNameMap
 
std::unordered_map< std::string, SignalmSignalMap
 
std::string mScriptFile
 
uint32_t mLastTickedFrame = 0
 
bool mActive = true
 
bool mVisible = true
 
bool mTransient = false
 
bool mPersistent = false
 
bool mDefault = false
 
bool mUserdataCreated = false
 
bool mHasStarted = false
 
bool mHasAwoken = false
 
bool mDestroyed = false
 
bool mTickEnabled = true
 
bool mLateTick = false
 
SceneRef mScene
 
uint8_t mTargetScreen = 0
 
std::vector< std::string > mTags
 
NodeId mNodeId = INVALID_NODE_ID
 
uint64_t mPersistentUuid = 0
 
std::vector< NetDatummReplicatedData
 
NetId mNetId = INVALID_NET_ID
 
NetHostId mOwningHost = INVALID_HOST_ID
 
bool mReplicate = false
 
bool mReplicateTransform = false
 
bool mForceReplicate = false
 
bool mAlwaysRelevant = true
 
ScriptmScript = nullptr
 

Static Protected Attributes

static bool sHandleMouseInput = true
 
static bool sHandleKeyboardInput = true
 
static bool sHandleGamepadInput = true
 
- Static Protected Attributes inherited from Widget
static WeakPtr< WidgetsWidgetToClean
 
static const char * sAnchorModeStrings []
 
- Static Protected Attributes inherited from Node
static std::unordered_map< TypeId, NetFuncMapsTypeNetFuncMap
 
static std::unordered_set< NodePtrWeaksPendingDestroySet
 
static NodeId sNextNodeId = NodeId(1)
 

Member Function Documentation

◆ AddOption()

void ComboBox::AddOption ( const std::string &  option)

◆ ClearOptions()

void ComboBox::ClearOptions ( )

◆ Close()

void ComboBox::Close ( )

◆ Create()

void ComboBox::Create ( )
overridevirtual

Reimplemented from Node.

◆ CreateDropdownItems()

void ComboBox::CreateDropdownItems ( )
protected

◆ CycleHoveredIndex()

void ComboBox::CycleHoveredIndex ( int32_t  delta)
protected

◆ CycleSelectedIndex()

void ComboBox::CycleSelectedIndex ( int32_t  delta)
protected

◆ DECLARE_NODE()

ComboBox::DECLARE_NODE ( ComboBox  ,
Widget   
)

◆ DestroyDropdownItems()

void ComboBox::DestroyDropdownItems ( )
protected

◆ EditorTick()

void ComboBox::EditorTick ( float  deltaTime)
overridevirtual

Reimplemented from Node.

◆ GatherProperties()

void ComboBox::GatherProperties ( std::vector< Property > &  props)
overridevirtual

Reimplemented from Widget.

◆ GetBackground()

Quad * ComboBox::GetBackground ( )

◆ GetBackgroundColor()

glm::vec4 ComboBox::GetBackgroundColor ( )

◆ GetDropdownColor()

glm::vec4 ComboBox::GetDropdownColor ( )

◆ GetHoveredColor()

glm::vec4 ComboBox::GetHoveredColor ( )

◆ GetMaxVisibleItems()

int32_t ComboBox::GetMaxVisibleItems ( ) const

◆ GetOptionCount()

int32_t ComboBox::GetOptionCount ( ) const

◆ GetOptions()

const std::vector< std::string > & ComboBox::GetOptions ( ) const

◆ GetSelectedIndex()

int32_t ComboBox::GetSelectedIndex ( ) const

◆ GetSelectedOption()

std::string ComboBox::GetSelectedOption ( ) const

◆ GetTextColor()

glm::vec4 ComboBox::GetTextColor ( )

◆ GetTextWidget()

Text * ComboBox::GetTextWidget ( )

◆ HandlePropChange()

bool ComboBox::HandlePropChange ( Datum datum,
uint32_t  index,
const void *  newValue 
)
staticprotected

◆ IsOpen()

bool ComboBox::IsOpen ( ) const

◆ Open()

void ComboBox::Open ( )

◆ PreRender()

void ComboBox::PreRender ( )
overridevirtual

Reimplemented from Widget.

◆ RemoveOption()

void ComboBox::RemoveOption ( int32_t  index)

◆ SetBackgroundColor()

void ComboBox::SetBackgroundColor ( glm::vec4  color)

◆ SetDropdownColor()

void ComboBox::SetDropdownColor ( glm::vec4  color)

◆ SetHandleGamepad()

void ComboBox::SetHandleGamepad ( bool  inHandle)
static

◆ SetHandleKeyboard()

void ComboBox::SetHandleKeyboard ( bool  inHandle)
static

◆ SetHandleMouse()

void ComboBox::SetHandleMouse ( bool  inHandle)
static

◆ SetHoveredColor()

void ComboBox::SetHoveredColor ( glm::vec4  color)

◆ SetMaxVisibleItems()

void ComboBox::SetMaxVisibleItems ( int32_t  count)

◆ SetOptions()

void ComboBox::SetOptions ( const std::vector< std::string > &  options)

◆ SetSelectedIndex()

void ComboBox::SetSelectedIndex ( int32_t  index)

◆ SetTextColor()

void ComboBox::SetTextColor ( glm::vec4  color)

◆ SyncOptionsString()

void ComboBox::SyncOptionsString ( )
protected

◆ Tick()

void ComboBox::Tick ( float  deltaTime)
overridevirtual

Reimplemented from Node.

◆ Toggle()

void ComboBox::Toggle ( )

◆ UpdateAppearance()

void ComboBox::UpdateAppearance ( )
protected

◆ UpdateDropdown()

void ComboBox::UpdateDropdown ( )
protected

Member Data Documentation

◆ mArrow

Quad* ComboBox::mArrow = nullptr
protected

◆ mArrowColor

glm::vec4 ComboBox::mArrowColor = { 0.7f, 0.7f, 0.7f, 1.0f }
protected

◆ mArrowWidth

float ComboBox::mArrowWidth = 20.0f
protected

◆ mBackground

Quad* ComboBox::mBackground = nullptr
protected

◆ mBackgroundColor

glm::vec4 ComboBox::mBackgroundColor = { 0.25f, 0.25f, 0.25f, 1.0f }
protected

◆ mBackgroundTexture

TextureRef ComboBox::mBackgroundTexture
protected

◆ mDropdownCanvas

Canvas* ComboBox::mDropdownCanvas = nullptr
protected

◆ mDropdownColor

glm::vec4 ComboBox::mDropdownColor = { 0.2f, 0.2f, 0.2f, 1.0f }
protected

◆ mDropdownItems

std::vector<Quad*> ComboBox::mDropdownItems
protected

◆ mDropdownTexts

std::vector<Text*> ComboBox::mDropdownTexts
protected

◆ mHoveredColor

glm::vec4 ComboBox::mHoveredColor = { 0.35f, 0.35f, 0.35f, 1.0f }
protected

◆ mHoveredIndex

int32_t ComboBox::mHoveredIndex = -1
protected

◆ mIsOpen

bool ComboBox::mIsOpen = false
protected

◆ mItemHeight

float ComboBox::mItemHeight = 24.0f
protected

◆ mMaxVisibleItems

int32_t ComboBox::mMaxVisibleItems = 5
protected

◆ mOptions

std::vector<std::string> ComboBox::mOptions
protected

◆ mOptionsString

std::string ComboBox::mOptionsString
protected

◆ mScrollOffset

int32_t ComboBox::mScrollOffset = 0
protected

◆ mSelectedIndex

int32_t ComboBox::mSelectedIndex = -1
protected

◆ mText

Text* ComboBox::mText = nullptr
protected

◆ mTextColor

glm::vec4 ComboBox::mTextColor = { 1.0f, 1.0f, 1.0f, 1.0f }
protected

◆ sHandleGamepadInput

bool ComboBox::sHandleGamepadInput = true
staticprotected

◆ sHandleKeyboardInput

bool ComboBox::sHandleKeyboardInput = true
staticprotected

◆ sHandleMouseInput

bool ComboBox::sHandleMouseInput = true
staticprotected

The documentation for this class was generated from the following files: