1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243
|
/*!
@file
@author Generate utility by Albert Semenov
@date 01/2009
@module
*/
#ifndef EXPORT_WIDGET_ComboBox_H_
#define EXPORT_WIDGET_ComboBox_H_
#include "../ExportDefine.h"
#include "../ExportMarshaling.h"
#include "MyGUI_Export_MarshalingWidget.h"
#include "../ExportMarshalingType.h"
#include <MyGUI.h>
namespace Export
{
//InsertPoint
namespace ScopeComboBoxEvent_ComboChangePosition
{
typedef void (MYGUICALLBACK *ExportHandle)(
MyGUI::ComboBox *,
Convert<size_t>::Type);
ExportHandle mExportHandle = nullptr;
void OnEvent(
MyGUI::ComboBox * _sender,
size_t _index)
{
mExportHandle(
_sender,
Convert<size_t>::To(_index));
}
MYGUIEXPORT void MYGUICALL ExportComboBoxEvent_DelegateComboChangePosition(ExportHandle _delegate)
{
mExportHandle = _delegate;
}
MYGUIEXPORT void MYGUICALL ExportComboBoxEvent_AdviseComboChangePosition(MyGUI::Widget* _widget, bool _advise)
{
if (_advise)
static_cast<MyGUI::ComboBox*>(_widget)->eventComboChangePosition += MyGUI::newDelegate(OnEvent);
else
static_cast<MyGUI::ComboBox*>(_widget)->eventComboChangePosition -= MyGUI::newDelegate(OnEvent);
}
}
namespace ScopeComboBoxEvent_ComboAccept
{
typedef void (MYGUICALLBACK *ExportHandle)(
MyGUI::ComboBox *,
Convert<size_t>::Type);
ExportHandle mExportHandle = nullptr;
void OnEvent(
MyGUI::ComboBox * _sender,
size_t _index)
{
mExportHandle(
_sender,
Convert<size_t>::To(_index));
}
MYGUIEXPORT void MYGUICALL ExportComboBoxEvent_DelegateComboAccept(ExportHandle _delegate)
{
mExportHandle = _delegate;
}
MYGUIEXPORT void MYGUICALL ExportComboBoxEvent_AdviseComboAccept(MyGUI::Widget* _widget, bool _advise)
{
if (_advise)
static_cast<MyGUI::ComboBox*>(_widget)->eventComboAccept += MyGUI::newDelegate(OnEvent);
else
static_cast<MyGUI::ComboBox*>(_widget)->eventComboAccept -= MyGUI::newDelegate(OnEvent);
}
}
namespace ScopeComboBoxMethod_BeginToItemSelected
{
MYGUIEXPORT void MYGUICALL ExportComboBox_BeginToItemSelected(MyGUI::Widget* _native)
{
static_cast<MyGUI::ComboBox*>(_native)->beginToItemSelected();
}
}
namespace ScopeComboBoxMethod_BeginToItemLast
{
MYGUIEXPORT void MYGUICALL ExportComboBox_BeginToItemLast(MyGUI::Widget* _native)
{
static_cast<MyGUI::ComboBox*>(_native)->beginToItemLast();
}
}
namespace ScopeComboBoxMethod_BeginToItemFirst
{
MYGUIEXPORT void MYGUICALL ExportComboBox_BeginToItemFirst(MyGUI::Widget* _native)
{
static_cast<MyGUI::ComboBox*>(_native)->beginToItemFirst();
}
}
namespace ScopeComboBoxMethod_BeginToItemAt
{
MYGUIEXPORT void MYGUICALL ExportComboBox_BeginToItemAt__index(MyGUI::Widget* _native,
Convert<size_t>::Type _index)
{
static_cast<MyGUI::ComboBox*>(_native)->beginToItemAt(
Convert<size_t>::From(_index));
}
}
namespace ScopeComboBoxMethod_GetItemNameAt
{
MYGUIEXPORT Convert<const MyGUI::UString &>::Type MYGUICALL ExportComboBox_GetItemNameAt__index(MyGUI::Widget* _native,
Convert<size_t>::Type _index)
{
return Convert<const MyGUI::UString &>::To(static_cast<MyGUI::ComboBox*>(_native)->getItemNameAt(
Convert<size_t>::From(_index)));
}
}
namespace ScopeComboBoxMethod_SetItemNameAt
{
MYGUIEXPORT void MYGUICALL ExportComboBox_SetItemNameAt__index__name(MyGUI::Widget* _native,
Convert<size_t>::Type _index,
Convert<const MyGUI::UString &>::Type _name)
{
static_cast<MyGUI::ComboBox*>(_native)->setItemNameAt(
Convert<size_t>::From(_index),
Convert<const MyGUI::UString &>::From(_name));
}
}
namespace ScopeComboBoxMethod_ClearIndexSelected
{
MYGUIEXPORT void MYGUICALL ExportComboBox_ClearIndexSelected(MyGUI::Widget* _native)
{
static_cast<MyGUI::ComboBox*>(_native)->clearIndexSelected();
}
}
namespace ScopeComboBoxMethod_FindItemIndexWith
{
MYGUIEXPORT Convert<size_t>::Type MYGUICALL ExportComboBox_FindItemIndexWith__name(MyGUI::Widget* _native,
Convert<const MyGUI::UString &>::Type _name)
{
return Convert<size_t>::To(static_cast<MyGUI::ComboBox*>(_native)->findItemIndexWith(
Convert<const MyGUI::UString &>::From(_name)));
}
}
namespace ScopeComboBoxMethod_RemoveAllItems
{
MYGUIEXPORT void MYGUICALL ExportComboBox_RemoveAllItems(MyGUI::Widget* _native)
{
static_cast<MyGUI::ComboBox*>(_native)->removeAllItems();
}
}
namespace ScopeComboBoxMethod_RemoveItemAt
{
MYGUIEXPORT void MYGUICALL ExportComboBox_RemoveItemAt__index(MyGUI::Widget* _native,
Convert<size_t>::Type _index)
{
static_cast<MyGUI::ComboBox*>(_native)->removeItemAt(
Convert<size_t>::From(_index));
}
}
namespace ScopeComboBoxMethod_AddItem
{
MYGUIEXPORT void MYGUICALL ExportComboBox_AddItem__name(MyGUI::Widget* _native,
Convert<const MyGUI::UString &>::Type _name)
{
static_cast<MyGUI::ComboBox*>(_native)->addItem(
Convert<const MyGUI::UString &>::From(_name));
}
}
namespace ScopeComboBoxMethod_InsertItemAt
{
MYGUIEXPORT void MYGUICALL ExportComboBox_InsertItemAt__index__name(MyGUI::Widget* _native,
Convert<size_t>::Type _index,
Convert<const MyGUI::UString &>::Type _name)
{
static_cast<MyGUI::ComboBox*>(_native)->insertItemAt(
Convert<size_t>::From(_index),
Convert<const MyGUI::UString &>::From(_name));
}
}
namespace ScopeComboBoxProperty_FlowDirection
{
MYGUIEXPORT Convert<MyGUI::FlowDirection>::Type MYGUICALL ExportComboBox_GetFlowDirection(MyGUI::Widget* _native)
{
return Convert<MyGUI::FlowDirection>::To(static_cast<MyGUI::ComboBox*>(_native)->getFlowDirection());
}
MYGUIEXPORT void MYGUICALL ExportComboBox_SetFlowDirection(MyGUI::Widget* _native, Convert<MyGUI::FlowDirection>::Type _value)
{
static_cast<MyGUI::ComboBox*>(_native)->setFlowDirection(Convert<MyGUI::FlowDirection>::From(_value));
}
}
namespace ScopeComboBoxProperty_MaxListLength
{
MYGUIEXPORT Convert<int>::Type MYGUICALL ExportComboBox_GetMaxListLength(MyGUI::Widget* _native)
{
return Convert<int>::To(static_cast<MyGUI::ComboBox*>(_native)->getMaxListLength());
}
MYGUIEXPORT void MYGUICALL ExportComboBox_SetMaxListLength(MyGUI::Widget* _native, Convert<int>::Type _value)
{
static_cast<MyGUI::ComboBox*>(_native)->setMaxListLength(Convert<int>::From(_value));
}
}
namespace ScopeComboBoxProperty_SmoothShow
{
MYGUIEXPORT Convert<bool>::Type MYGUICALL ExportComboBox_GetSmoothShow(MyGUI::Widget* _native)
{
return Convert<bool>::To(static_cast<MyGUI::ComboBox*>(_native)->getSmoothShow());
}
MYGUIEXPORT void MYGUICALL ExportComboBox_SetSmoothShow(MyGUI::Widget* _native, Convert<bool>::Type _value)
{
static_cast<MyGUI::ComboBox*>(_native)->setSmoothShow(Convert<bool>::From(_value));
}
}
namespace ScopeComboBoxProperty_ComboModeDrop
{
MYGUIEXPORT Convert<bool>::Type MYGUICALL ExportComboBox_GetComboModeDrop(MyGUI::Widget* _native)
{
return Convert<bool>::To(static_cast<MyGUI::ComboBox*>(_native)->getComboModeDrop());
}
MYGUIEXPORT void MYGUICALL ExportComboBox_SetComboModeDrop(MyGUI::Widget* _native, Convert<bool>::Type _value)
{
static_cast<MyGUI::ComboBox*>(_native)->setComboModeDrop(Convert<bool>::From(_value));
}
}
namespace ScopeComboBoxProperty_IndexSelected
{
MYGUIEXPORT Convert<size_t>::Type MYGUICALL ExportComboBox_GetIndexSelected(MyGUI::Widget* _native)
{
return Convert<size_t>::To(static_cast<MyGUI::ComboBox*>(_native)->getIndexSelected());
}
MYGUIEXPORT void MYGUICALL ExportComboBox_SetIndexSelected(MyGUI::Widget* _native, Convert<size_t>::Type _value)
{
static_cast<MyGUI::ComboBox*>(_native)->setIndexSelected(Convert<size_t>::From(_value));
}
}
namespace ScopeComboBoxProperty_ItemCount
{
MYGUIEXPORT Convert<size_t>::Type MYGUICALL ExportComboBox_GetItemCount(MyGUI::Widget* _native)
{
return Convert<size_t>::To(static_cast<MyGUI::ComboBox*>(_native)->getItemCount());
}
}
}
#endif
|