20 mouseMove = WM_MOUSEMOVE,
23 leftButtonDoubleClick,
26 rightButtonDoubleClick,
27 setCursor = WM_SETCURSOR
30 static constexpr uint8_t urlDetectEventSize = 8;
33 std::array<std::function<void(
const std::wstring&)>, urlDetectEventSize>
callbacks;
39 void addCallback(
urlDetectEvent event,
const std::function<
void(
const std::wstring&)>& callback,
const std::string& functionName,
const std::string& moduleName);
42 virtual LRESULT windowMessagesHandle(HWND handle, UINT message, WPARAM wparam, LPARAM lparam,
bool& isUsed)
override;
53 virtual LRESULT findSubstring(
const std::wstring& subStringToFind,
bool isMatchCase =
true) final;
55 virtual LRESULT findString(const std::wstring& stringToFind,
bool isMatchCase = true) final;
57 virtual
void setAutoURLDetect(
bool autoURLDetect) final;
59 virtual
void setLimitText(uint64_t count) final;
61 virtual
bool getAutoURLDetect() const final;
63 virtual std::wstring getSelectedText() const final;
65 virtual const std::function<
void(const std::wstring&)>& getCallback(
urlDetectEvent event) const final;
67 virtual
bool getIsMultiLine() const final;
69 virtual
void setBackgroundColor(uint8_t red, uint8_t green, uint8_t blue) final override;
71 virtual
void setTextColor(uint8_t red, uint8_t green, uint8_t blue) final override;
75 virtual
size_t getHash() const override = 0;
77 virtual json::JSONBuilder getStructure() const override;
81 using interfaces::ITextOperations::setText;
Provides setText and getText methods.