GUIFramework 1.1.0
Framework for desktop GUI applications in C++.
Loading...
Searching...
No Matches
gui_framework::interfaces::ITextOperations Class Reference

Provides setText and getText methods. More...

#include <ITextOperations.h>

Inheritance diagram for gui_framework::interfaces::ITextOperations:
gui_framework::BaseButton gui_framework::BaseEditControl gui_framework::BaseRichEdit gui_framework::BaseStaticControl gui_framework::BaseCheckBox gui_framework::Button gui_framework::ImageButton gui_framework::EditControl gui_framework::RichEdit gui_framework::StaticControl gui_framework::CheckBox

Public Member Functions

 ITextOperations (HWND handle, const std::wstring &text=L"")
 
 ITextOperations (HWND handle, const std::string &localizationKey)
 
void setText (std::wstring_view text)
 
virtual void setText (std::string_view localizationKey)
 
virtual std::wstring getText () const final
 Get text from control.
 
virtual ~ITextOperations ()=default
 

Protected Attributes

HWND textHandle
 

Detailed Description

Provides setText and getText methods.

Definition at line 10 of file ITextOperations.h.

Constructor & Destructor Documentation

◆ ITextOperations() [1/2]

gui_framework::interfaces::ITextOperations::ITextOperations ( HWND handle,
const std::wstring & text = L"" )

◆ ITextOperations() [2/2]

gui_framework::interfaces::ITextOperations::ITextOperations ( HWND handle,
const std::string & localizationKey )

◆ ~ITextOperations()

virtual gui_framework::interfaces::ITextOperations::~ITextOperations ( )
virtualdefault

Member Function Documentation

◆ getText()

wstring gui_framework::interfaces::ITextOperations::getText ( ) const
finalvirtual

Get text from control.

Returns
Text from control
Exceptions
GetLastErrorException

Definition at line 32 of file ITextOperations.cpp.

◆ setText() [1/2]

virtual void gui_framework::interfaces::ITextOperations::setText ( std::string_view localizationKey)
virtual

◆ setText() [2/2]

void gui_framework::interfaces::ITextOperations::setText ( std::wstring_view text)

Member Data Documentation

◆ textHandle

HWND gui_framework::interfaces::ITextOperations::textHandle
protected

Definition at line 13 of file ITextOperations.h.


The documentation for this class was generated from the following files: