Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // SGS/CPP-BC
- // warning: do not modify this file, it may be regenerated during any build
- // generated: 06/05/14 11:03:44
- #include "src/ui_control.h"
- int UIEvent::_sgs_destruct( SGS_CTX, sgs_VarObj* obj )
- {
- static_cast<UIEvent*>( obj->data )->~UIEvent();
- return SGS_SUCCESS;
- }
- int UIEvent::_sgs_getindex( SGS_ARGS_GETINDEXFUNC )
- {
- SGS_BEGIN_INDEXFUNC
- SGS_CASE( "type" ){ sgs_PushVar( C, static_cast<UIEvent*>( obj->data )->type ); return SGS_SUCCESS; }
- SGS_CASE( "key" ){ sgs_PushVar( C, static_cast<UIEvent*>( obj->data )->key ); return SGS_SUCCESS; }
- SGS_CASE( "button" ){ sgs_PushVar( C, static_cast<UIEvent*>( obj->data )->button ); return SGS_SUCCESS; }
- SGS_CASE( "uchar" ){ sgs_PushVar( C, static_cast<UIEvent*>( obj->data )->uchar ); return SGS_SUCCESS; }
- SGS_CASE( "x" ){ sgs_PushVar( C, static_cast<UIEvent*>( obj->data )->x ); return SGS_SUCCESS; }
- SGS_CASE( "y" ){ sgs_PushVar( C, static_cast<UIEvent*>( obj->data )->y ); return SGS_SUCCESS; }
- SGS_CASE( "rx" ){ sgs_PushVar( C, static_cast<UIEvent*>( obj->data )->rx ); return SGS_SUCCESS; }
- SGS_CASE( "ry" ){ sgs_PushVar( C, static_cast<UIEvent*>( obj->data )->ry ); return SGS_SUCCESS; }
- SGS_END_INDEXFUNC;
- }
- int UIEvent::_sgs_setindex( SGS_ARGS_SETINDEXFUNC )
- {
- SGS_BEGIN_INDEXFUNC
- SGS_CASE( "type" ){ static_cast<UIEvent*>( obj->data )->type = sgs_GetVarP<int>()( C, val ); return SGS_SUCCESS; }
- SGS_CASE( "key" ){ static_cast<UIEvent*>( obj->data )->key = sgs_GetVarP<int>()( C, val ); return SGS_SUCCESS; }
- SGS_CASE( "button" ){ static_cast<UIEvent*>( obj->data )->button = sgs_GetVarP<int>()( C, val ); return SGS_SUCCESS; }
- SGS_CASE( "uchar" ){ static_cast<UIEvent*>( obj->data )->uchar = sgs_GetVarP<int>()( C, val ); return SGS_SUCCESS; }
- SGS_CASE( "x" ){ static_cast<UIEvent*>( obj->data )->x = sgs_GetVarP<float>()( C, val ); return SGS_SUCCESS; }
- SGS_CASE( "y" ){ static_cast<UIEvent*>( obj->data )->y = sgs_GetVarP<float>()( C, val ); return SGS_SUCCESS; }
- SGS_CASE( "rx" ){ static_cast<UIEvent*>( obj->data )->rx = sgs_GetVarP<float>()( C, val ); return SGS_SUCCESS; }
- SGS_CASE( "ry" ){ static_cast<UIEvent*>( obj->data )->ry = sgs_GetVarP<float>()( C, val ); return SGS_SUCCESS; }
- SGS_END_INDEXFUNC;
- }
- sgs_ObjInterface UIEvent::_sgs_interface[1] =
- {{
- "UIEvent",
- UIEvent::_sgs_destruct, NULL, UIEvent::_sgs_getindex, UIEvent::_sgs_setindex, NULL, NULL, NULL, NULL, NULL, NULL,
- }};
- static int _sgs_method__UIFrame__createControl( SGS_CTX )
- {
- UIFrame* data; if( !SGS_PARSE_METHOD( C, UIFrame::_sgs_interface, data, UIFrame, createControl ) ) return 0;
- sgs_PushVar(C,data->createControl( sgs_GetVar<sgsString>()(C,0) )); return 1;
- }
- static int _sgs_method__UIFrame__event( SGS_CTX )
- {
- UIFrame* data; if( !SGS_PARSE_METHOD( C, UIFrame::_sgs_interface, data, UIFrame, event ) ) return 0;
- data->event( sgs_GetVarObj<UIEvent>()(C,0) ); return 0;
- }
- static int _sgs_method__UIFrame__render( SGS_CTX )
- {
- UIFrame* data; if( !SGS_PARSE_METHOD( C, UIFrame::_sgs_interface, data, UIFrame, render ) ) return 0;
- data->render( ); return 0;
- }
- static int _sgs_method__UIFrame__handleMouseMove( SGS_CTX )
- {
- UIFrame* data; if( !SGS_PARSE_METHOD( C, UIFrame::_sgs_interface, data, UIFrame, handleMouseMove ) ) return 0;
- data->handleMouseMove( ); return 0;
- }
- static int _sgs_method__UIFrame__setFocus( SGS_CTX )
- {
- UIFrame* data; if( !SGS_PARSE_METHOD( C, UIFrame::_sgs_interface, data, UIFrame, setFocus ) ) return 0;
- data->setFocus( sgs_GetVarObj<UIControl>()(C,0) ); return 0;
- }
- static int _sgs_method__UIFrame__doMouseMove( SGS_CTX )
- {
- UIFrame* data; if( !SGS_PARSE_METHOD( C, UIFrame::_sgs_interface, data, UIFrame, doMouseMove ) ) return 0;
- data->doMouseMove( sgs_GetVar<float>()(C,0), sgs_GetVar<float>()(C,1) ); return 0;
- }
- static int _sgs_method__UIFrame__doMouseButton( SGS_CTX )
- {
- UIFrame* data; if( !SGS_PARSE_METHOD( C, UIFrame::_sgs_interface, data, UIFrame, doMouseButton ) ) return 0;
- data->doMouseButton( sgs_GetVar<int>()(C,0), sgs_GetVar<bool>()(C,1) ); return 0;
- }
- static int _sgs_method__UIFrame__doMouseWheel( SGS_CTX )
- {
- UIFrame* data; if( !SGS_PARSE_METHOD( C, UIFrame::_sgs_interface, data, UIFrame, doMouseWheel ) ) return 0;
- data->doMouseWheel( sgs_GetVar<float>()(C,0), sgs_GetVar<float>()(C,1) ); return 0;
- }
- static int _sgs_method__UIFrame__doKeyPress( SGS_CTX )
- {
- UIFrame* data; if( !SGS_PARSE_METHOD( C, UIFrame::_sgs_interface, data, UIFrame, doKeyPress ) ) return 0;
- data->doKeyPress( sgs_GetVar<int>()(C,0), sgs_GetVar<bool>()(C,1) ); return 0;
- }
- static int _sgs_method__UIFrame__doPutChar( SGS_CTX )
- {
- UIFrame* data; if( !SGS_PARSE_METHOD( C, UIFrame::_sgs_interface, data, UIFrame, doPutChar ) ) return 0;
- data->doPutChar( sgs_GetVar<int>()(C,0) ); return 0;
- }
- static int _sgs_method__UIFrame__setTimeout( SGS_CTX )
- {
- UIFrame* data; if( !SGS_PARSE_METHOD( C, UIFrame::_sgs_interface, data, UIFrame, setTimeout ) ) return 0;
- sgs_PushVar(C,data->setTimeout( sgs_GetVar<float>()(C,0), sgs_GetVar<sgsVariable>()(C,1) )); return 1;
- }
- static int _sgs_method__UIFrame__setInterval( SGS_CTX )
- {
- UIFrame* data; if( !SGS_PARSE_METHOD( C, UIFrame::_sgs_interface, data, UIFrame, setInterval ) ) return 0;
- sgs_PushVar(C,data->setInterval( sgs_GetVar<float>()(C,0), sgs_GetVar<sgsVariable>()(C,1) )); return 1;
- }
- static int _sgs_method__UIFrame__clearTimeout( SGS_CTX )
- {
- UIFrame* data; if( !SGS_PARSE_METHOD( C, UIFrame::_sgs_interface, data, UIFrame, clearTimeout ) ) return 0;
- data->clearTimeout( sgs_GetVar<int64_t>()(C,0) ); return 0;
- }
- static int _sgs_method__UIFrame__clearInterval( SGS_CTX )
- {
- UIFrame* data; if( !SGS_PARSE_METHOD( C, UIFrame::_sgs_interface, data, UIFrame, clearInterval ) ) return 0;
- data->clearInterval( sgs_GetVar<int64_t>()(C,0) ); return 0;
- }
- static int _sgs_method__UIFrame__processTimers( SGS_CTX )
- {
- UIFrame* data; if( !SGS_PARSE_METHOD( C, UIFrame::_sgs_interface, data, UIFrame, processTimers ) ) return 0;
- data->processTimers( sgs_GetVar<float>()(C,0) ); return 0;
- }
- static int _sgs_method__UIFrame__pushScissorRect( SGS_CTX )
- {
- UIFrame* data; if( !SGS_PARSE_METHOD( C, UIFrame::_sgs_interface, data, UIFrame, pushScissorRect ) ) return 0;
- sgs_PushVar(C,data->pushScissorRect( sgs_GetVar<float>()(C,0), sgs_GetVar<float>()(C,1), sgs_GetVar<float>()(C,2), sgs_GetVar<float>()(C,3) )); return 1;
- }
- static int _sgs_method__UIFrame__pushScissorRectUnclipped( SGS_CTX )
- {
- UIFrame* data; if( !SGS_PARSE_METHOD( C, UIFrame::_sgs_interface, data, UIFrame, pushScissorRectUnclipped ) ) return 0;
- sgs_PushVar(C,data->pushScissorRectUnclipped( sgs_GetVar<float>()(C,0), sgs_GetVar<float>()(C,1), sgs_GetVar<float>()(C,2), sgs_GetVar<float>()(C,3) )); return 1;
- }
- static int _sgs_method__UIFrame__popScissorRect( SGS_CTX )
- {
- UIFrame* data; if( !SGS_PARSE_METHOD( C, UIFrame::_sgs_interface, data, UIFrame, popScissorRect ) ) return 0;
- sgs_PushVar(C,data->popScissorRect( )); return 1;
- }
- static int _sgs_method__UIFrame__getScissorRectCount( SGS_CTX )
- {
- UIFrame* data; if( !SGS_PARSE_METHOD( C, UIFrame::_sgs_interface, data, UIFrame, getScissorRectCount ) ) return 0;
- sgs_PushVar(C,data->getScissorRectCount( )); return 1;
- }
- static int _sgs_method__UIFrame__getClickOffsetX( SGS_CTX )
- {
- UIFrame* data; if( !SGS_PARSE_METHOD( C, UIFrame::_sgs_interface, data, UIFrame, getClickOffsetX ) ) return 0;
- sgs_PushVar(C,data->getClickOffsetX( sgs_GetVar<int>()(C,0) )); return 1;
- }
- static int _sgs_method__UIFrame__getClickOffsetY( SGS_CTX )
- {
- UIFrame* data; if( !SGS_PARSE_METHOD( C, UIFrame::_sgs_interface, data, UIFrame, getClickOffsetY ) ) return 0;
- sgs_PushVar(C,data->getClickOffsetY( sgs_GetVar<int>()(C,0) )); return 1;
- }
- static int _sgs_method__UIFrame__getHoverControl( SGS_CTX )
- {
- UIFrame* data; if( !SGS_PARSE_METHOD( C, UIFrame::_sgs_interface, data, UIFrame, getHoverControl ) ) return 0;
- sgs_PushVar(C,data->getHoverControl( )); return 1;
- }
- static int _sgs_method__UIFrame__getFocusControl( SGS_CTX )
- {
- UIFrame* data; if( !SGS_PARSE_METHOD( C, UIFrame::_sgs_interface, data, UIFrame, getFocusControl ) ) return 0;
- sgs_PushVar(C,data->getFocusControl( )); return 1;
- }
- static int _sgs_method__UIFrame__getControlUnderCursor( SGS_CTX )
- {
- UIFrame* data; if( !SGS_PARSE_METHOD( C, UIFrame::_sgs_interface, data, UIFrame, getControlUnderCursor ) ) return 0;
- sgs_PushVar(C,data->getControlUnderCursor( )); return 1;
- }
- static int _sgs_method__UIFrame__getControlUnderPoint( SGS_CTX )
- {
- UIFrame* data; if( !SGS_PARSE_METHOD( C, UIFrame::_sgs_interface, data, UIFrame, getControlUnderPoint ) ) return 0;
- sgs_PushVar(C,data->getControlUnderPoint( sgs_GetVar<float>()(C,0), sgs_GetVar<float>()(C,1) )); return 1;
- }
- int UIFrame::_sgs_destruct( SGS_CTX, sgs_VarObj* obj )
- {
- static_cast<UIFrame*>( obj->data )->~UIFrame();
- return SGS_SUCCESS;
- }
- int UIFrame::_sgs_getindex( SGS_ARGS_GETINDEXFUNC )
- {
- SGS_BEGIN_INDEXFUNC
- SGS_CASE( "createControl" ){ sgs_PushCFunction( C, _sgs_method__UIFrame__createControl ); return SGS_SUCCESS; }
- SGS_CASE( "event" ){ sgs_PushCFunction( C, _sgs_method__UIFrame__event ); return SGS_SUCCESS; }
- SGS_CASE( "render" ){ sgs_PushCFunction( C, _sgs_method__UIFrame__render ); return SGS_SUCCESS; }
- SGS_CASE( "handleMouseMove" ){ sgs_PushCFunction( C, _sgs_method__UIFrame__handleMouseMove ); return SGS_SUCCESS; }
- SGS_CASE( "setFocus" ){ sgs_PushCFunction( C, _sgs_method__UIFrame__setFocus ); return SGS_SUCCESS; }
- SGS_CASE( "doMouseMove" ){ sgs_PushCFunction( C, _sgs_method__UIFrame__doMouseMove ); return SGS_SUCCESS; }
- SGS_CASE( "doMouseButton" ){ sgs_PushCFunction( C, _sgs_method__UIFrame__doMouseButton ); return SGS_SUCCESS; }
- SGS_CASE( "doMouseWheel" ){ sgs_PushCFunction( C, _sgs_method__UIFrame__doMouseWheel ); return SGS_SUCCESS; }
- SGS_CASE( "doKeyPress" ){ sgs_PushCFunction( C, _sgs_method__UIFrame__doKeyPress ); return SGS_SUCCESS; }
- SGS_CASE( "doPutChar" ){ sgs_PushCFunction( C, _sgs_method__UIFrame__doPutChar ); return SGS_SUCCESS; }
- SGS_CASE( "setTimeout" ){ sgs_PushCFunction( C, _sgs_method__UIFrame__setTimeout ); return SGS_SUCCESS; }
- SGS_CASE( "setInterval" ){ sgs_PushCFunction( C, _sgs_method__UIFrame__setInterval ); return SGS_SUCCESS; }
- SGS_CASE( "clearTimeout" ){ sgs_PushCFunction( C, _sgs_method__UIFrame__clearTimeout ); return SGS_SUCCESS; }
- SGS_CASE( "clearInterval" ){ sgs_PushCFunction( C, _sgs_method__UIFrame__clearInterval ); return SGS_SUCCESS; }
- SGS_CASE( "processTimers" ){ sgs_PushCFunction( C, _sgs_method__UIFrame__processTimers ); return SGS_SUCCESS; }
- SGS_CASE( "pushScissorRect" ){ sgs_PushCFunction( C, _sgs_method__UIFrame__pushScissorRect ); return SGS_SUCCESS; }
- SGS_CASE( "pushScissorRectUnclipped" ){ sgs_PushCFunction( C, _sgs_method__UIFrame__pushScissorRectUnclipped ); return SGS_SUCCESS; }
- SGS_CASE( "popScissorRect" ){ sgs_PushCFunction( C, _sgs_method__UIFrame__popScissorRect ); return SGS_SUCCESS; }
- SGS_CASE( "getScissorRectCount" ){ sgs_PushCFunction( C, _sgs_method__UIFrame__getScissorRectCount ); return SGS_SUCCESS; }
- SGS_CASE( "getClickOffsetX" ){ sgs_PushCFunction( C, _sgs_method__UIFrame__getClickOffsetX ); return SGS_SUCCESS; }
- SGS_CASE( "getClickOffsetY" ){ sgs_PushCFunction( C, _sgs_method__UIFrame__getClickOffsetY ); return SGS_SUCCESS; }
- SGS_CASE( "getHoverControl" ){ sgs_PushCFunction( C, _sgs_method__UIFrame__getHoverControl ); return SGS_SUCCESS; }
- SGS_CASE( "getFocusControl" ){ sgs_PushCFunction( C, _sgs_method__UIFrame__getFocusControl ); return SGS_SUCCESS; }
- SGS_CASE( "getControlUnderCursor" ){ sgs_PushCFunction( C, _sgs_method__UIFrame__getControlUnderCursor ); return SGS_SUCCESS; }
- SGS_CASE( "getControlUnderPoint" ){ sgs_PushCFunction( C, _sgs_method__UIFrame__getControlUnderPoint ); return SGS_SUCCESS; }
- SGS_CASE( "render_image" ){ sgs_PushVar( C, static_cast<UIFrame*>( obj->data )->render_image ); return SGS_SUCCESS; }
- SGS_CASE( "render_text" ){ sgs_PushVar( C, static_cast<UIFrame*>( obj->data )->render_text ); return SGS_SUCCESS; }
- SGS_CASE( "scissor_func" ){ sgs_PushVar( C, static_cast<UIFrame*>( obj->data )->scissor_func ); return SGS_SUCCESS; }
- SGS_CASE( "clipboard_func" ){ sgs_PushVar( C, static_cast<UIFrame*>( obj->data )->clipboard_func ); return SGS_SUCCESS; }
- SGS_CASE( "cursor_func" ){ sgs_PushVar( C, static_cast<UIFrame*>( obj->data )->cursor_func ); return SGS_SUCCESS; }
- SGS_CASE( "theme" ){ sgs_PushVar( C, static_cast<UIFrame*>( obj->data )->theme ); return SGS_SUCCESS; }
- SGS_CASE( "x" ){ sgs_PushVar( C, static_cast<UIFrame*>( obj->data )->x ); return SGS_SUCCESS; }
- SGS_CASE( "y" ){ sgs_PushVar( C, static_cast<UIFrame*>( obj->data )->y ); return SGS_SUCCESS; }
- SGS_CASE( "width" ){ sgs_PushVar( C, static_cast<UIFrame*>( obj->data )->width ); return SGS_SUCCESS; }
- SGS_CASE( "height" ){ sgs_PushVar( C, static_cast<UIFrame*>( obj->data )->height ); return SGS_SUCCESS; }
- SGS_CASE( "root" ){ sgs_PushVar( C, static_cast<UIFrame*>( obj->data )->root ); return SGS_SUCCESS; }
- SGS_CASE( "mouseX" ){ sgs_PushVar( C, static_cast<UIFrame*>( obj->data )->mouseX ); return SGS_SUCCESS; }
- SGS_CASE( "mouseY" ){ sgs_PushVar( C, static_cast<UIFrame*>( obj->data )->mouseY ); return SGS_SUCCESS; }
- SGS_END_INDEXFUNC;
- }
- int UIFrame::_sgs_setindex( SGS_ARGS_SETINDEXFUNC )
- {
- SGS_BEGIN_INDEXFUNC
- SGS_CASE( "render_image" ){ static_cast<UIFrame*>( obj->data )->render_image = sgs_GetVarP<sgsVariable>()( C, val ); return SGS_SUCCESS; }
- SGS_CASE( "render_text" ){ static_cast<UIFrame*>( obj->data )->render_text = sgs_GetVarP<sgsVariable>()( C, val ); return SGS_SUCCESS; }
- SGS_CASE( "scissor_func" ){ static_cast<UIFrame*>( obj->data )->scissor_func = sgs_GetVarP<sgsVariable>()( C, val ); return SGS_SUCCESS; }
- SGS_CASE( "clipboard_func" ){ static_cast<UIFrame*>( obj->data )->clipboard_func = sgs_GetVarP<sgsVariable>()( C, val ); return SGS_SUCCESS; }
- SGS_CASE( "cursor_func" ){ static_cast<UIFrame*>( obj->data )->cursor_func = sgs_GetVarP<sgsVariable>()( C, val ); return SGS_SUCCESS; }
- SGS_CASE( "theme" ){ static_cast<UIFrame*>( obj->data )->theme = sgs_GetVarP<sgsVariable>()( C, val );
- static_cast<UIFrame*>( obj->data )->updateTheme(); return SGS_SUCCESS; }
- SGS_CASE( "x" ){ static_cast<UIFrame*>( obj->data )->x = sgs_GetVarP<float>()( C, val );
- static_cast<UIFrame*>( obj->data )->updateLayout(); return SGS_SUCCESS; }
- SGS_CASE( "y" ){ static_cast<UIFrame*>( obj->data )->y = sgs_GetVarP<float>()( C, val );
- static_cast<UIFrame*>( obj->data )->updateLayout(); return SGS_SUCCESS; }
- SGS_CASE( "width" ){ static_cast<UIFrame*>( obj->data )->width = sgs_GetVarP<float>()( C, val );
- static_cast<UIFrame*>( obj->data )->updateLayout(); return SGS_SUCCESS; }
- SGS_CASE( "height" ){ static_cast<UIFrame*>( obj->data )->height = sgs_GetVarP<float>()( C, val );
- static_cast<UIFrame*>( obj->data )->updateLayout(); return SGS_SUCCESS; }
- SGS_END_INDEXFUNC;
- }
- sgs_ObjInterface UIFrame::_sgs_interface[1] =
- {{
- "UIFrame",
- UIFrame::_sgs_destruct, UIFrame::sgs_gcmark, UIFrame::_sgs_getindex, UIFrame::_sgs_setindex, NULL, NULL, NULL, NULL, NULL, NULL,
- }};
- static int _sgs_method__UIControl__updateLayout( SGS_CTX )
- {
- UIControl* data; if( !SGS_PARSE_METHOD( C, UIControl::_sgs_interface, data, UIControl, updateLayout ) ) return 0;
- data->updateLayout( ); return 0;
- }
- static int _sgs_method__UIControl__updateTheme( SGS_CTX )
- {
- UIControl* data; if( !SGS_PARSE_METHOD( C, UIControl::_sgs_interface, data, UIControl, updateTheme ) ) return 0;
- data->updateTheme( ); return 0;
- }
- static int _sgs_method__UIControl__addChild( SGS_CTX )
- {
- UIControl* data; if( !SGS_PARSE_METHOD( C, UIControl::_sgs_interface, data, UIControl, addChild ) ) return 0;
- sgs_PushVar(C,data->addChild( sgs_GetVar<UIControl::Handle>()(C,0) )); return 1;
- }
- static int _sgs_method__UIControl__removeChild( SGS_CTX )
- {
- UIControl* data; if( !SGS_PARSE_METHOD( C, UIControl::_sgs_interface, data, UIControl, removeChild ) ) return 0;
- sgs_PushVar(C,data->removeChild( sgs_GetVar<UIControl::Handle>()(C,0) )); return 1;
- }
- static int _sgs_method__UIControl__findChild( SGS_CTX )
- {
- UIControl* data; if( !SGS_PARSE_METHOD( C, UIControl::_sgs_interface, data, UIControl, findChild ) ) return 0;
- sgs_PushVar(C,data->findChild( sgs_GetVar<sgsString>()(C,0) )); return 1;
- }
- static int _sgs_method__UIControl__children( SGS_CTX )
- {
- UIControl* data; if( !SGS_PARSE_METHOD( C, UIControl::_sgs_interface, data, UIControl, children ) ) return 0;
- sgs_PushVar(C,data->children( sgs_GetVar<bool>()(C,0) )); return 1;
- }
- static int _sgs_method__UIControl__sortChildren( SGS_CTX )
- {
- UIControl* data; if( !SGS_PARSE_METHOD( C, UIControl::_sgs_interface, data, UIControl, sortChildren ) ) return 0;
- data->sortChildren( ); return 0;
- }
- static int _sgs_method__UIControl__sortSiblings( SGS_CTX )
- {
- UIControl* data; if( !SGS_PARSE_METHOD( C, UIControl::_sgs_interface, data, UIControl, sortSiblings ) ) return 0;
- data->sortSiblings( ); return 0;
- }
- static int _sgs_method__UIControl__setAnchorMode( SGS_CTX )
- {
- UIControl* data; if( !SGS_PARSE_METHOD( C, UIControl::_sgs_interface, data, UIControl, setAnchorMode ) ) return 0;
- data->setAnchorMode( sgs_GetVar<int>()(C,0) ); return 0;
- }
- static int _sgs_method__UIControl__bindEvent( SGS_CTX )
- {
- UIControl* data; if( !SGS_PARSE_METHOD( C, UIControl::_sgs_interface, data, UIControl, bindEvent ) ) return 0;
- sgs_PushVar(C,data->bindEvent( sgs_GetVar<sgsString>()(C,0), sgs_GetVar<sgsVariable>()(C,1) )); return 1;
- }
- static int _sgs_method__UIControl__unbindEvent( SGS_CTX )
- {
- UIControl* data; if( !SGS_PARSE_METHOD( C, UIControl::_sgs_interface, data, UIControl, unbindEvent ) ) return 0;
- sgs_PushVar(C,data->unbindEvent( sgs_GetVar<sgsString>()(C,0), sgs_GetVar<sgsVariable>()(C,1) )); return 1;
- }
- static int _sgs_method__UIControl__callEvent( SGS_CTX )
- {
- UIControl* data; if( !SGS_PARSE_METHOD( C, UIControl::_sgs_interface, data, UIControl, callEvent ) ) return 0;
- sgs_PushVar(C,data->callEvent( sgs_GetVar<sgsString>()(C,0), sgs_GetVarObj<UIEvent>()(C,1) )); return 1;
- }
- int UIControl::_sgs_destruct( SGS_CTX, sgs_VarObj* obj )
- {
- static_cast<UIControl*>( obj->data )->~UIControl();
- return SGS_SUCCESS;
- }
- int UIControl::_sgs_getindex( SGS_ARGS_GETINDEXFUNC )
- {
- SGS_BEGIN_INDEXFUNC
- SGS_CASE( "updateLayout" ){ sgs_PushCFunction( C, _sgs_method__UIControl__updateLayout ); return SGS_SUCCESS; }
- SGS_CASE( "updateTheme" ){ sgs_PushCFunction( C, _sgs_method__UIControl__updateTheme ); return SGS_SUCCESS; }
- SGS_CASE( "addChild" ){ sgs_PushCFunction( C, _sgs_method__UIControl__addChild ); return SGS_SUCCESS; }
- SGS_CASE( "removeChild" ){ sgs_PushCFunction( C, _sgs_method__UIControl__removeChild ); return SGS_SUCCESS; }
- SGS_CASE( "findChild" ){ sgs_PushCFunction( C, _sgs_method__UIControl__findChild ); return SGS_SUCCESS; }
- SGS_CASE( "children" ){ sgs_PushCFunction( C, _sgs_method__UIControl__children ); return SGS_SUCCESS; }
- SGS_CASE( "sortChildren" ){ sgs_PushCFunction( C, _sgs_method__UIControl__sortChildren ); return SGS_SUCCESS; }
- SGS_CASE( "sortSiblings" ){ sgs_PushCFunction( C, _sgs_method__UIControl__sortSiblings ); return SGS_SUCCESS; }
- SGS_CASE( "setAnchorMode" ){ sgs_PushCFunction( C, _sgs_method__UIControl__setAnchorMode ); return SGS_SUCCESS; }
- SGS_CASE( "bindEvent" ){ sgs_PushCFunction( C, _sgs_method__UIControl__bindEvent ); return SGS_SUCCESS; }
- SGS_CASE( "unbindEvent" ){ sgs_PushCFunction( C, _sgs_method__UIControl__unbindEvent ); return SGS_SUCCESS; }
- SGS_CASE( "callEvent" ){ sgs_PushCFunction( C, _sgs_method__UIControl__callEvent ); return SGS_SUCCESS; }
- SGS_CASE( "id" ){ sgs_PushVar( C, static_cast<UIControl*>( obj->data )->id ); return SGS_SUCCESS; }
- SGS_CASE( "name" ){ sgs_PushVar( C, static_cast<UIControl*>( obj->data )->name ); return SGS_SUCCESS; }
- SGS_CASE( "caption" ){ sgs_PushVar( C, static_cast<UIControl*>( obj->data )->caption ); return SGS_SUCCESS; }
- SGS_CASE( "x" ){ sgs_PushVar( C, static_cast<UIControl*>( obj->data )->x ); return SGS_SUCCESS; }
- SGS_CASE( "y" ){ sgs_PushVar( C, static_cast<UIControl*>( obj->data )->y ); return SGS_SUCCESS; }
- SGS_CASE( "width" ){ sgs_PushVar( C, static_cast<UIControl*>( obj->data )->width ); return SGS_SUCCESS; }
- SGS_CASE( "height" ){ sgs_PushVar( C, static_cast<UIControl*>( obj->data )->height ); return SGS_SUCCESS; }
- SGS_CASE( "q0x" ){ sgs_PushVar( C, static_cast<UIControl*>( obj->data )->q0x ); return SGS_SUCCESS; }
- SGS_CASE( "q0y" ){ sgs_PushVar( C, static_cast<UIControl*>( obj->data )->q0y ); return SGS_SUCCESS; }
- SGS_CASE( "q1x" ){ sgs_PushVar( C, static_cast<UIControl*>( obj->data )->q1x ); return SGS_SUCCESS; }
- SGS_CASE( "q1y" ){ sgs_PushVar( C, static_cast<UIControl*>( obj->data )->q1y ); return SGS_SUCCESS; }
- SGS_CASE( "scroll_x" ){ sgs_PushVar( C, static_cast<UIControl*>( obj->data )->scroll_x ); return SGS_SUCCESS; }
- SGS_CASE( "scroll_y" ){ sgs_PushVar( C, static_cast<UIControl*>( obj->data )->scroll_y ); return SGS_SUCCESS; }
- SGS_CASE( "nc_top" ){ sgs_PushVar( C, static_cast<UIControl*>( obj->data )->nc_top ); return SGS_SUCCESS; }
- SGS_CASE( "nc_left" ){ sgs_PushVar( C, static_cast<UIControl*>( obj->data )->nc_left ); return SGS_SUCCESS; }
- SGS_CASE( "nc_right" ){ sgs_PushVar( C, static_cast<UIControl*>( obj->data )->nc_right ); return SGS_SUCCESS; }
- SGS_CASE( "nc_bottom" ){ sgs_PushVar( C, static_cast<UIControl*>( obj->data )->nc_bottom ); return SGS_SUCCESS; }
- SGS_CASE( "visible" ){ sgs_PushVar( C, static_cast<UIControl*>( obj->data )->visible ); return SGS_SUCCESS; }
- SGS_CASE( "index" ){ sgs_PushVar( C, static_cast<UIControl*>( obj->data )->index ); return SGS_SUCCESS; }
- SGS_CASE( "topmost" ){ sgs_PushVar( C, static_cast<UIControl*>( obj->data )->topmost ); return SGS_SUCCESS; }
- SGS_CASE( "nonclient" ){ sgs_PushVar( C, static_cast<UIControl*>( obj->data )->nonclient ); return SGS_SUCCESS; }
- SGS_CASE( "minWidth" ){ sgs_PushVar( C, static_cast<UIControl*>( obj->data )->minWidth ); return SGS_SUCCESS; }
- SGS_CASE( "maxWidth" ){ sgs_PushVar( C, static_cast<UIControl*>( obj->data )->maxWidth ); return SGS_SUCCESS; }
- SGS_CASE( "minHeight" ){ sgs_PushVar( C, static_cast<UIControl*>( obj->data )->minHeight ); return SGS_SUCCESS; }
- SGS_CASE( "maxHeight" ){ sgs_PushVar( C, static_cast<UIControl*>( obj->data )->maxHeight ); return SGS_SUCCESS; }
- SGS_CASE( "marginLeft" ){ sgs_PushVar( C, static_cast<UIControl*>( obj->data )->_get_marginLeft() ); return SGS_SUCCESS; }
- SGS_CASE( "marginRight" ){ sgs_PushVar( C, static_cast<UIControl*>( obj->data )->_get_marginRight() ); return SGS_SUCCESS; }
- SGS_CASE( "marginTop" ){ sgs_PushVar( C, static_cast<UIControl*>( obj->data )->_get_marginTop() ); return SGS_SUCCESS; }
- SGS_CASE( "marginBottom" ){ sgs_PushVar( C, static_cast<UIControl*>( obj->data )->_get_marginBottom() ); return SGS_SUCCESS; }
- SGS_CASE( "type" ){ sgs_PushVar( C, static_cast<UIControl*>( obj->data )->type ); return SGS_SUCCESS; }
- SGS_CASE( "parent" ){ sgs_PushVar( C, static_cast<UIControl*>( obj->data )->parent ); return SGS_SUCCESS; }
- SGS_CASE( "frame" ){ sgs_PushVar( C, static_cast<UIControl*>( obj->data )->frame ); return SGS_SUCCESS; }
- SGS_CASE( "cursor" ){ sgs_PushVar( C, static_cast<UIControl*>( obj->data )->cursor ); return SGS_SUCCESS; }
- SGS_CASE( "callback" ){ sgs_PushVar( C, static_cast<UIControl*>( obj->data )->callback ); return SGS_SUCCESS; }
- SGS_CASE( "renderfunc" ){ sgs_PushVar( C, static_cast<UIControl*>( obj->data )->renderfunc ); return SGS_SUCCESS; }
- SGS_CASE( "data" ){ sgs_PushVar( C, static_cast<UIControl*>( obj->data )->data ); return SGS_SUCCESS; }
- SGS_CASE( "_interface" ){ sgs_PushVar( C, static_cast<UIControl*>( obj->data )->_interface ); return SGS_SUCCESS; }
- SGS_CASE( "rx0" ){ sgs_PushVar( C, static_cast<UIControl*>( obj->data )->rx0 ); return SGS_SUCCESS; }
- SGS_CASE( "rx1" ){ sgs_PushVar( C, static_cast<UIControl*>( obj->data )->rx1 ); return SGS_SUCCESS; }
- SGS_CASE( "ry0" ){ sgs_PushVar( C, static_cast<UIControl*>( obj->data )->ry0 ); return SGS_SUCCESS; }
- SGS_CASE( "ry1" ){ sgs_PushVar( C, static_cast<UIControl*>( obj->data )->ry1 ); return SGS_SUCCESS; }
- SGS_CASE( "_updatingLayout" ){ sgs_PushVar( C, static_cast<UIControl*>( obj->data )->_updatingLayout ); return SGS_SUCCESS; }
- SGS_CASE( "_updatingMinMaxWH" ){ sgs_PushVar( C, static_cast<UIControl*>( obj->data )->_updatingMinMaxWH ); return SGS_SUCCESS; }
- SGS_CASE( "_whNoAuth" ){ sgs_PushVar( C, static_cast<UIControl*>( obj->data )->_whNoAuth ); return SGS_SUCCESS; }
- SGS_CASE( "mouseOn" ){ sgs_PushVar( C, static_cast<UIControl*>( obj->data )->mouseOn ); return SGS_SUCCESS; }
- SGS_CASE( "clicked" ){ sgs_PushVar( C, static_cast<UIControl*>( obj->data )->clicked ); return SGS_SUCCESS; }
- SGS_CASE( "keyboardFocus" ){ sgs_PushVar( C, static_cast<UIControl*>( obj->data )->keyboardFocus ); return SGS_SUCCESS; }
- SGS_END_INDEXFUNC;
- }
- int UIControl::_sgs_setindex( SGS_ARGS_SETINDEXFUNC )
- {
- SGS_BEGIN_INDEXFUNC
- SGS_CASE( "name" ){ static_cast<UIControl*>( obj->data )->name = sgs_GetVarP<sgsString>()( C, val ); return SGS_SUCCESS; }
- SGS_CASE( "caption" ){ static_cast<UIControl*>( obj->data )->caption = sgs_GetVarP<sgsString>()( C, val ); return SGS_SUCCESS; }
- SGS_CASE( "x" ){ static_cast<UIControl*>( obj->data )->x = sgs_GetVarP<float>()( C, val );
- static_cast<UIControl*>( obj->data )->updateLayout(); return SGS_SUCCESS; }
- SGS_CASE( "y" ){ static_cast<UIControl*>( obj->data )->y = sgs_GetVarP<float>()( C, val );
- static_cast<UIControl*>( obj->data )->updateLayout(); return SGS_SUCCESS; }
- SGS_CASE( "width" ){ static_cast<UIControl*>( obj->data )->_set_width( sgs_GetVarP<float>()( C, val ) ); return SGS_SUCCESS; }
- SGS_CASE( "height" ){ static_cast<UIControl*>( obj->data )->_set_height( sgs_GetVarP<float>()( C, val ) ); return SGS_SUCCESS; }
- SGS_CASE( "q0x" ){ static_cast<UIControl*>( obj->data )->q0x = sgs_GetVarP<float>()( C, val );
- static_cast<UIControl*>( obj->data )->updateLayout(); return SGS_SUCCESS; }
- SGS_CASE( "q0y" ){ static_cast<UIControl*>( obj->data )->q0y = sgs_GetVarP<float>()( C, val );
- static_cast<UIControl*>( obj->data )->updateLayout(); return SGS_SUCCESS; }
- SGS_CASE( "q1x" ){ static_cast<UIControl*>( obj->data )->q1x = sgs_GetVarP<float>()( C, val );
- static_cast<UIControl*>( obj->data )->updateLayout(); return SGS_SUCCESS; }
- SGS_CASE( "q1y" ){ static_cast<UIControl*>( obj->data )->q1y = sgs_GetVarP<float>()( C, val );
- static_cast<UIControl*>( obj->data )->updateLayout(); return SGS_SUCCESS; }
- SGS_CASE( "scroll_x" ){ static_cast<UIControl*>( obj->data )->scroll_x = sgs_GetVarP<float>()( C, val );
- static_cast<UIControl*>( obj->data )->updateLayout(); return SGS_SUCCESS; }
- SGS_CASE( "scroll_y" ){ static_cast<UIControl*>( obj->data )->scroll_y = sgs_GetVarP<float>()( C, val );
- static_cast<UIControl*>( obj->data )->updateLayout(); return SGS_SUCCESS; }
- SGS_CASE( "nc_top" ){ static_cast<UIControl*>( obj->data )->nc_top = sgs_GetVarP<float>()( C, val );
- static_cast<UIControl*>( obj->data )->updateLayout(); return SGS_SUCCESS; }
- SGS_CASE( "nc_left" ){ static_cast<UIControl*>( obj->data )->nc_left = sgs_GetVarP<float>()( C, val );
- static_cast<UIControl*>( obj->data )->updateLayout(); return SGS_SUCCESS; }
- SGS_CASE( "nc_right" ){ static_cast<UIControl*>( obj->data )->nc_right = sgs_GetVarP<float>()( C, val );
- static_cast<UIControl*>( obj->data )->updateLayout(); return SGS_SUCCESS; }
- SGS_CASE( "nc_bottom" ){ static_cast<UIControl*>( obj->data )->nc_bottom = sgs_GetVarP<float>()( C, val );
- static_cast<UIControl*>( obj->data )->updateLayout(); return SGS_SUCCESS; }
- SGS_CASE( "visible" ){ static_cast<UIControl*>( obj->data )->visible = sgs_GetVarP<bool>()( C, val );
- static_cast<UIControl*>( obj->data )->updateLayout(); return SGS_SUCCESS; }
- SGS_CASE( "index" ){ static_cast<UIControl*>( obj->data )->index = sgs_GetVarP<int>()( C, val );
- static_cast<UIControl*>( obj->data )->sortSiblings(); return SGS_SUCCESS; }
- SGS_CASE( "topmost" ){ static_cast<UIControl*>( obj->data )->topmost = sgs_GetVarP<bool>()( C, val );
- static_cast<UIControl*>( obj->data )->sortSiblings(); return SGS_SUCCESS; }
- SGS_CASE( "nonclient" ){ static_cast<UIControl*>( obj->data )->nonclient = sgs_GetVarP<bool>()( C, val );
- static_cast<UIControl*>( obj->data )->updateLayout(); return SGS_SUCCESS; }
- SGS_CASE( "minWidth" ){ static_cast<UIControl*>( obj->data )->_set_minWidth( sgs_GetVarP<float>()( C, val ) ); return SGS_SUCCESS; }
- SGS_CASE( "maxWidth" ){ static_cast<UIControl*>( obj->data )->_set_maxWidth( sgs_GetVarP<float>()( C, val ) ); return SGS_SUCCESS; }
- SGS_CASE( "minHeight" ){ static_cast<UIControl*>( obj->data )->_set_minHeight( sgs_GetVarP<float>()( C, val ) ); return SGS_SUCCESS; }
- SGS_CASE( "maxHeight" ){ static_cast<UIControl*>( obj->data )->_set_maxHeight( sgs_GetVarP<float>()( C, val ) ); return SGS_SUCCESS; }
- SGS_CASE( "marginLeft" ){ static_cast<UIControl*>( obj->data )->_set_marginLeft( sgs_GetVarP<float>()( C, val ) ); return SGS_SUCCESS; }
- SGS_CASE( "marginRight" ){ static_cast<UIControl*>( obj->data )->_set_marginRight( sgs_GetVarP<float>()( C, val ) ); return SGS_SUCCESS; }
- SGS_CASE( "marginTop" ){ static_cast<UIControl*>( obj->data )->_set_marginTop( sgs_GetVarP<float>()( C, val ) ); return SGS_SUCCESS; }
- SGS_CASE( "marginBottom" ){ static_cast<UIControl*>( obj->data )->_set_marginBottom( sgs_GetVarP<float>()( C, val ) ); return SGS_SUCCESS; }
- SGS_CASE( "type" ){ static_cast<UIControl*>( obj->data )->type = sgs_GetVarP<sgsString>()( C, val ); return SGS_SUCCESS; }
- SGS_CASE( "cursor" ){ static_cast<UIControl*>( obj->data )->cursor = sgs_GetVarP<sgsVariable>()( C, val );
- static_cast<UIControl*>( obj->data )->updateCursor(); return SGS_SUCCESS; }
- SGS_CASE( "callback" ){ static_cast<UIControl*>( obj->data )->callback = sgs_GetVarP<sgsVariable>()( C, val ); return SGS_SUCCESS; }
- SGS_CASE( "renderfunc" ){ static_cast<UIControl*>( obj->data )->renderfunc = sgs_GetVarP<sgsVariable>()( C, val ); return SGS_SUCCESS; }
- SGS_CASE( "data" ){ static_cast<UIControl*>( obj->data )->data = sgs_GetVarP<sgsVariable>()( C, val ); return SGS_SUCCESS; }
- SGS_CASE( "_interface" ){ static_cast<UIControl*>( obj->data )->_interface = sgs_GetVarP<sgsVariable>()( C, val ); return SGS_SUCCESS; }
- SGS_CASE( "_updatingLayout" ){ static_cast<UIControl*>( obj->data )->_updatingLayout = sgs_GetVarP<bool>()( C, val ); return SGS_SUCCESS; }
- SGS_CASE( "_updatingMinMaxWH" ){ static_cast<UIControl*>( obj->data )->_updatingMinMaxWH = sgs_GetVarP<bool>()( C, val ); return SGS_SUCCESS; }
- SGS_CASE( "_whNoAuth" ){ static_cast<UIControl*>( obj->data )->_whNoAuth = sgs_GetVarP<bool>()( C, val ); return SGS_SUCCESS; }
- SGS_END_INDEXFUNC;
- }
- sgs_ObjInterface UIControl::_sgs_interface[1] =
- {{
- "UIControl",
- UIControl::_sgs_destruct, UIControl::sgs_gcmark, UIControl::sgs_getindex, UIControl::_sgs_setindex, NULL, NULL, NULL, NULL, NULL, NULL,
- }};
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement