OpenSiv3D  v0.6.5
C++20 framework for creative coding
s3d::ListBoxState Struct Reference

リストボックスの状態 More...

#include <ListBoxState.hpp>

Public Member Functions

SIV3D_NODISCARD_CXX20 ListBoxState ()=default
 
SIV3D_NODISCARD_CXX20 ListBoxState (const Array< String > &_items)
 
SIV3D_NODISCARD_CXX20 ListBoxState (Array< String > &&_items) noexcept
 

Public Attributes

Array< Stringitems
 アイテム More...
 
Optional< size_t > selectedItemIndex
 選択されているアイテムのインデックス More...
 
Optional< std::pair< int32, double > > scrollBarGrabbed
 スクロールバーの状態 More...
 
int32 scroll = 0
 スクロール数 More...
 
double wheel = 0.0
 ホイールの状態 More...
 

Detailed Description

リストボックスの状態

Constructor & Destructor Documentation

◆ ListBoxState() [1/3]

SIV3D_NODISCARD_CXX20 s3d::ListBoxState::ListBoxState ( )
default

◆ ListBoxState() [2/3]

SIV3D_NODISCARD_CXX20 s3d::ListBoxState::ListBoxState ( const Array< String > &  _items)
explicit

◆ ListBoxState() [3/3]

SIV3D_NODISCARD_CXX20 s3d::ListBoxState::ListBoxState ( Array< String > &&  _items)
explicitnoexcept

Member Data Documentation

◆ items

Array<String> s3d::ListBoxState::items

アイテム

◆ scroll

int32 s3d::ListBoxState::scroll = 0

スクロール数

◆ scrollBarGrabbed

Optional<std::pair<int32, double> > s3d::ListBoxState::scrollBarGrabbed

スクロールバーの状態

◆ selectedItemIndex

Optional<size_t> s3d::ListBoxState::selectedItemIndex

選択されているアイテムのインデックス

◆ wheel

double s3d::ListBoxState::wheel = 0.0

ホイールの状態


The documentation for this struct was generated from the following file: