GUIFramework 1.1.0
Framework for desktop GUI applications in C++.
Loading...
Searching...
No Matches
RichEditAdditionalCreationData.h
Go to the documentation of this file.
1#pragma once
2
5
6namespace gui_framework
7{
8 namespace utility
9 {
11 template<>
13 {
14 protected:
15 std::array<std::function<void(const std::wstring&)>, BaseRichEdit::urlDetectEventSize> callbacks;
16 std::array<std::pair<std::string, std::string>, BaseRichEdit::urlDetectEventSize> callbacksFunctionNamesAndModules; // function name - module name
19
20 public:
25 AdditionalCreationData(const std::array<std::function<void(const std::wstring&)>, BaseRichEdit::urlDetectEventSize>& callbacks = {}, bool isMultiLine = true, uint64_t limitTextCount = 0);
26
31 AdditionalCreationData(const std::array<std::pair<std::string, std::string>, BaseRichEdit::urlDetectEventSize>& callbacksFunctionNamesAndModules, bool isMultiLine = true, uint64_t limitTextCount = 0);
32
33 virtual std::any getData() const;
34
35 virtual ~AdditionalCreationData() = default;
36 };
37 }
38}
#define GUI_FRAMEWORK_API
Standard rich edit control.
Definition RichEdit.h:9
std::array< std::function< void(const std::wstring &)>, BaseRichEdit::urlDetectEventSize > callbacks
AdditionalCreationData(const std::array< std::function< void(const std::wstring &)>, BaseRichEdit::urlDetectEventSize > &callbacks={}, bool isMultiLine=true, uint64_t limitTextCount=0)
Each index in array equals to urlDetectEvent value % 8, except urlDetectEvent::setCursor must be 7 in...
AdditionalCreationData(const std::array< std::pair< std::string, std::string >, BaseRichEdit::urlDetectEventSize > &callbacksFunctionNamesAndModules, bool isMultiLine=true, uint64_t limitTextCount=0)
Each index in array equals to urlDetectEvent value % 8, except urlDetectEvent::setCursor must be 7 in...
std::array< std::pair< std::string, std::string >, BaseRichEdit::urlDetectEventSize > callbacksFunctionNamesAndModules
Base templated class for component creators.