WebCFace 2.5.2
Web-based Communication Framework & Dashboard-like UI
Loading...
Searching...
No Matches
TemporalComponent< V, C2, C3 > Struct Template Reference

Canvas2D, Canvas3D (, View) に要素をaddするときに使うインタフェース More...

#include <webcface/components.h>

Inheritance diagram for TemporalComponent< V, C2, C3 >:
[legend]
Collaboration diagram for TemporalComponent< V, C2, C3 >:
[legend]

Public Member Functions

 TemporalComponent ()=default
 
template<typename VT , typename C2T , typename C3T >
 TemporalComponent (VT v_type, C2T c2_type, C3T c3_type)
 
TemporalComponentid (std::string_view id) &
 idを設定
 
TemporalComponent && id (std::string_view id) &&
 
TemporalComponentid (std::wstring_view id) &
 idを設定(wstring)
 
TemporalComponent && id (std::wstring_view id) &&
 
TemporalComponentonClick (const Func &func) &
 クリック時に実行される関数を設定 (Viewまたは2D, Funcオブジェクト)
 
TemporalComponent && onClick (const Func &func) &&
 
TemporalComponentonClick (const FuncListener &func) &
 クリック時に実行される関数を設定 (Viewまたは2D, FuncListener)
 
TemporalComponent && onClick (const FuncListener &func) &&
 
template<typename T , typename std::enable_if_t< std::is_invocable_v< T >, std::nullptr_t > = nullptr>
TemporalComponentonClick (T func) &
 クリック時に実行される関数を設定 (Viewまたは2D)
 
template<typename T , typename std::enable_if_t< std::is_invocable_v< T >, std::nullptr_t > = nullptr>
TemporalComponent && onClick (T func) &&
 
TemporalComponentorigin (const Transform &origin) &
 要素の移動 (2Dまたは3D)
 
TemporalComponent && origin (const Transform &origin) &&
 
TemporalComponentcolor (ViewColor c) &
 
 
TemporalComponent && color (ViewColor c) &&
 
TemporalComponenttext (std::string_view str) &
 表示する文字列 (View, Canvas2D)
 
TemporalComponent && text (std::string_view str) &&
 
TemporalComponenttext (std::wstring_view str) &
 表示する文字列(wstring) (View, Canvas2D)
 
TemporalComponent && text (std::wstring_view str) &&
 
TemporalComponenttextColor (ViewColor c) &
 文字色 (Viewまたは2D)
 
TemporalComponent && textColor (ViewColor c) &&
 
TemporalComponentfillColor (ViewColor c) &
 背景色 (Viewまたは2D)
 
TemporalComponent && fillColor (ViewColor c) &&
 
TemporalComponentbgColor (ViewColor c) &
 背景色 (Viewまたは2D)
 
TemporalComponent && bgColor (ViewColor c) &&
 
TemporalComponentstrokeWidth (double s) &
 線の太さ (2Dのみ)
 
TemporalComponent && strokeWidth (double s) &&
 
TemporalComponenttextSize (double s) &
 文字の大きさ (2Dのみ)
 
TemporalComponent && textSize (double s) &&
 

Public Attributes

TemporalViewComponent component_v
 
TemporalCanvas2DComponent component_2d
 
TemporalCanvas3DComponent component_3d
 

Friends

class Func
 
class Canvas2D
 
class Canvas3D
 
class View
 
class internal::ViewBuf
 

Detailed Description

template<bool V, bool C2, bool C3>
struct webcface::TemporalComponent< V, C2, C3 >

Canvas2D, Canvas3D (, View) に要素をaddするときに使うインタフェース

add時に各種Componentにキャストする

各オプションの詳細な説明は ViewComponent, Canvas2DComponent, Canvas3DComponent を参照

Constructor & Destructor Documentation

◆ TemporalComponent() [1/2]

template<bool V, bool C2, bool C3>
TemporalComponent ( )
default

◆ TemporalComponent() [2/2]

template<bool V, bool C2, bool C3>
template<typename VT , typename C2T , typename C3T >
TemporalComponent ( VT  v_type,
C2T  c2_type,
C3T  c3_type 
)
inline

Member Function Documentation

◆ bgColor() [1/2]

template<bool V, bool C2, bool C3>
TemporalComponent & bgColor ( ViewColor  c) &
inline

背景色 (Viewまたは2D)

◆ bgColor() [2/2]

template<bool V, bool C2, bool C3>
TemporalComponent && bgColor ( ViewColor  c) &&
inline
Since
ver2.5

◆ color() [1/2]

template<bool V, bool C2, bool C3>
TemporalComponent & color ( ViewColor  c) &
inline

Viewの要素では textColor として設定される

◆ color() [2/2]

template<bool V, bool C2, bool C3>
TemporalComponent && color ( ViewColor  c) &&
inline
Since
ver2.5

◆ fillColor() [1/2]

template<bool V, bool C2, bool C3>
TemporalComponent & fillColor ( ViewColor  c) &
inline

背景色 (Viewまたは2D)

◆ fillColor() [2/2]

template<bool V, bool C2, bool C3>
TemporalComponent && fillColor ( ViewColor  c) &&
inline
Since
ver2.5

◆ id() [1/4]

template<bool V, bool C2, bool C3>
TemporalComponent & id ( std::string_view  id) &
inline

idを設定

Since
ver2.5

◆ id() [2/4]

template<bool V, bool C2, bool C3>
TemporalComponent && id ( std::string_view  id) &&
inline
Since
ver2.5

◆ id() [3/4]

template<bool V, bool C2, bool C3>
TemporalComponent & id ( std::wstring_view  id) &
inline

idを設定(wstring)

Since
ver2.5

◆ id() [4/4]

template<bool V, bool C2, bool C3>
TemporalComponent && id ( std::wstring_view  id) &&
inline
Since
ver2.5

◆ onClick() [1/6]

template<bool V, bool C2, bool C3>
TemporalComponent & onClick ( const Func func) &
inline

クリック時に実行される関数を設定 (Viewまたは2D, Funcオブジェクト)

Since
ver2.5

引数については ViewComponent::onClick(), Canvas2DComponent::onClick() を参照

◆ onClick() [2/6]

template<bool V, bool C2, bool C3>
TemporalComponent && onClick ( const Func func) &&
inline
Since
ver2.5

◆ onClick() [3/6]

template<bool V, bool C2, bool C3>
TemporalComponent & onClick ( const FuncListener func) &
inline

クリック時に実行される関数を設定 (Viewまたは2D, FuncListener)

Since
ver2.5

引数については ViewComponent::onClick(), Canvas2DComponent::onClick() を参照

◆ onClick() [4/6]

template<bool V, bool C2, bool C3>
TemporalComponent && onClick ( const FuncListener func) &&
inline
Since
ver2.5

◆ onClick() [5/6]

template<bool V, bool C2, bool C3>
template<typename T , typename std::enable_if_t< std::is_invocable_v< T >, std::nullptr_t > = nullptr>
TemporalComponent & onClick ( func) &
inline

クリック時に実行される関数を設定 (Viewまたは2D)

引数については ViewComponent::onClick(), Canvas2DComponent::onClick() を参照

◆ onClick() [6/6]

template<bool V, bool C2, bool C3>
template<typename T , typename std::enable_if_t< std::is_invocable_v< T >, std::nullptr_t > = nullptr>
TemporalComponent && onClick ( func) &&
inline
Since
ver2.5

◆ origin() [1/2]

template<bool V, bool C2, bool C3>
TemporalComponent & origin ( const Transform origin) &
inline

要素の移動 (2Dまたは3D)

◆ origin() [2/2]

template<bool V, bool C2, bool C3>
TemporalComponent && origin ( const Transform origin) &&
inline
Since
ver2.5

◆ strokeWidth() [1/2]

template<bool V, bool C2, bool C3>
TemporalComponent & strokeWidth ( double  s) &
inline

線の太さ (2Dのみ)

文字の太さではない

◆ strokeWidth() [2/2]

template<bool V, bool C2, bool C3>
TemporalComponent && strokeWidth ( double  s) &&
inline
Since
ver2.5

◆ text() [1/4]

template<bool V, bool C2, bool C3>
TemporalComponent & text ( std::string_view  str) &
inline

表示する文字列 (View, Canvas2D)

Since
ver2.0

◆ text() [2/4]

template<bool V, bool C2, bool C3>
TemporalComponent && text ( std::string_view  str) &&
inline
Since
ver2.5

◆ text() [3/4]

template<bool V, bool C2, bool C3>
TemporalComponent & text ( std::wstring_view  str) &
inline

表示する文字列(wstring) (View, Canvas2D)

Since
ver2.0

◆ text() [4/4]

template<bool V, bool C2, bool C3>
TemporalComponent && text ( std::wstring_view  str) &&
inline
Since
ver2.5

◆ textColor() [1/2]

template<bool V, bool C2, bool C3>
TemporalComponent & textColor ( ViewColor  c) &
inline

文字色 (Viewまたは2D)

Canvas2DのTextでは fillColor が文字色の代わりに使われている

◆ textColor() [2/2]

template<bool V, bool C2, bool C3>
TemporalComponent && textColor ( ViewColor  c) &&
inline
Since
ver2.5

◆ textSize() [1/2]

template<bool V, bool C2, bool C3>
TemporalComponent & textSize ( double  s) &
inline

文字の大きさ (2Dのみ)

◆ textSize() [2/2]

template<bool V, bool C2, bool C3>
TemporalComponent && textSize ( double  s) &&
inline
Since
ver2.5

Friends And Related Symbol Documentation

◆ Canvas2D

template<bool V, bool C2, bool C3>
friend class Canvas2D
friend

◆ Canvas3D

template<bool V, bool C2, bool C3>
friend class Canvas3D
friend

◆ Func

template<bool V, bool C2, bool C3>
friend class Func
friend

◆ internal::ViewBuf

template<bool V, bool C2, bool C3>
friend class internal::ViewBuf
friend

◆ View

template<bool V, bool C2, bool C3>
friend class View
friend

Member Data Documentation

◆ component_2d

template<bool V, bool C2, bool C3>
TemporalCanvas2DComponent component_2d

◆ component_3d

template<bool V, bool C2, bool C3>
TemporalCanvas3DComponent component_3d

◆ component_v

template<bool V, bool C2, bool C3>
TemporalViewComponent component_v

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