6e8fbca745
match the genesis editor version 1.3.0.653.
65 lines
2.6 KiB
C++
65 lines
2.6 KiB
C++
/****************************************************************************
|
|
Copyright (c) 2011-2013,WebJet Business Division,CYOU
|
|
|
|
http://www.genesis-3d.com.cn
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
in the Software without restriction, including without limitation the rights
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
furnished to do so, subject to the following conditions:
|
|
|
|
The above copyright notice and this permission notice shall be included in
|
|
all copies or substantial portions of the Software.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
THE SOFTWARE.
|
|
****************************************************************************/
|
|
#include "stdneb.h"
|
|
#include "scriptfeature/inc/script_utility.h"
|
|
#include "guifeature/guiutility.h"
|
|
namespace App
|
|
{
|
|
void ICallReg_ScriptGUI_DDContainer();
|
|
|
|
static void ICall_setNeedDragDrop(gconstpointer widget_ptr, mono_bool value)
|
|
{
|
|
MyGUI::DDContainer* container = static_cast<MyGUI::DDContainer*>(widget_ptr);
|
|
container->setNeedDragDrop(c_iMonoBool_True == value);
|
|
}
|
|
|
|
static mono_bool ICall_getNeedDragDrop(gconstpointer widget_ptr)
|
|
{
|
|
MyGUI::DDContainer* container = static_cast<MyGUI::DDContainer*>(widget_ptr);
|
|
return container->getNeedDragDrop();
|
|
}
|
|
|
|
static void ICall_resetDrag(gconstpointer widget_ptr)
|
|
{
|
|
MyGUI::DDContainer* container = static_cast<MyGUI::DDContainer*>(widget_ptr);
|
|
container->resetDrag();
|
|
}
|
|
|
|
|
|
void ICallReg_ScriptGUI_DDContainer()
|
|
{
|
|
static const InternalCallDetail s_cScriptBindInternalCallDetail[] = {
|
|
{ "ScriptGUI.DDContainer::ICall_setNeedDragDrop", (void*)&ICall_setNeedDragDrop}
|
|
,{ "ScriptGUI.DDContainer::ICall_getNeedDragDrop", (void*)&ICall_getNeedDragDrop}
|
|
,{ "ScriptGUI.DDContainer::ICall_resetDrag", (void*)&ICall_resetDrag}
|
|
};
|
|
|
|
int size = sizeof(s_cScriptBindInternalCallDetail)/sizeof(InternalCallDetail);
|
|
for( int ii=0; ii<size; ii++ )
|
|
{
|
|
mono_add_internal_call( s_cScriptBindInternalCallDetail[ii].__pScriptFunName,
|
|
s_cScriptBindInternalCallDetail[ii].__pCppFunPtr );
|
|
}
|
|
}
|
|
} |