WebCFace 2.5.2
Web-based Communication Framework & Dashboard-like UI
Loading...
Searching...
No Matches
component_internal.h
Go to the documentation of this file.
1#pragma once
5#include "webcface/text.h"
6#include <functional>
7#ifdef WEBCFACE_MESON
8#include "webcface-config.h"
9#else
10#include "webcface/common/webcface-config.h"
11#endif
12
14namespace internal {
15
18
19 // TemporalViewComponentとTemporalCanvas2DComponentの間でshareされるが
20 // 同じfunctionが最終的に2つのcomponentに同時にsetされることはない
21 std::shared_ptr<std::function<void()>> on_click_func_tmp;
22 std::shared_ptr<std::function<void(ValAdaptor)>> on_change_func_tmp;
23 std::optional<InputRef> text_ref_tmp;
24 std::optional<ValAdaptor> init_;
26};
27
30
31 std::shared_ptr<std::function<void()>> on_click_func_tmp;
33};
34
37
38 std::weak_ptr<internal::ClientData> data_w;
40
41 auto &anglesAt(std::size_t i) { return angles[std::to_string(i)]; }
42};
43
44} // namespace internal
u8stringとstringとwstringをshared_ptrで持ち共有する
Definition encoding.h:69
数値、文字列などの値を相互変換するクラス
Definition val_adaptor.h:87
Definition component_internal.h:28
SharedString id
Definition component_internal.h:32
std::shared_ptr< std::function< void()> > on_click_func_tmp
Definition component_internal.h:31
Definition component_internal.h:35
SharedString id
Definition component_internal.h:39
std::weak_ptr< internal::ClientData > data_w
Definition component_internal.h:38
auto & anglesAt(std::size_t i)
Definition component_internal.h:41
Definition component_internal.h:16
std::shared_ptr< std::function< void(ValAdaptor)> > on_change_func_tmp
Definition component_internal.h:22
SharedString id
Definition component_internal.h:25
std::shared_ptr< std::function< void()> > on_click_func_tmp
Definition component_internal.h:21
std::optional< InputRef > text_ref_tmp
Definition component_internal.h:23
std::optional< ValAdaptor > init_
Definition component_internal.h:24
#define WEBCFACE_NS_END
Definition webcface-config.h:104
#define WEBCFACE_NS_BEGIN
Definition webcface-config.h:103