3
@author Generate utility by Albert Semenov
9
#include "MyGUI.Managed_Widget.h"
16
public ref class TextBox : public Widget
20
typedef MyGUI::TextBox ThisType;
23
TextBox() : Widget() { }
26
TextBox( MyGUI::TextBox* _native ) : Widget(_native) { }
27
TextBox( BaseWidget^ _parent, MyGUI::WidgetStyle _style, const std::string& _skin, const MyGUI::IntCoord& _coord, MyGUI::Align _align, const std::string& _layer, const std::string& _name )
29
CreateWidget(_parent, _style, _skin, _coord, _align, _layer, _name);
32
virtual const std::string& getClassTypeName() override { return ThisType::getClassTypeName(); }
34
static BaseWidget^ WidgetCreator(BaseWidget^ _parent, MyGUI::WidgetStyle _style, const std::string& _skin, const MyGUI::IntCoord& _coord, MyGUI::Align _align, const std::string& _layer, const std::string& _name)
36
return gcnew TextBox(_parent, _style, _skin, _coord, _align, _layer, _name);
43
void SetCaptionWithReplacing(
44
Convert<const std::string &>::Type _value )
46
MMYGUI_CHECK_NATIVE(mNative);
47
static_cast<ThisType*>(mNative)->setCaptionWithReplacing(
48
Convert<const std::string &>::From(_value) );
54
property Convert<const MyGUI::Colour &>::Type TextColour
56
Convert<const MyGUI::Colour &>::Type get( )
58
MMYGUI_CHECK_NATIVE(mNative);
59
return Convert<const MyGUI::Colour &>::To( static_cast<ThisType*>(mNative)->getTextColour() );
61
void set(Convert<const MyGUI::Colour &>::Type _value)
63
MMYGUI_CHECK_NATIVE(mNative);
64
static_cast<ThisType*>(mNative)->setTextColour( Convert<const MyGUI::Colour &>::From(_value) );
71
property Convert<MyGUI::Align>::Type TextAlign
73
Convert<MyGUI::Align>::Type get( )
75
MMYGUI_CHECK_NATIVE(mNative);
76
return Convert<MyGUI::Align>::To( static_cast<ThisType*>(mNative)->getTextAlign() );
78
void set(Convert<MyGUI::Align>::Type _value)
80
MMYGUI_CHECK_NATIVE(mNative);
81
static_cast<ThisType*>(mNative)->setTextAlign( Convert<MyGUI::Align>::From(_value) );
88
property Convert<int>::Type FontHeight
90
Convert<int>::Type get( )
92
MMYGUI_CHECK_NATIVE(mNative);
93
return Convert<int>::To( static_cast<ThisType*>(mNative)->getFontHeight() );
95
void set(Convert<int>::Type _value)
97
MMYGUI_CHECK_NATIVE(mNative);
98
static_cast<ThisType*>(mNative)->setFontHeight( Convert<int>::From(_value) );
105
property Convert<const std::string &>::Type FontName
107
Convert<const std::string &>::Type get( )
109
MMYGUI_CHECK_NATIVE(mNative);
110
return Convert<const std::string &>::To( static_cast<ThisType*>(mNative)->getFontName() );
112
void set(Convert<const std::string &>::Type _value)
114
MMYGUI_CHECK_NATIVE(mNative);
115
static_cast<ThisType*>(mNative)->setFontName( Convert<const std::string &>::From(_value) );
122
property Convert<const MyGUI::UString &>::Type Caption
124
Convert<const MyGUI::UString &>::Type get( )
126
MMYGUI_CHECK_NATIVE(mNative);
127
return Convert<const MyGUI::UString &>::To( static_cast<ThisType*>(mNative)->getCaption() );
129
void set(Convert<const MyGUI::UString &>::Type _value)
131
MMYGUI_CHECK_NATIVE(mNative);
132
static_cast<ThisType*>(mNative)->setCaption( Convert<const MyGUI::UString &>::From(_value) );
139
Convert<MyGUI::types::TSize< int >>::Type GetTextSize( )
141
MMYGUI_CHECK_NATIVE(mNative);
142
return Convert<MyGUI::types::TSize< int >>::To(
143
static_cast<ThisType*>(mNative)->getTextSize( ) );
149
Convert<MyGUI::types::TCoord< int >>::Type GetTextRegion( )
151
MMYGUI_CHECK_NATIVE(mNative);
152
return Convert<MyGUI::types::TCoord< int >>::To(
153
static_cast<ThisType*>(mNative)->getTextRegion( ) );
169
} // namespace Managed