/*!
	@file
	@author		Generate utility by Albert Semenov
	@date		01/2009
	@module
*/

#ifndef __EXPORT_WIDGET_MultiListBox_H__
#define __EXPORT_WIDGET_MultiListBox_H__

#include "../ExportDefine.h"
#include "../ExportMarshaling.h"
#include "MyGUI.Export_MarshalingWidget.h"
#include "../ExportMarshalingType.h"
#include <MyGUI.h>

namespace Export
{

	//InsertPoint



   	namespace ScopeMultiListBoxEvent_ListChangePosition
	{
		typedef void (MYGUICALLBACK *ExportHandle)(
			Convert<MyGUI::MultiListBox *>::Type ,
			Convert<size_t>::Type );
		ExportHandle mExportHandle = nullptr;
		
		void OnEvent(
			MyGUI::MultiListBox * _sender ,
			size_t _index )
		{
			mExportHandle(
				Convert<MyGUI::MultiListBox *>::To( _sender ) ,
				Convert<size_t>::To( _index ) );
		}
		
		MYGUIEXPORT void MYGUICALL ExportMultiListBoxEvent_DelegateListChangePosition( ExportHandle _delegate )
		{
			mExportHandle = _delegate;
		}
		MYGUIEXPORT void MYGUICALL ExportMultiListBoxEvent_AdviseListChangePosition( MyGUI::Widget* _widget, bool _advise )
		{
			if (_advise)
				static_cast< MyGUI::MultiListBox* >(_widget)->eventListChangePosition += MyGUI::newDelegate(OnEvent);
			else
				static_cast< MyGUI::MultiListBox* >(_widget)->eventListChangePosition -= MyGUI::newDelegate(OnEvent);
		}
	}



   	namespace ScopeMultiListBoxEvent_ListSelectAccept
	{
		typedef void (MYGUICALLBACK *ExportHandle)(
			Convert<MyGUI::MultiListBox *>::Type ,
			Convert<size_t>::Type );
		ExportHandle mExportHandle = nullptr;
		
		void OnEvent(
			MyGUI::MultiListBox * _sender ,
			size_t _index )
		{
			mExportHandle(
				Convert<MyGUI::MultiListBox *>::To( _sender ) ,
				Convert<size_t>::To( _index ) );
		}
		
		MYGUIEXPORT void MYGUICALL ExportMultiListBoxEvent_DelegateListSelectAccept( ExportHandle _delegate )
		{
			mExportHandle = _delegate;
		}
		MYGUIEXPORT void MYGUICALL ExportMultiListBoxEvent_AdviseListSelectAccept( MyGUI::Widget* _widget, bool _advise )
		{
			if (_advise)
				static_cast< MyGUI::MultiListBox* >(_widget)->eventListSelectAccept += MyGUI::newDelegate(OnEvent);
			else
				static_cast< MyGUI::MultiListBox* >(_widget)->eventListSelectAccept -= MyGUI::newDelegate(OnEvent);
		}
	}



   	namespace ScopeMultiListBoxMethod_GetSubItemDataAt
	{
		MYGUIEXPORT Convert<MyGUI::Any>::Type MYGUICALL ExportMultiListBox_GetSubItemDataAt_column_index( MyGUI::Widget* _native,
			Convert<size_t>::Type _column ,
			Convert<size_t>::Type _index )
		{
			Convert<MyGUI::Any>::Type* data = 
				static_cast< MyGUI::MultiListBox * >(_native)->getSubItemDataAt< Convert<MyGUI::Any>::Type >(
					Convert<size_t>::From( _column ) ,
					Convert<size_t>::From( _index ) , false );
			return data == nullptr ? nullptr : *data;
		}
	}



   	namespace ScopeMultiListBoxMethod_ClearSubItemDataAt
	{
		MYGUIEXPORT void MYGUICALL ExportMultiListBox_ClearSubItemDataAt_column_index( MyGUI::Widget* _native,
			Convert<size_t>::Type _column ,
			Convert<size_t>::Type _index )
		{
			static_cast< MyGUI::MultiListBox * >(_native)->clearSubItemDataAt(
				Convert<size_t>::From( _column ) ,
				Convert<size_t>::From( _index ) );
		}
	}



   	namespace ScopeMultiListBoxMethod_SetSubItemDataAt
	{
		MYGUIEXPORT void MYGUICALL ExportMultiListBox_SetSubItemDataAt_column_index_data( MyGUI::Widget* _native,
			Convert<size_t>::Type _column ,
			Convert<size_t>::Type _index ,
			Convert<MyGUI::Any>::Type _data )
		{
			static_cast< MyGUI::MultiListBox * >(_native)->setSubItemDataAt(
				Convert<size_t>::From( _column ) ,
				Convert<size_t>::From( _index ) ,
				Convert<MyGUI::Any>::From( _data ) );
		}
	}



   	namespace ScopeMultiListBoxMethod_FindSubItemWith
	{
		MYGUIEXPORT Convert<size_t>::Type MYGUICALL ExportMultiListBox_FindSubItemWith_column_name( MyGUI::Widget* _native,
			Convert<size_t>::Type _column ,
			Convert<const MyGUI::UString &>::Type _name )
		{
			return Convert<size_t>::To( static_cast< MyGUI::MultiListBox * >(_native)->findSubItemWith(
				Convert<size_t>::From( _column ) ,
				Convert<const MyGUI::UString &>::From( _name ) ));
		}
	}



   	namespace ScopeMultiListBoxMethod_GetSubItemNameAt
	{
		MYGUIEXPORT Convert<const MyGUI::UString &>::Type MYGUICALL ExportMultiListBox_GetSubItemNameAt_column_index( MyGUI::Widget* _native,
			Convert<size_t>::Type _column ,
			Convert<size_t>::Type _index )
		{
			return Convert<const MyGUI::UString &>::To( static_cast< MyGUI::MultiListBox * >(_native)->getSubItemNameAt(
				Convert<size_t>::From( _column ) ,
				Convert<size_t>::From( _index ) ));
		}
	}



   	namespace ScopeMultiListBoxMethod_SetSubItemNameAt
	{
		MYGUIEXPORT void MYGUICALL ExportMultiListBox_SetSubItemNameAt_column_index_name( MyGUI::Widget* _native,
			Convert<size_t>::Type _column ,
			Convert<size_t>::Type _index ,
			Convert<const MyGUI::UString &>::Type _name )
		{
			static_cast< MyGUI::MultiListBox * >(_native)->setSubItemNameAt(
				Convert<size_t>::From( _column ) ,
				Convert<size_t>::From( _index ) ,
				Convert<const MyGUI::UString &>::From( _name ) );
		}
	}



   	namespace ScopeMultiListBoxMethod_GetItemDataAt
	{
		MYGUIEXPORT Convert<MyGUI::Any>::Type MYGUICALL ExportMultiListBox_GetItemDataAt_index( MyGUI::Widget* _native,
			Convert<size_t>::Type _index )
		{
			Convert<MyGUI::Any>::Type* data = 
				static_cast< MyGUI::MultiListBox * >(_native)->getItemDataAt< Convert<MyGUI::Any>::Type >(
					Convert<size_t>::From( _index ) , false );
			return data == nullptr ? nullptr : *data;
		}
	}



   	namespace ScopeMultiListBoxMethod_ClearItemDataAt
	{
		MYGUIEXPORT void MYGUICALL ExportMultiListBox_ClearItemDataAt_index( MyGUI::Widget* _native,
			Convert<size_t>::Type _index )
		{
			static_cast< MyGUI::MultiListBox * >(_native)->clearItemDataAt(
				Convert<size_t>::From( _index ) );
		}
	}



   	namespace ScopeMultiListBoxMethod_SetItemDataAt
	{
		MYGUIEXPORT void MYGUICALL ExportMultiListBox_SetItemDataAt_index_data( MyGUI::Widget* _native,
			Convert<size_t>::Type _index ,
			Convert<MyGUI::Any>::Type _data )
		{
			static_cast< MyGUI::MultiListBox * >(_native)->setItemDataAt(
				Convert<size_t>::From( _index ) ,
				Convert<MyGUI::Any>::From( _data ) );
		}
	}



   	namespace ScopeMultiListBoxMethod_ClearIndexSelected
	{
		MYGUIEXPORT void MYGUICALL ExportMultiListBox_ClearIndexSelected( MyGUI::Widget* _native )
		{
			static_cast< MyGUI::MultiListBox * >(_native)->clearIndexSelected( );
		}
	}



   	namespace ScopeMultiListBoxProperty_IndexSelected
	{
		MYGUIEXPORT Convert<size_t>::Type MYGUICALL ExportMultiListBox_GetIndexSelected( MyGUI::Widget* _native )
		{
			return Convert<size_t>::To( static_cast< MyGUI::MultiListBox * >(_native)->getIndexSelected( ) );
		}
		MYGUIEXPORT void MYGUICALL ExportMultiListBox_SetIndexSelected( MyGUI::Widget* _native , Convert<size_t>::Type _value )
		{
			static_cast< MyGUI::MultiListBox * >(_native)->setIndexSelected( Convert<size_t>::From( _value ) );
		}
	}



   	namespace ScopeMultiListBoxMethod_GetItemNameAt
	{
		MYGUIEXPORT Convert<const MyGUI::UString &>::Type MYGUICALL ExportMultiListBox_GetItemNameAt_index( MyGUI::Widget* _native,
			Convert<size_t>::Type _index )
		{
			return Convert<const MyGUI::UString &>::To( static_cast< MyGUI::MultiListBox * >(_native)->getItemNameAt(
				Convert<size_t>::From( _index ) ));
		}
	}



   	namespace ScopeMultiListBoxMethod_SetItemNameAt
	{
		MYGUIEXPORT void MYGUICALL ExportMultiListBox_SetItemNameAt_index_name( MyGUI::Widget* _native,
			Convert<size_t>::Type _index ,
			Convert<const MyGUI::UString &>::Type _name )
		{
			static_cast< MyGUI::MultiListBox * >(_native)->setItemNameAt(
				Convert<size_t>::From( _index ) ,
				Convert<const MyGUI::UString &>::From( _name ) );
		}
	}



   	namespace ScopeMultiListBoxMethod_SwapItemsAt
	{
		MYGUIEXPORT void MYGUICALL ExportMultiListBox_SwapItemsAt_index1_index2( MyGUI::Widget* _native,
			Convert<size_t>::Type _index1 ,
			Convert<size_t>::Type _index2 )
		{
			static_cast< MyGUI::MultiListBox * >(_native)->swapItemsAt(
				Convert<size_t>::From( _index1 ) ,
				Convert<size_t>::From( _index2 ) );
		}
	}



   	namespace ScopeMultiListBoxMethod_RemoveAllItems
	{
		MYGUIEXPORT void MYGUICALL ExportMultiListBox_RemoveAllItems( MyGUI::Widget* _native )
		{
			static_cast< MyGUI::MultiListBox * >(_native)->removeAllItems( );
		}
	}



   	namespace ScopeMultiListBoxMethod_RemoveItemAt
	{
		MYGUIEXPORT void MYGUICALL ExportMultiListBox_RemoveItemAt_index( MyGUI::Widget* _native,
			Convert<size_t>::Type _index )
		{
			static_cast< MyGUI::MultiListBox * >(_native)->removeItemAt(
				Convert<size_t>::From( _index ) );
		}
	}



   	namespace ScopeMultiListBoxMethod_AddItem
	{
		MYGUIEXPORT void MYGUICALL ExportMultiListBox_AddItem_name_data( MyGUI::Widget* _native,
			Convert<const MyGUI::UString &>::Type _name ,
			Convert<MyGUI::Any>::Type _data )
		{
			static_cast< MyGUI::MultiListBox * >(_native)->addItem(
				Convert<const MyGUI::UString &>::From( _name ) ,
				Convert<MyGUI::Any>::From( _data ) );
		}
		MYGUIEXPORT void MYGUICALL ExportMultiListBox_AddItem_name( MyGUI::Widget* _native,
			Convert<const MyGUI::UString &>::Type _name )
		{
			static_cast< MyGUI::MultiListBox * >(_native)->addItem(
				Convert<const MyGUI::UString &>::From( _name ) );
		}
	}



   	namespace ScopeMultiListBoxMethod_InsertItemAt
	{
		MYGUIEXPORT void MYGUICALL ExportMultiListBox_InsertItemAt_index_name_data( MyGUI::Widget* _native,
			Convert<size_t>::Type _index ,
			Convert<const MyGUI::UString &>::Type _name ,
			Convert<MyGUI::Any>::Type _data )
		{
			static_cast< MyGUI::MultiListBox * >(_native)->insertItemAt(
				Convert<size_t>::From( _index ) ,
				Convert<const MyGUI::UString &>::From( _name ) ,
				Convert<MyGUI::Any>::From( _data ) );
		}
		MYGUIEXPORT void MYGUICALL ExportMultiListBox_InsertItemAt_index_name( MyGUI::Widget* _native,
			Convert<size_t>::Type _index ,
			Convert<const MyGUI::UString &>::Type _name )
		{
			static_cast< MyGUI::MultiListBox * >(_native)->insertItemAt(
				Convert<size_t>::From( _index ) ,
				Convert<const MyGUI::UString &>::From( _name ) );
		}
	}



   	namespace ScopeMultiListBoxProperty_ItemCount
	{
		MYGUIEXPORT Convert<size_t>::Type MYGUICALL ExportMultiListBox_GetItemCount( MyGUI::Widget* _native )
		{
			return Convert<size_t>::To( static_cast< MyGUI::MultiListBox * >(_native)->getItemCount( ) );
		}
	}



   	namespace ScopeMultiListBoxMethod_GetColumnDataAt
	{
		MYGUIEXPORT Convert<MyGUI::Any>::Type MYGUICALL ExportMultiListBox_GetColumnDataAt_index( MyGUI::Widget* _native,
			Convert<size_t>::Type _index )
		{
			Convert<MyGUI::Any>::Type* data = 
				static_cast< MyGUI::MultiListBox * >(_native)->getColumnDataAt< Convert<MyGUI::Any>::Type >(
					Convert<size_t>::From( _index ) , false );
			return data == nullptr ? nullptr : *data;
		}
	}



   	namespace ScopeMultiListBoxMethod_ClearColumnDataAt
	{
		MYGUIEXPORT void MYGUICALL ExportMultiListBox_ClearColumnDataAt_index( MyGUI::Widget* _native,
			Convert<size_t>::Type _index )
		{
			static_cast< MyGUI::MultiListBox * >(_native)->clearColumnDataAt(
				Convert<size_t>::From( _index ) );
		}
	}



   	namespace ScopeMultiListBoxMethod_SetColumnDataAt
	{
		MYGUIEXPORT void MYGUICALL ExportMultiListBox_SetColumnDataAt_index_data( MyGUI::Widget* _native,
			Convert<size_t>::Type _index ,
			Convert<MyGUI::Any>::Type _data )
		{
			static_cast< MyGUI::MultiListBox * >(_native)->setColumnDataAt(
				Convert<size_t>::From( _index ) ,
				Convert<MyGUI::Any>::From( _data ) );
		}
	}



   	namespace ScopeMultiListBoxMethod_SetColumnResizingPolicyAt
	{
		MYGUIEXPORT void MYGUICALL ExportMultiListBox_SetColumnResizingPolicyAt_index_value( MyGUI::Widget* _native,
			Convert<size_t>::Type _index ,
			Convert<MyGUI::ResizingPolicy>::Type _value )
		{
			static_cast< MyGUI::MultiListBox * >(_native)->setColumnResizingPolicyAt(
				Convert<size_t>::From( _index ) ,
				Convert<MyGUI::ResizingPolicy>::From( _value ) );
		}
	}



   	namespace ScopeMultiListBoxMethod_SetColumnResizingPolicy
	{
		MYGUIEXPORT void MYGUICALL ExportMultiListBox_SetColumnResizingPolicy_item_value( MyGUI::Widget* _native,
			Convert<MyGUI::MultiListItem *>::Type _item ,
			Convert<MyGUI::ResizingPolicy>::Type _value )
		{
			static_cast< MyGUI::MultiListBox * >(_native)->setColumnResizingPolicy(
				Convert<MyGUI::MultiListItem *>::From( _item ) ,
				Convert<MyGUI::ResizingPolicy>::From( _value ) );
		}
	}



   	namespace ScopeMultiListBoxMethod_GetColumnIndex
	{
		MYGUIEXPORT Convert<size_t>::Type MYGUICALL ExportMultiListBox_GetColumnIndex_item( MyGUI::Widget* _native,
			Convert<MyGUI::MultiListItem *>::Type _item )
		{
			return Convert<size_t>::To( static_cast< MyGUI::MultiListBox * >(_native)->getColumnIndex(
				Convert<MyGUI::MultiListItem *>::From( _item ) ));
		}
	}



   	namespace ScopeMultiListBoxMethod_SortByColumn
	{
		MYGUIEXPORT void MYGUICALL ExportMultiListBox_SortByColumn_column_backward( MyGUI::Widget* _native,
			Convert<size_t>::Type _column ,
			Convert<bool>::Type _backward )
		{
			static_cast< MyGUI::MultiListBox * >(_native)->sortByColumn(
				Convert<size_t>::From( _column ) ,
				Convert<bool>::From( _backward ) );
		}
	}



   	namespace ScopeMultiListBoxMethod_GetColumnWidthAt
	{
		MYGUIEXPORT Convert<int>::Type MYGUICALL ExportMultiListBox_GetColumnWidthAt_column( MyGUI::Widget* _native,
			Convert<size_t>::Type _column )
		{
			return Convert<int>::To( static_cast< MyGUI::MultiListBox * >(_native)->getColumnWidthAt(
				Convert<size_t>::From( _column ) ));
		}
	}



   	namespace ScopeMultiListBoxMethod_GetColumnName
	{
		MYGUIEXPORT Convert<const MyGUI::UString &>::Type MYGUICALL ExportMultiListBox_GetColumnName_item( MyGUI::Widget* _native,
			Convert<MyGUI::MultiListItem *>::Type _item )
		{
			return Convert<const MyGUI::UString &>::To( static_cast< MyGUI::MultiListBox * >(_native)->getColumnName(
				Convert<MyGUI::MultiListItem *>::From( _item ) ));
		}
	}



   	namespace ScopeMultiListBoxMethod_GetColumnNameAt
	{
		MYGUIEXPORT Convert<const MyGUI::UString &>::Type MYGUICALL ExportMultiListBox_GetColumnNameAt_column( MyGUI::Widget* _native,
			Convert<size_t>::Type _column )
		{
			return Convert<const MyGUI::UString &>::To( static_cast< MyGUI::MultiListBox * >(_native)->getColumnNameAt(
				Convert<size_t>::From( _column ) ));
		}
	}



   	namespace ScopeMultiListBoxMethod_SetColumnWidth
	{
		MYGUIEXPORT void MYGUICALL ExportMultiListBox_SetColumnWidth_item_width( MyGUI::Widget* _native,
			Convert<MyGUI::MultiListItem *>::Type _item ,
			Convert<int>::Type _width )
		{
			static_cast< MyGUI::MultiListBox * >(_native)->setColumnWidth(
				Convert<MyGUI::MultiListItem *>::From( _item ) ,
				Convert<int>::From( _width ) );
		}
	}



   	namespace ScopeMultiListBoxMethod_SetColumnWidthAt
	{
		MYGUIEXPORT void MYGUICALL ExportMultiListBox_SetColumnWidthAt_column_width( MyGUI::Widget* _native,
			Convert<size_t>::Type _column ,
			Convert<int>::Type _width )
		{
			static_cast< MyGUI::MultiListBox * >(_native)->setColumnWidthAt(
				Convert<size_t>::From( _column ) ,
				Convert<int>::From( _width ) );
		}
	}



   	namespace ScopeMultiListBoxMethod_SetColumnName
	{
		MYGUIEXPORT void MYGUICALL ExportMultiListBox_SetColumnName_item_name( MyGUI::Widget* _native,
			Convert<MyGUI::MultiListItem *>::Type _item ,
			Convert<const MyGUI::UString &>::Type _name )
		{
			static_cast< MyGUI::MultiListBox * >(_native)->setColumnName(
				Convert<MyGUI::MultiListItem *>::From( _item ) ,
				Convert<const MyGUI::UString &>::From( _name ) );
		}
	}



   	namespace ScopeMultiListBoxMethod_SetColumnNameAt
	{
		MYGUIEXPORT void MYGUICALL ExportMultiListBox_SetColumnNameAt_column_name( MyGUI::Widget* _native,
			Convert<size_t>::Type _column ,
			Convert<const MyGUI::UString &>::Type _name )
		{
			static_cast< MyGUI::MultiListBox * >(_native)->setColumnNameAt(
				Convert<size_t>::From( _column ) ,
				Convert<const MyGUI::UString &>::From( _name ) );
		}
	}



   	namespace ScopeMultiListBoxMethod_SwapColumnsAt
	{
		MYGUIEXPORT void MYGUICALL ExportMultiListBox_SwapColumnsAt_index1_index2( MyGUI::Widget* _native,
			Convert<size_t>::Type _index1 ,
			Convert<size_t>::Type _index2 )
		{
			static_cast< MyGUI::MultiListBox * >(_native)->swapColumnsAt(
				Convert<size_t>::From( _index1 ) ,
				Convert<size_t>::From( _index2 ) );
		}
	}



   	namespace ScopeMultiListBoxMethod_RemoveAllColumns
	{
		MYGUIEXPORT void MYGUICALL ExportMultiListBox_RemoveAllColumns( MyGUI::Widget* _native )
		{
			static_cast< MyGUI::MultiListBox * >(_native)->removeAllColumns( );
		}
	}



   	namespace ScopeMultiListBoxMethod_RemoveColumnAt
	{
		MYGUIEXPORT void MYGUICALL ExportMultiListBox_RemoveColumnAt_column( MyGUI::Widget* _native,
			Convert<size_t>::Type _column )
		{
			static_cast< MyGUI::MultiListBox * >(_native)->removeColumnAt(
				Convert<size_t>::From( _column ) );
		}
	}



   	namespace ScopeMultiListBoxMethod_AddColumn
	{
		MYGUIEXPORT void MYGUICALL ExportMultiListBox_AddColumn_name_width_data( MyGUI::Widget* _native,
			Convert<const MyGUI::UString &>::Type _name ,
			Convert<int>::Type _width ,
			Convert<MyGUI::Any>::Type _data )
		{
			static_cast< MyGUI::MultiListBox * >(_native)->addColumn(
				Convert<const MyGUI::UString &>::From( _name ) ,
				Convert<int>::From( _width ) ,
				Convert<MyGUI::Any>::From( _data ) );
		}
		MYGUIEXPORT void MYGUICALL ExportMultiListBox_AddColumn_name_width( MyGUI::Widget* _native,
			Convert<const MyGUI::UString &>::Type _name ,
			Convert<int>::Type _width )
		{
			static_cast< MyGUI::MultiListBox * >(_native)->addColumn(
				Convert<const MyGUI::UString &>::From( _name ) ,
				Convert<int>::From( _width ) );
		}
	}



   	namespace ScopeMultiListBoxMethod_InsertColumnAt
	{
		MYGUIEXPORT void MYGUICALL ExportMultiListBox_InsertColumnAt_column_name_width_data( MyGUI::Widget* _native,
			Convert<size_t>::Type _column ,
			Convert<const MyGUI::UString &>::Type _name ,
			Convert<int>::Type _width ,
			Convert<MyGUI::Any>::Type _data )
		{
			static_cast< MyGUI::MultiListBox * >(_native)->insertColumnAt(
				Convert<size_t>::From( _column ) ,
				Convert<const MyGUI::UString &>::From( _name ) ,
				Convert<int>::From( _width ) ,
				Convert<MyGUI::Any>::From( _data ) );
		}
		MYGUIEXPORT void MYGUICALL ExportMultiListBox_InsertColumnAt_column_name_width( MyGUI::Widget* _native,
			Convert<size_t>::Type _column ,
			Convert<const MyGUI::UString &>::Type _name ,
			Convert<int>::Type _width )
		{
			static_cast< MyGUI::MultiListBox * >(_native)->insertColumnAt(
				Convert<size_t>::From( _column ) ,
				Convert<const MyGUI::UString &>::From( _name ) ,
				Convert<int>::From( _width ) );
		}
	}



   	namespace ScopeMultiListBoxProperty_ColumnCount
	{
		MYGUIEXPORT Convert<size_t>::Type MYGUICALL ExportMultiListBox_GetColumnCount( MyGUI::Widget* _native )
		{
			return Convert<size_t>::To( static_cast< MyGUI::MultiListBox * >(_native)->getColumnCount( ) );
		}
	}



   


   


   


   


   


   


   


   


   


}

#endif // __EXPORT_WIDGET_MultiListBox_H__
