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

#ifndef __EXPORT_WIDGET_MenuItem_H__
#define __EXPORT_WIDGET_MenuItem_H__

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

namespace Export
{

	//InsertPoint

   	namespace ScopeMenuItemProperty_ItemChecked
	{
		MYGUIEXPORT Convert<bool>::Type MYGUICALL ExportMenuItem_GetItemChecked( MyGUI::Widget* _native )
		{
			return Convert<bool>::To( static_cast< MyGUI::MenuItem * >(_native)->getItemChecked( ) );
		}
		MYGUIEXPORT void MYGUICALL ExportMenuItem_SetItemChecked( MyGUI::Widget* _native , Convert<bool>::Type _value )
		{
			static_cast< MyGUI::MenuItem * >(_native)->setItemChecked( Convert<bool>::From( _value ) );
		}
	}



   	namespace ScopeMenuItemMethod_GetItemChild
	{
		MYGUIEXPORT Convert<MyGUI::MenuControl *>::Type MYGUICALL ExportMenuItem_GetItemChild( MyGUI::Widget* _native )
		{
			return Convert<MyGUI::MenuControl *>::To( static_cast< MyGUI::MenuItem * >(_native)->getItemChild( ) );
		}
	}



   	namespace ScopeMenuItemMethod_GetMenuCtrlParent
	{
		MYGUIEXPORT Convert<MyGUI::MenuControl *>::Type MYGUICALL ExportMenuItem_GetMenuCtrlParent( MyGUI::Widget* _native )
		{
			return Convert<MyGUI::MenuControl *>::To( static_cast< MyGUI::MenuItem * >(_native)->getMenuCtrlParent( ) );
		}
	}



   	namespace ScopeMenuItemMethod_SetItemChildVisible
	{
		MYGUIEXPORT void MYGUICALL ExportMenuItem_SetItemChildVisible_value( MyGUI::Widget* _native,
			Convert<bool>::Type _value )
		{
			static_cast< MyGUI::MenuItem * >(_native)->setItemChildVisible(
				Convert<bool>::From( _value ) );
		}
	}



   	namespace ScopeMenuItemProperty_ItemType
	{
		MYGUIEXPORT Convert<MyGUI::MenuItemType>::Type MYGUICALL ExportMenuItem_GetItemType( MyGUI::Widget* _native )
		{
			return Convert<MyGUI::MenuItemType>::To( static_cast< MyGUI::MenuItem * >(_native)->getItemType( ) );
		}
		MYGUIEXPORT void MYGUICALL ExportMenuItem_SetItemType( MyGUI::Widget* _native , Convert<MyGUI::MenuItemType>::Type _value )
		{
			static_cast< MyGUI::MenuItem * >(_native)->setItemType( Convert<MyGUI::MenuItemType>::From( _value ) );
		}
	}



   


   	namespace ScopeMenuItemMethod_CreateItemChild
	{
		MYGUIEXPORT Convert<MyGUI::MenuControl *>::Type MYGUICALL ExportMenuItem_CreateItemChild( MyGUI::Widget* _native )
		{
			return Convert<MyGUI::MenuControl *>::To( static_cast< MyGUI::MenuItem * >(_native)->createItemChild( ) );
		}
	}



   	namespace ScopeMenuItemMethod_GetItemIndex
	{
		MYGUIEXPORT Convert<size_t>::Type MYGUICALL ExportMenuItem_GetItemIndex( MyGUI::Widget* _native )
		{
			return Convert<size_t>::To( static_cast< MyGUI::MenuItem * >(_native)->getItemIndex( ) );
		}
	}



   	namespace ScopeMenuItemProperty_ItemId
	{
		MYGUIEXPORT Convert<const std::string &>::Type MYGUICALL ExportMenuItem_GetItemId( MyGUI::Widget* _native )
		{
			return Convert<const std::string &>::To( static_cast< MyGUI::MenuItem * >(_native)->getItemId( ) );
		}
		MYGUIEXPORT void MYGUICALL ExportMenuItem_SetItemId( MyGUI::Widget* _native , Convert<const std::string &>::Type _value )
		{
			static_cast< MyGUI::MenuItem * >(_native)->setItemId( Convert<const std::string &>::From( _value ) );
		}
	}



   	namespace ScopeMenuItemMethod_RemoveItem
	{
		MYGUIEXPORT void MYGUICALL ExportMenuItem_RemoveItem( MyGUI::Widget* _native )
		{
			static_cast< MyGUI::MenuItem * >(_native)->removeItem( );
		}
	}



   	namespace ScopeMenuItemProperty_ItemData
	{
		MYGUIEXPORT Convert<MyGUI::Any>::Type MYGUICALL ExportMenuItem_GetItemData( MyGUI::Widget* _native )
		{
			Convert<MyGUI::Any>::Type* data = static_cast< MyGUI::MenuItem * >(_native)->getItemData<Convert<MyGUI::Any>::Type>( false );
			return data == nullptr ? nullptr : *data;
		}
		MYGUIEXPORT void MYGUICALL ExportMenuItem_SetItemData( MyGUI::Widget* _native , Convert<bool>::Type _value )
		{
			static_cast< MyGUI::MenuItem * >(_native)->setItemData( Convert<bool>::From( _value ) );
		}
	}



   


   	namespace ScopeMenuItemProperty_ItemName
	{
		MYGUIEXPORT Convert<const MyGUI::UString &>::Type MYGUICALL ExportMenuItem_GetItemName( MyGUI::Widget* _native )
		{
			return Convert<const MyGUI::UString &>::To( static_cast< MyGUI::MenuItem * >(_native)->getItemName( ) );
		}
		MYGUIEXPORT void MYGUICALL ExportMenuItem_SetItemName( MyGUI::Widget* _native , Convert<const MyGUI::UString &>::Type _value )
		{
			static_cast< MyGUI::MenuItem * >(_native)->setItemName( Convert<const MyGUI::UString &>::From( _value ) );
		}
	}



   


   


   


   


}

#endif // __EXPORT_WIDGET_MenuItem_H__
