![]() |
OpenSiv3D
v0.6.5
C++20 framework for creative coding
|
Functions | |
const Font & | GetFont () noexcept |
RectF | HeadlineRegion (StringView text, const Vec2 &pos, const Optional< double > &width=unspecified) |
void | Headline (StringView text, const Vec2 &pos, const Optional< double > &width=unspecified, bool enabled=true) |
RectF | ButtonRegion (StringView label, const Vec2 &pos, const Optional< double > &width=unspecified) |
RectF | ButtonRegionAt (StringView label, const Vec2 ¢er, const Optional< double > &width=unspecified) |
bool | Button (StringView label, const Vec2 &pos, const Optional< double > &width=unspecified, bool enabled=true) |
ボタンを表示します。 More... | |
bool | ButtonAt (StringView label, const Vec2 ¢er, const Optional< double > &width=unspecified, bool enabled=true) |
ボタンを表示します。 More... | |
RectF | SliderRegion (const Vec2 &pos, double labelWidth=80.0, double sliderWidth=120.0) |
RectF | SliderRegionAt (const Vec2 ¢er, double labelWidth=80.0, double sliderWidth=120.0) |
bool | Slider (double &value, const Vec2 &pos, double sliderWidth=120.0, bool enabled=true) |
スライダーを表示します。(値の範囲は [0.0, 1.0]) More... | |
bool | Slider (double &value, double min, double max, const Vec2 &pos, double sliderWidth=120.0, bool enabled=true) |
スライダーを表示します。 More... | |
bool | Slider (StringView label, double &value, const Vec2 &pos, double labelWidth=80.0, double sliderWidth=120.0, bool enabled=true) |
テキスト付きのスライダーを表示します。(値の範囲は [0.0, 1.0]) More... | |
bool | Slider (StringView label, double &value, double min, double max, const Vec2 &pos, double labelWidth=80.0, double sliderWidth=120.0, bool enabled=true) |
テキスト付きのスライダーを表示します。 More... | |
bool | SliderAt (double &value, const Vec2 ¢er, double sliderWidth=120.0, bool enabled=true) |
bool | SliderAt (double &value, double min, double max, const Vec2 ¢er, double sliderWidth=120.0, bool enabled=true) |
bool | SliderAt (StringView label, double &value, const Vec2 ¢er, double labelWidth=80.0, double sliderWidth=120.0, bool enabled=true) |
bool | SliderAt (StringView label, double &value, double min, double max, const Vec2 ¢er, double labelWidth=80.0, double sliderWidth=120.0, bool enabled=true) |
RectF | VerticalSliderRegion (const Vec2 &pos, double sliderHeight=120.0) |
RectF | VerticalSliderRegionAt (const Vec2 ¢er, double sliderHeight=120.0) |
bool | VerticalSlider (double &value, const Vec2 &pos, double sliderHeight=120.0, bool enabled=true) |
bool | VerticalSlider (double &value, double min, double max, const Vec2 &pos, double sliderHeight=120.0, bool enabled=true) |
bool | VerticalSliderAt (double &value, const Vec2 ¢er, double sliderHeight=120.0, bool enabled=true) |
bool | VerticalSliderAt (double &value, double min, double max, const Vec2 ¢er, double sliderHeight=120.0, bool enabled=true) |
RectF | CheckBoxRegion (StringView label, const Vec2 &pos, const Optional< double > &width=unspecified) |
RectF | CheckBoxRegionAt (StringView label, const Vec2 ¢er, const Optional< double > &width=unspecified) |
bool | CheckBox (bool &checked, StringView label, const Vec2 &pos, const Optional< double > &width=unspecified, bool enabled=true) |
チェックボックスを表示します。 More... | |
bool | CheckBoxAt (bool &checked, StringView label, const Vec2 ¢er, const Optional< double > &width=unspecified, bool enabled=true) |
チェックボックスを表示します。 More... | |
RectF | RadioButtonsRegion (const Array< String > &options, const Vec2 &pos, const Optional< double > &width=unspecified) |
RectF | RadioButtonsRegionAt (const Array< String > &options, const Vec2 ¢er, const Optional< double > &width=unspecified) |
bool | RadioButtons (size_t &index, const Array< String > &options, const Vec2 &pos, const Optional< double > &width=unspecified, bool enabled=true) |
ラジオボタンを表示します。 More... | |
bool | RadioButtonsAt (size_t &index, const Array< String > &options, const Vec2 ¢er, const Optional< double > &width=unspecified, bool enabled=true) |
ラジオボタンを表示します。 More... | |
RectF | HorizontalRadioButtonsRegion (const Array< String > &options, const Vec2 &pos, const Optional< double > &itemWidth=unspecified) |
RectF | HorizontalRadioButtonsRegionAt (const Array< String > &options, const Vec2 ¢er, const Optional< double > &itemWidth=unspecified) |
bool | HorizontalRadioButtons (size_t &index, const Array< String > &options, const Vec2 &pos, const Optional< double > &itemWidth=unspecified, bool enabled=true) |
水平ラジオボタンを表示します。 More... | |
bool | HorizontalRadioButtonsAt (size_t &index, const Array< String > &options, const Vec2 ¢er, const Optional< double > &itemWidth=unspecified, bool enabled=true) |
水平ラジオボタンを表示します。 More... | |
RectF | TextBoxRegion (const Vec2 &pos, double width=200.0) |
RectF | TextBoxRegionAt (const Vec2 ¢er, double width=200.0) |
bool | TextBox (TextEditState &text, const Vec2 &pos, double width=200.0, const Optional< size_t > &maxChars=unspecified, bool enabled=true) |
テキストボックスを表示します。 More... | |
bool | TextBoxAt (TextEditState &text, const Vec2 ¢er, double width=200.0, const Optional< size_t > &maxChars=unspecified, bool enabled=true) |
テキストボックスを表示します。 More... | |
RectF | ColorPickerRegion (const Vec2 &pos) |
RectF | ColorPickerRegionAt (const Vec2 ¢er) |
bool | ColorPicker (HSV &hsv, const Vec2 &pos, bool enabled=true) |
カラーピッカーを表示します。 More... | |
bool | ColorPickerAt (HSV &hsv, const Vec2 ¢er, bool enabled=true) |
カラーピッカーを表示します。 More... | |
RectF | ListBoxRegion (const Vec2 &pos, double width=160.0, double height=156.0) |
RectF | ListBoxRegionAt (const Vec2 ¢er, double width=160.0, double height=156.0) |
bool | ListBox (ListBoxState &state, const Vec2 &pos, double width=160.0, double height=156.0, bool enabled=true) |
リストボックスを表示します。 More... | |
bool | ListBoxAt (ListBoxState &state, const Vec2 ¢er, double width=160.0, double height=156.0, bool enabled=true) |
リストボックスを表示します。 More... | |
bool s3d::SimpleGUI::Button | ( | StringView | label, |
const Vec2 & | pos, | ||
const Optional< double > & | width = unspecified , |
||
bool | enabled = true |
||
) |
ボタンを表示します。
label | ボタンに書かれるテキスト |
pos | ボタンの左上の座標 |
width | ボタンの幅。unspecified の場合はテキストに合わせて自動で決定 |
enabled | ボタンの操作を有効にするか |
bool s3d::SimpleGUI::ButtonAt | ( | StringView | label, |
const Vec2 & | center, | ||
const Optional< double > & | width = unspecified , |
||
bool | enabled = true |
||
) |
ボタンを表示します。
label | ボタンに書かれるテキスト |
center | ボタンの中心の座標 |
width | ボタンの幅(ピクセル)。unspecified の場合はテキストに合わせて自動で決定 |
enabled | ボタンの操作を有効にするか |
RectF s3d::SimpleGUI::ButtonRegion | ( | StringView | label, |
const Vec2 & | pos, | ||
const Optional< double > & | width = unspecified |
||
) |
RectF s3d::SimpleGUI::ButtonRegionAt | ( | StringView | label, |
const Vec2 & | center, | ||
const Optional< double > & | width = unspecified |
||
) |
bool s3d::SimpleGUI::CheckBox | ( | bool & | checked, |
StringView | label, | ||
const Vec2 & | pos, | ||
const Optional< double > & | width = unspecified , |
||
bool | enabled = true |
||
) |
チェックボックスを表示します。
checked | チェックボックスで操作する bool 値への参照 |
label | チェックボックスの右横に表示するテキスト |
pos | チェックボックスの左上の座標 |
width | チェックボックス領域の幅(ピクセル) |
enabled | チェックボックスの操作を有効にするか |
bool s3d::SimpleGUI::CheckBoxAt | ( | bool & | checked, |
StringView | label, | ||
const Vec2 & | center, | ||
const Optional< double > & | width = unspecified , |
||
bool | enabled = true |
||
) |
チェックボックスを表示します。
checked | チェックボックスで操作する bool 値への参照 |
label | チェックボックスの右横に表示するテキスト |
center | チェックボックスの中心座標 |
width | チェックボックス領域の幅(ピクセル) |
enabled | チェックボックスの操作を有効にするか |
RectF s3d::SimpleGUI::CheckBoxRegion | ( | StringView | label, |
const Vec2 & | pos, | ||
const Optional< double > & | width = unspecified |
||
) |
RectF s3d::SimpleGUI::CheckBoxRegionAt | ( | StringView | label, |
const Vec2 & | center, | ||
const Optional< double > & | width = unspecified |
||
) |
カラーピッカーを表示します。
hsv | カラーピッカーで操作する色への参照 |
pos | カラーピッカーの左上の座標 |
enabled | カラーピッカーの操作を有効にするか |
カラーピッカーを表示します。
hsv | カラーピッカーで操作する色への参照 |
center | カラーピッカーの中心座標 |
enabled | カラーピッカーの操作を有効にするか |
|
noexcept |
void s3d::SimpleGUI::Headline | ( | StringView | text, |
const Vec2 & | pos, | ||
const Optional< double > & | width = unspecified , |
||
bool | enabled = true |
||
) |
RectF s3d::SimpleGUI::HeadlineRegion | ( | StringView | text, |
const Vec2 & | pos, | ||
const Optional< double > & | width = unspecified |
||
) |
bool s3d::SimpleGUI::HorizontalRadioButtons | ( | size_t & | index, |
const Array< String > & | options, | ||
const Vec2 & | pos, | ||
const Optional< double > & | itemWidth = unspecified , |
||
bool | enabled = true |
||
) |
水平ラジオボタンを表示します。
index | ラジオボタンで選択されているアイテムのインデックス値への参照 |
options | ラジオボタンのアイテム |
pos | ラジオボタンの左上の座標 |
itemWidth | ラジオボタンの各アイテムの幅(ピクセル) |
enabled | ラジオボタンの操作を有効にするか |
bool s3d::SimpleGUI::HorizontalRadioButtonsAt | ( | size_t & | index, |
const Array< String > & | options, | ||
const Vec2 & | center, | ||
const Optional< double > & | itemWidth = unspecified , |
||
bool | enabled = true |
||
) |
水平ラジオボタンを表示します。
index | ラジオボタンで選択されているアイテムのインデックス値への参照 |
options | ラジオボタンのアイテム |
center | ラジオボタンの中心座標 |
itemWidth | ラジオボタンの各アイテムの幅(ピクセル) |
enabled | ラジオボタンの操作を有効にするか |
RectF s3d::SimpleGUI::HorizontalRadioButtonsRegion | ( | const Array< String > & | options, |
const Vec2 & | pos, | ||
const Optional< double > & | itemWidth = unspecified |
||
) |
RectF s3d::SimpleGUI::HorizontalRadioButtonsRegionAt | ( | const Array< String > & | options, |
const Vec2 & | center, | ||
const Optional< double > & | itemWidth = unspecified |
||
) |
bool s3d::SimpleGUI::ListBox | ( | ListBoxState & | state, |
const Vec2 & | pos, | ||
double | width = 160.0 , |
||
double | height = 156.0 , |
||
bool | enabled = true |
||
) |
リストボックスを表示します。
state | リストボックスの状態への参照 |
pos | リストボックスの左上の座標 |
width | リストボックスの幅(ピクセル) |
height | リストボックスの高さ(ピクセル) |
enabled | リストボックスの操作を有効にするか |
bool s3d::SimpleGUI::ListBoxAt | ( | ListBoxState & | state, |
const Vec2 & | center, | ||
double | width = 160.0 , |
||
double | height = 156.0 , |
||
bool | enabled = true |
||
) |
リストボックスを表示します。
state | リストボックスの状態への参照 |
center | リストボックスの中心座標 |
width | リストボックスの幅(ピクセル) |
height | リストボックスの高さ(ピクセル) |
enabled | リストボックスの操作を有効にするか |
RectF s3d::SimpleGUI::ListBoxRegion | ( | const Vec2 & | pos, |
double | width = 160.0 , |
||
double | height = 156.0 |
||
) |
RectF s3d::SimpleGUI::ListBoxRegionAt | ( | const Vec2 & | center, |
double | width = 160.0 , |
||
double | height = 156.0 |
||
) |
bool s3d::SimpleGUI::RadioButtons | ( | size_t & | index, |
const Array< String > & | options, | ||
const Vec2 & | pos, | ||
const Optional< double > & | width = unspecified , |
||
bool | enabled = true |
||
) |
ラジオボタンを表示します。
index | ラジオボタンで選択されているアイテムのインデックス値への参照 |
options | ラジオボタンのアイテム |
pos | ラジオボタンの左上の座標 |
width | ラジオボタンの領域の幅(ピクセル) |
enabled | ラジオボタンの操作を有効にするか |
bool s3d::SimpleGUI::RadioButtonsAt | ( | size_t & | index, |
const Array< String > & | options, | ||
const Vec2 & | center, | ||
const Optional< double > & | width = unspecified , |
||
bool | enabled = true |
||
) |
ラジオボタンを表示します。
index | ラジオボタンで選択されているアイテムのインデックス値への参照 |
options | ラジオボタンのアイテム |
center | ラジオボタンの中心座標 |
width | ラジオボタンの領域の幅(ピクセル) |
enabled | ラジオボタンの操作を有効にするか |
RectF s3d::SimpleGUI::RadioButtonsRegion | ( | const Array< String > & | options, |
const Vec2 & | pos, | ||
const Optional< double > & | width = unspecified |
||
) |
RectF s3d::SimpleGUI::RadioButtonsRegionAt | ( | const Array< String > & | options, |
const Vec2 & | center, | ||
const Optional< double > & | width = unspecified |
||
) |
bool s3d::SimpleGUI::Slider | ( | double & | value, |
const Vec2 & | pos, | ||
double | sliderWidth = 120.0 , |
||
bool | enabled = true |
||
) |
スライダーを表示します。(値の範囲は [0.0, 1.0])
value | スライダーで操作する値への参照 |
pos | スライダーの左上の座標 |
sliderWidth | スライダーの幅(ピクセル) |
enabled | スライダーの操作を有効にするか |
bool s3d::SimpleGUI::Slider | ( | double & | value, |
double | min, | ||
double | max, | ||
const Vec2 & | pos, | ||
double | sliderWidth = 120.0 , |
||
bool | enabled = true |
||
) |
スライダーを表示します。
value | スライダーで操作する値への参照 |
min | 値の最小値 |
max | 値の最大値 |
pos | スライダーの左上の座標 |
sliderWidth | スライダーの幅(ピクセル) |
enabled | スライダーの操作を有効にするか |
bool s3d::SimpleGUI::Slider | ( | StringView | label, |
double & | value, | ||
const Vec2 & | pos, | ||
double | labelWidth = 80.0 , |
||
double | sliderWidth = 120.0 , |
||
bool | enabled = true |
||
) |
テキスト付きのスライダーを表示します。(値の範囲は [0.0, 1.0])
label | スライダーの左に表示するテキスト |
value | スライダーで操作する値への参照 |
pos | スライダーの左上の座標 |
labelWidth | テキスト領域の幅(ピクセル) |
sliderWidth | スライダーの幅(ピクセル) |
enabled | スライダーの操作を有効にするか |
bool s3d::SimpleGUI::Slider | ( | StringView | label, |
double & | value, | ||
double | min, | ||
double | max, | ||
const Vec2 & | pos, | ||
double | labelWidth = 80.0 , |
||
double | sliderWidth = 120.0 , |
||
bool | enabled = true |
||
) |
テキスト付きのスライダーを表示します。
label | スライダーの左に表示するテキスト |
value | スライダーで操作する値への参照 |
min | 値の最小値 |
max | 値の最大値 |
pos | スライダーの左上の座標 |
labelWidth | テキスト領域の幅(ピクセル) |
sliderWidth | ライダーの幅(ピクセル) |
enabled | スライダーの操作を有効にするか |
bool s3d::SimpleGUI::SliderAt | ( | double & | value, |
const Vec2 & | center, | ||
double | sliderWidth = 120.0 , |
||
bool | enabled = true |
||
) |
bool s3d::SimpleGUI::SliderAt | ( | double & | value, |
double | min, | ||
double | max, | ||
const Vec2 & | center, | ||
double | sliderWidth = 120.0 , |
||
bool | enabled = true |
||
) |
bool s3d::SimpleGUI::SliderAt | ( | StringView | label, |
double & | value, | ||
const Vec2 & | center, | ||
double | labelWidth = 80.0 , |
||
double | sliderWidth = 120.0 , |
||
bool | enabled = true |
||
) |
bool s3d::SimpleGUI::SliderAt | ( | StringView | label, |
double & | value, | ||
double | min, | ||
double | max, | ||
const Vec2 & | center, | ||
double | labelWidth = 80.0 , |
||
double | sliderWidth = 120.0 , |
||
bool | enabled = true |
||
) |
RectF s3d::SimpleGUI::SliderRegion | ( | const Vec2 & | pos, |
double | labelWidth = 80.0 , |
||
double | sliderWidth = 120.0 |
||
) |
RectF s3d::SimpleGUI::SliderRegionAt | ( | const Vec2 & | center, |
double | labelWidth = 80.0 , |
||
double | sliderWidth = 120.0 |
||
) |
bool s3d::SimpleGUI::TextBox | ( | TextEditState & | text, |
const Vec2 & | pos, | ||
double | width = 200.0 , |
||
const Optional< size_t > & | maxChars = unspecified , |
||
bool | enabled = true |
||
) |
テキストボックスを表示します。
text | テキストボックスの状態への参照 |
pos | テキストボックスの左上の座標 |
width | テキストボックスの幅(ピクセル) |
maxChars | 入力できる最大の文字数 (char32 の要素数) |
enabled | テキストボックスの操作を有効にするか |
bool s3d::SimpleGUI::TextBoxAt | ( | TextEditState & | text, |
const Vec2 & | center, | ||
double | width = 200.0 , |
||
const Optional< size_t > & | maxChars = unspecified , |
||
bool | enabled = true |
||
) |
テキストボックスを表示します。
text | テキストボックスの状態への参照 |
center | テキストボックスの中心座標 |
width | テキストボックスの幅(ピクセル) |
maxChars | 入力できる最大の文字数 (char32 の要素数) |
enabled | テキストボックスの操作を有効にするか |
bool s3d::SimpleGUI::VerticalSlider | ( | double & | value, |
const Vec2 & | pos, | ||
double | sliderHeight = 120.0 , |
||
bool | enabled = true |
||
) |
bool s3d::SimpleGUI::VerticalSlider | ( | double & | value, |
double | min, | ||
double | max, | ||
const Vec2 & | pos, | ||
double | sliderHeight = 120.0 , |
||
bool | enabled = true |
||
) |
bool s3d::SimpleGUI::VerticalSliderAt | ( | double & | value, |
const Vec2 & | center, | ||
double | sliderHeight = 120.0 , |
||
bool | enabled = true |
||
) |
bool s3d::SimpleGUI::VerticalSliderAt | ( | double & | value, |
double | min, | ||
double | max, | ||
const Vec2 & | center, | ||
double | sliderHeight = 120.0 , |
||
bool | enabled = true |
||
) |