⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 movegui.c

📁 精通Matlab与C_C++混合程序设计.rar 是精通Matlab与C_C++混合程序设计 这本书的配套源码
💻 C
📖 第 1 页 / 共 5 页
字号:
/*
 * MATLAB Compiler: 3.0
 * Date: Fri Oct 01 19:20:56 2004
 * Arguments: "-B" "macro_default" "-O" "all" "-O" "fold_scalar_mxarrays:on" "-O" "fold_non_scalar_mxarrays:on" "-O" "optimize_integer_for_loops:on" "-O" "array_indexing:on" "-O" "optimize_conditionals:on" "-B" "C:\Documents and Settings\Administrator\Application Data\MathWorks\MATLAB\R13\mccpath" "-I" "D:\MATLAB6p5\toolbox\matlab\general" "-I" "D:\MATLAB6p5\toolbox\matlab\ops" "-I" "D:\MATLAB6p5\toolbox\matlab\lang" "-I" "D:\MATLAB6p5\toolbox\matlab\elmat" "-I" "D:\MATLAB6p5\toolbox\matlab\elfun" "-I" "D:\MATLAB6p5\toolbox\matlab\specfun" "-I" "D:\MATLAB6p5\toolbox\matlab\matfun" "-I" "D:\MATLAB6p5\toolbox\matlab\datafun" "-I" "D:\MATLAB6p5\toolbox\matlab\audio" "-I" "D:\MATLAB6p5\toolbox\matlab\polyfun" "-I" "D:\MATLAB6p5\toolbox\matlab\funfun" "-I" "D:\MATLAB6p5\toolbox\matlab\sparfun" "-I" "D:\MATLAB6p5\toolbox\matlab\graph2d" "-I" "D:\MATLAB6p5\toolbox\matlab\graph3d" "-I" "D:\MATLAB6p5\toolbox\matlab\specgraph" "-I" "D:\MATLAB6p5\toolbox\matlab\graphics" "-I" "D:\MATLAB6p5\toolbox\matlab\uitools" "-I" "D:\MATLAB6p5\toolbox\matlab\strfun" "-I" "D:\MATLAB6p5\toolbox\matlab\iofun" "-I" "D:\MATLAB6p5\toolbox\matlab\timefun" "-I" "D:\MATLAB6p5\toolbox\matlab\datatypes" "-I" "D:\MATLAB6p5\toolbox\matlab\verctrl" "-I" "D:\MATLAB6p5\toolbox\matlab\winfun" "-I" "D:\MATLAB6p5\toolbox\matlab\winfun\comcli" "-I" "D:\MATLAB6p5\toolbox\matlab\demos" "-I" "D:\MATLAB6p5\toolbox\local" "-I" "D:\MATLAB6p5\toolbox\simulink\simulink" "-I" "D:\MATLAB6p5\toolbox\simulink\blocks" "-I" "D:\MATLAB6p5\toolbox\simulink\components" "-I" "D:\MATLAB6p5\toolbox\simulink\fixedandfloat" "-I" "D:\MATLAB6p5\toolbox\simulink\fixedandfloat\fxpdemos" "-I" "D:\MATLAB6p5\toolbox\simulink\fixedandfloat\obsolete" "-I" "D:\MATLAB6p5\toolbox\simulink\simdemos" "-I" "D:\MATLAB6p5\toolbox\simulink\simdemos\aerospace" "-I" "D:\MATLAB6p5\toolbox\simulink\simdemos\automotive" "-I" "D:\MATLAB6p5\toolbox\simulink\simdemos\simfeatures" "-I" "D:\MATLAB6p5\toolbox\simulink\simdemos\simgeneral" "-I" "D:\MATLAB6p5\toolbox\simulink\simdemos\simnew" "-I"
 * "D:\MATLAB6p5\toolbox\simulink\dee" "-I" "D:\MATLAB6p5\toolbox\simulink\dastudio" "-I" "D:\MATLAB6p5\toolbox\stateflow\stateflow" "-I" "D:\MATLAB6p5\toolbox\stateflow\sfdemos" "-I" "D:\MATLAB6p5\toolbox\stateflow\coder" "-I" "D:\MATLAB6p5\toolbox\rtw\targets\rtwin\rtwin" "-I" "D:\MATLAB6p5\toolbox\rtw\rtw" "-I" "D:\MATLAB6p5\toolbox\rtw\rtwdemos" "-I" "D:\MATLAB6p5\toolbox\rtw\rtwdemos\rsimdemos" "-I" "D:\MATLAB6p5\toolbox\rtw\targets\asap2\asap2" "-I" "D:\MATLAB6p5\toolbox\rtw\targets\asap2\asap2\user" "-I" "D:\MATLAB6p5\toolbox\aeroblks\aeroblks" "-I" "D:\MATLAB6p5\toolbox\aeroblks\aerodemos" "-I" "D:\MATLAB6p5\toolbox\cdma\cdma" "-I" "D:\MATLAB6p5\toolbox\cdma\cdmamasks" "-I" "D:\MATLAB6p5\toolbox\cdma\cdmamex" "-I" "D:\MATLAB6p5\toolbox\cdma\cdmademos" "-I" "D:\MATLAB6p5\toolbox\commblks\commblks" "-I" "D:\MATLAB6p5\toolbox\commblks\commmasks" "-I" "D:\MATLAB6p5\toolbox\commblks\commmex" "-I" "D:\MATLAB6p5\toolbox\commblks\commblksdemos" "-I" "D:\MATLAB6p5\toolbox\commblks\commblksobsolete\commblksobsolete" "-I" "D:\MATLAB6p5\toolbox\comm\comm" "-I" "D:\MATLAB6p5\toolbox\comm\commdemos" "-I" "D:\MATLAB6p5\toolbox\comm\commobsolete" "-I" "D:\MATLAB6p5\toolbox\control\control" "-I" "D:\MATLAB6p5\toolbox\control\ctrlguis" "-I" "D:\MATLAB6p5\toolbox\control\ctrlobsolete" "-I" "D:\MATLAB6p5\toolbox\control\ctrlutil" "-I" "D:\MATLAB6p5\toolbox\control\ctrldemos" "-I" "D:\MATLAB6p5\toolbox\curvefit\curvefit" "-I" "D:\MATLAB6p5\toolbox\curvefit\cftoolgui" "-I" "D:\MATLAB6p5\toolbox\dspblks\dspblks" "-I" "D:\MATLAB6p5\toolbox\dspblks\dspmasks" "-I" "D:\MATLAB6p5\toolbox\dspblks\dspmex" "-I" "D:\MATLAB6p5\toolbox\dspblks\dspdemos" "-I" "D:\MATLAB6p5\toolbox\daq\daq" "-I" "D:\MATLAB6p5\toolbox\daq\daqguis" "-I" "D:\MATLAB6p5\toolbox\daq\daqdemos" "-I" "D:\MATLAB6p5\toolbox\database\database" "-I" "D:\MATLAB6p5\toolbox\database\dbdemos" "-I" "D:\MATLAB6p5\toolbox\database\vqb" "-I" "D:\MATLAB6p5\toolbox\datafeed\datafeed" "-I" "D:\MATLAB6p5\toolbox\datafeed\dfgui" "-I" "D:\MATLAB6p5\toolbox\dials" "-I"
 * "D:\MATLAB6p5\toolbox\rtw\targets\mpc555dk\mpc555dk" "-I" "D:\MATLAB6p5\toolbox\rtw\targets\mpc555dk\common\canlib\blockset" "-I" "D:\MATLAB6p5\toolbox\rtw\targets\mpc555dk\common\canlib\blockset\mfiles" "-I" "D:\MATLAB6p5\toolbox\rtw\targets\mpc555dk\common\vectorlib\blockset" "-I" "D:\MATLAB6p5\toolbox\rtw\targets\mpc555dk\common\vectorlib\blockset\mfiles" "-I" "D:\MATLAB6p5\toolbox\rtw\targets\mpc555dk\common\configuration" "-I" "D:\MATLAB6p5\toolbox\rtw\targets\mpc555dk\pil" "-I" "D:\MATLAB6p5\toolbox\rtw\targets\mpc555dk\rt\blockset" "-I" "D:\MATLAB6p5\toolbox\rtw\targets\mpc555dk\rt\blockset\mfiles" "-I" "D:\MATLAB6p5\toolbox\rtw\targets\mpc555dk\rt\blockset\mfiles\SimulinkUtilities" "-I" "D:\MATLAB6p5\toolbox\rtw\targets\mpc555dk\mpc555demos" "-I" "D:\MATLAB6p5\toolbox\rtw\targets\tic6000\tic6000" "-I" "D:\MATLAB6p5\toolbox\rtw\targets\tic6000\blks" "-I" "D:\MATLAB6p5\toolbox\exlink" "-I" "D:\MATLAB6p5\toolbox\symbolic" "-I" "D:\MATLAB6p5\toolbox\filterdesign\filterdesign" "-I" "D:\MATLAB6p5\toolbox\filterdesign\quantization" "-I" "D:\MATLAB6p5\toolbox\filterdesign\filtdesdemos" "-I" "D:\MATLAB6p5\toolbox\finderiv\finderiv" "-I" "D:\MATLAB6p5\toolbox\ftseries\ftseries" "-I" "D:\MATLAB6p5\toolbox\ftseries\ftsdemos" "-I" "D:\MATLAB6p5\toolbox\ftseries\ftsdata" "-I" "D:\MATLAB6p5\toolbox\ftseries\ftstutorials" "-I" "D:\MATLAB6p5\toolbox\finance\finance" "-I" "D:\MATLAB6p5\toolbox\finance\calendar" "-I" "D:\MATLAB6p5\toolbox\finance\findemos" "-I" "D:\MATLAB6p5\toolbox\finance\finsupport" "-I" "D:\MATLAB6p5\toolbox\fixpoint" "-I" "D:\MATLAB6p5\toolbox\fuzzy\fuzzy" "-I" "D:\MATLAB6p5\toolbox\fuzzy\fuzdemos" "-I" "D:\MATLAB6p5\toolbox\garch\garch" "-I" "D:\MATLAB6p5\toolbox\garch\garchdemos" "-I" "D:\MATLAB6p5\toolbox\images\images" "-I" "D:\MATLAB6p5\toolbox\images\imdemos" "-I" "D:\MATLAB6p5\toolbox\instrument\instrument" "-I" "D:\MATLAB6p5\toolbox\instrument\instrumentdemos" "-I" "D:\MATLAB6p5\toolbox\lmi\lmictrl" "-I" "D:\MATLAB6p5\toolbox\lmi\lmilab" "-I" "D:\MATLAB6p5\toolbox\combuilder\combuilder"
 * "-I" "D:\MATLAB6p5\toolbox\compiler" "-I" "D:\MATLAB6p5\toolbox\matlabxl\matlabxl" "-I" "D:\MATLAB6p5\toolbox\ccslink\ccslink" "-I" "D:\MATLAB6p5\toolbox\ccslink\ccsdemos" "-I" "D:\MATLAB6p5\toolbox\ccslink\rtdxblks" "-I" "D:\MATLAB6p5\toolbox\rptgen" "-I" "D:\MATLAB6p5\toolbox\runtime" "-I" "D:\MATLAB6p5\toolbox\webserver\webserver" "-I" "D:\MATLAB6p5\toolbox\webserver\wsdemos" "-I" "D:\MATLAB6p5\toolbox\map\map" "-I" "D:\MATLAB6p5\toolbox\map\mapdisp" "-I" "D:\MATLAB6p5\toolbox\map\mapproj" "-I" "D:\MATLAB6p5\toolbox\mpc\mpccmds" "-I" "D:\MATLAB6p5\toolbox\mpc\mpcdemos" "-I" "D:\MATLAB6p5\toolbox\mbc\mbc" "-I" "D:\MATLAB6p5\toolbox\mbc\mbcdata" "-I" "D:\MATLAB6p5\toolbox\mbc\mbcdesign" "-I" "D:\MATLAB6p5\toolbox\mbc\mbcexpr" "-I" "D:\MATLAB6p5\toolbox\mbc\mbcguitools" "-I" "D:\MATLAB6p5\toolbox\mbc\mbclayouts" "-I" "D:\MATLAB6p5\toolbox\mbc\mbcmodels" "-I" "D:\MATLAB6p5\toolbox\mbc\mbcsimulink" "-I" "D:\MATLAB6p5\toolbox\mbc\mbctools" "-I" "D:\MATLAB6p5\toolbox\mbc\mbcview" "-I" "D:\MATLAB6p5\toolbox\mutools\commands" "-I" "D:\MATLAB6p5\toolbox\mutools\subs" "-I" "D:\MATLAB6p5\toolbox\nnet\nnet" "-I" "D:\MATLAB6p5\toolbox\nnet\nnutils" "-I" "D:\MATLAB6p5\toolbox\nnet\nncontrol" "-I" "D:\MATLAB6p5\toolbox\nnet\nndemos" "-I" "D:\MATLAB6p5\toolbox\nnet\nnobsolete" "-I" "D:\MATLAB6p5\toolbox\ncd" "-I" "D:\MATLAB6p5\toolbox\optim" "-I" "D:\MATLAB6p5\toolbox\pde" "-I" "D:\MATLAB6p5\toolbox\rtw\targets\ecoder" "-I" "D:\MATLAB6p5\toolbox\rtw\targets\ecoder\ecoderdemos" "-I" "D:\MATLAB6p5\toolbox\reqmgt" "-I" "D:\MATLAB6p5\toolbox\robust" "-I" "D:\MATLAB6p5\toolbox\sb2sl" "-I" "D:\MATLAB6p5\toolbox\signal\signal" "-I" "D:\MATLAB6p5\toolbox\signal\sigtools" "-I" "D:\MATLAB6p5\toolbox\signal\sptoolgui" "-I" "D:\MATLAB6p5\toolbox\signal\sigdemos" "-I" "D:\MATLAB6p5\toolbox\physmod\mech\mech" "-I" "D:\MATLAB6p5\toolbox\physmod\mech\mechdemos" "-I" "D:\MATLAB6p5\toolbox\powersys\powersys" "-I" "D:\MATLAB6p5\toolbox\powersys\powerdemo" "-I" "D:\MATLAB6p5\toolbox\simulink\perftools" "-I"
 * "D:\MATLAB6p5\toolbox\simulink\mdldiff" "-I" "D:\MATLAB6p5\toolbox\simulink\simcoverage" "-I" "D:\MATLAB6p5\toolbox\rtw\accel" "-I" "D:\MATLAB6p5\toolbox\rptgenext" "-I" "D:\MATLAB6p5\toolbox\splines" "-I" "D:\MATLAB6p5\toolbox\stats" "-I" "D:\MATLAB6p5\toolbox\ident\ident" "-I" "D:\MATLAB6p5\toolbox\ident\idobsolete" "-I" "D:\MATLAB6p5\toolbox\ident\idguis" "-I" "D:\MATLAB6p5\toolbox\ident\idutils" "-I" "D:\MATLAB6p5\toolbox\ident\iddemos" "-I" "D:\MATLAB6p5\toolbox\ident\idhelp" "-I" "D:\MATLAB6p5\toolbox\vr\vr" "-I" "D:\MATLAB6p5\toolbox\vr\vrdemos" "-I" "D:\MATLAB6p5\toolbox\wavelet\wavelet" "-I" "D:\MATLAB6p5\toolbox\wavelet\wavedemo" "-I" "D:\MATLAB6p5\toolbox\rtw\targets\xpc\xpc" "-I" "D:\MATLAB6p5\toolbox\rtw\targets\xpc\target\build\xpcblocks" "-I" "D:\MATLAB6p5\toolbox\rtw\targets\xpc\xpcdemos" "-I" "D:\MATLAB6p5\toolbox\rtw\targets\xpc\target\kernel\embedded" "-I" "D:\MATLAB6p5\work" "-L" "C" "libmmfile.mlib" "libmwsglm.mlib" "-A" "line:on" "-G" "-A" "debugline:on" "-O" "fold_scalar_mxarrays:off" "-O" "fold_non_scalar_mxarrays:off" "-O" "optimize_integer_for_loops:off" "-O" "array_indexing:off" "-O" "optimize_conditionals:off" "-O" "speculate:off" "libmmfile.mlib" "libmwsglm.mlib" "-v" "-I" "F:\book\ball" "-t" "-T" "codegen" "d:\matlab6p5\toolbox\matlab\uitools\movegui.m" 
 */
#include "movegui.h"
#include "libsgl.h"
#include "libmatlbm.h"
#include "libmmfile.h"
#include "libmwsglm.h"

static double _array0_[2] = { 0.0, 0.0 };

void InitializeModule_movegui(void) {
}

void TerminateModule_movegui(void) {
}

static mxArray * mlfMovegui_get_parent_fig(mxArray * h_in);
static void mlxMovegui_get_parent_fig(int nlhs, mxArray * plhs[], int nrhs, mxArray * prhs[]);
static void Mmovegui(mxArray * varargin);
static mxArray * Mmovegui_get_parent_fig(int nargout_, mxArray * h_in);

static mexFunctionTableEntry local_function_table_[1] = { { "get_parent_fig", mlxMovegui_get_parent_fig, 1, 1, NULL } };

_mexLocalFunctionTable _local_function_table_movegui = { 1, local_function_table_ };

/*
 * The function "mlfMovegui" contains the normal interface for the "movegui" M-function from file "d:\matlab6p5\toolbox\matlab\uitools\movegui.m" (lines 1-214). This function processes any input arguments and passes them to the implementation version of the function, appearing above.
 */
void mlfMovegui(mxArray * synthetic_varargin_argument, ...) {
    mxArray * varargin = NULL;
    mlfVarargin(&varargin, synthetic_varargin_argument, 1);
    mlfEnterNewContext(0, -1, varargin);
    Mmovegui(varargin);
    mlfRestorePreviousContext(0, 0);
    mxDestroyArray(varargin);
}

/*
 * The function "mlxMovegui" contains the feval interface for the "movegui" M-function from file "d:\matlab6p5\toolbox\matlab\uitools\movegui.m" (lines 1-214). The feval function calls the implementation version of movegui through this function. This function processes any input arguments and passes them to the implementation version of the function, appearing above.
 */
void mlxMovegui(int nlhs, mxArray * plhs[], int nrhs, mxArray * prhs[]) {
    mxArray * mprhs[1];
    if (nlhs > 0) {
        mlfError(mxCreateString("Run-time Error: File: movegui Line: 1 Column: 1 The function \"movegui\" was called with more than the declared number of outputs (0)."), NULL);
    }
    mlfEnterNewContext(0, 0);
    mprhs[0] = NULL;
    mlfAssign(&mprhs[0], mclCreateVararginCell(nrhs, prhs));
    Mmovegui(mprhs[0]);
    mlfRestorePreviousContext(0, 0);
    mxDestroyArray(mprhs[0]);
}

/*
 * The function "mlfMovegui_get_parent_fig" contains the normal interface for the "movegui/get_parent_fig" M-function from file "d:\matlab6p5\toolbox\matlab\uitools\movegui.m" (lines 214-218). This function processes any input arguments and passes them to the implementation version of the function, appearing above.
 */
static mxArray * mlfMovegui_get_parent_fig(mxArray * h_in) {
    int nargout = 1;
    mxArray * h = NULL;
    mlfEnterNewContext(0, 1, h_in);
    h = Mmovegui_get_parent_fig(nargout, h_in);
    mlfRestorePreviousContext(0, 1, h_in);
    return mlfReturnValue(h);
}

/*
 * The function "mlxMovegui_get_parent_fig" contains the feval interface for the "movegui/get_parent_fig" M-function from file "d:\matlab6p5\toolbox\matlab\uitools\movegui.m" (lines 214-218). The feval function calls the implementation version of movegui/get_parent_fig through this function. This function processes any input arguments and passes them to the implementation version of the function, appearing above.
 */
static void mlxMovegui_get_parent_fig(int nlhs, mxArray * plhs[], int nrhs, mxArray * prhs[]) {
    mxArray * mprhs[1];
    mxArray * mplhs[1];
    int i;
    if (nlhs > 1) {
        mlfError(mxCreateString("Run-time Error: File: movegui/get_parent_fig Line: 214 Column: 1 The function \"movegui/get_parent_fig\" was called with more than the declared number of outputs (1)."), NULL);
    }
    if (nrhs > 1) {
        mlfError(mxCreateString("Run-time Error: File: movegui/get_parent_fig Line: 214 Column: 1 The function \"movegui/get_parent_fig\" was called with more than the declared number of inputs (1)."), NULL);
    }
    for (i = 0; i < 1; ++i) {
        mplhs[i] = NULL;
    }
    for (i = 0; i < 1 && i < nrhs; ++i) {
        mprhs[i] = prhs[i];
    }
    for (; i < 1; ++i) {
        mprhs[i] = NULL;
    }
    mlfEnterNewContext(0, 1, mprhs[0]);
    mplhs[0] = Mmovegui_get_parent_fig(nlhs, mprhs[0]);
    mlfRestorePreviousContext(0, 1, mprhs[0]);
    plhs[0] = mplhs[0];
}

/*
 * The function "Mmovegui" is the implementation version of the "movegui" M-function from file "d:\matlab6p5\toolbox\matlab\uitools\movegui.m" (lines 1-214). It contains the actual compiled code for that M-function. It is a static function and must only be called from one of the interface functions, appearing below.
 */
/*
 * function movegui(varargin)
 */
#line 1 "d:\\matlab6p5\\toolbox\\matlab\\uitools\\movegui.m"
static void Mmovegui(mxArray * varargin) {
    #line 1 "d:\\matlab6p5\\toolbox\\matlab\\uitools\\movegui.m"
    mclMlineEnterFunction("d:\\matlab6p5\\toolbox\\matlab\\uitools\\movegui.m", "movegui")
    #line 1 "d:\\matlab6p5\\toolbox\\matlab\\uitools\\movegui.m"
    mexLocalFunctionTable save_local_function_table_ = mclSetCurrentLocalFunctionTable(&_local_function_table_movegui);
    #line 1 "d:\\matlab6p5\\toolbox\\matlab\\uitools\\movegui.m"
    int nargin_ = mclNargin(-1, varargin, NULL);
    #line 1 "d:\\matlab6p5\\toolbox\\matlab\\uitools\\movegui.m"
    mxArray * newpos = NULL;
    #line 1 "d:\\matlab6p5\\toolbox\\matlab\\uitools\\movegui.m"
    mxArray * rheight = NULL;
    #line 1 "d:\\matlab6p5\\toolbox\\matlab\\uitools\\movegui.m"
    mxArray * rwidth = NULL;
    #line 1 "d:\\matlab6p5\\toolbox\\matlab\\uitools\\movegui.m"
    mxArray * sheight = NULL;
    #line 1 "d:\\matlab6p5\\toolbox\\matlab\\uitools\\movegui.m"
    mxArray * swidth = NULL;
    #line 1 "d:\\matlab6p5\\toolbox\\matlab\\uitools\\movegui.m"
    mxArray * screensize = NULL;
    #line 1 "d:\\matlab6p5\\toolbox\\matlab\\uitools\\movegui.m"
    mxArray * old0units = NULL;
    #line 1 "d:\\matlab6p5\\toolbox\\matlab\\uitools\\movegui.m"
    mxArray * fheight = NULL;
    #line 1 "d:\\matlab6p5\\toolbox\\matlab\\uitools\\movegui.m"
    mxArray * fwidth = NULL;
    #line 1 "d:\\matlab6p5\\toolbox\\matlab\\uitools\\movegui.m"
    mxArray * fbottom = NULL;
    #line 1 "d:\\matlab6p5\\toolbox\\matlab\\uitools\\movegui.m"
    mxArray * fleft = NULL;
    #line 1 "d:\\matlab6p5\\toolbox\\matlab\\uitools\\movegui.m"
    mxArray * numtoolbars = NULL;
    #line 1 "d:\\matlab6p5\\toolbox\\matlab\\uitools\\movegui.m"
    mxArray * hfudge = NULL;
    #line 1 "d:\\matlab6p5\\toolbox\\matlab\\uitools\\movegui.m"
    mxArray * wfudge = NULL;
    #line 1 "d:\\matlab6p5\\toolbox\\matlab\\uitools\\movegui.m"
    mxArray * oldpos = NULL;
    #line 1 "d:\\matlab6p5\\toolbox\\matlab\\uitools\\movegui.m"
    mxArray * oldfunits = NULL;
    #line 1 "d:\\matlab6p5\\toolbox\\matlab\\uitools\\movegui.m"
    mxArray * oldposmode = NULL;
    #line 1 "d:\\matlab6p5\\toolbox\\matlab\\uitools\\movegui.m"
    mxArray * numel = NULL;
    #line 1 "d:\\matlab6p5\\toolbox\\matlab\\uitools\\movegui.m"
    mxArray * i = NULL;
    #line 1 "d:\\matlab6p5\\toolbox\\matlab\\uitools\\movegui.m"
    mxArray * fig = NULL;
    #line 1 "d:\\matlab6p5\\toolbox\\matlab\\uitools\\movegui.m"
    mxArray * position = NULL;
    #line 1 "d:\\matlab6p5\\toolbox\\matlab\\uitools\\movegui.m"
    mxArray * ans = NULL;
    #line 1 "d:\\matlab6p5\\toolbox\\matlab\\uitools\\movegui.m"
    mxArray * POSITIONS = NULL;
    #line 1 "d:\\matlab6p5\\toolbox\\matlab\\uitools\\movegui.m"
    mclCopyArray(&varargin);
    /*
     * %MOVEGUI  Move GUI figure to specified part of screen.
     * %    MOVEGUI(H, POSITION) moves the figure associated with handle H to
     * %    the specified part of the screen, preserving its size.
     * %
     * %    H can be the handle to a figure, or to any object within a figure
     * %    (for example, allowing a pushbutton uicontrol to move the figure
     * %    which contains it, from the pushbutton's function-handle
     * %    Callback.)
     * %
     * %    The POSITION argument can be any one of the strings:
     * %     'north'     - top center edge of screen
     * %     'south'     - bottom center edge of screen
     * %     'east'      - right center edge of screen
     * %     'west'      - left center edge of screen
     * %     'northeast' - top right corner of screen
     * %     'northwest' - top left corner of screen
     * %     'southeast' - bottom right corner of screen
     * %     'southwest' - bottom left corner of screen
     * %     'center'    - center of screen
     * %     'onscreen'  - nearest onscreen location to current position.
     * %
     * %    The POSITION argument can also be a two-element vector [H V],
     * %    where depending on sign, H specifies the figure's offset from the
     * %    left or right edge of the screen, and V specifies the figure's
     * %    offset from the top or bottom of the screen, in pixels:
     * %     H (for h >= 0) offset of left side from left edge of screen
     * %     H (for h < 0)  offset of right side from right edge of screen
     * %     V (for v >= 0) offset of bottom edge from bottom of screen
     * %     V (for v < 0)  offset of top edge from top of screen
     * %
     * %    MOVEGUI(POSITION) moves the GCBF or GCF to the specified
     * %    position.
     * %
     * %    MOVEGUI(H) moves the specified figure 'onscreen'.
     * %
     * %    MOVEGUI moves the GCBF or GCF 'onscreen' (useful as a
     * %    string-based CreateFcn callback for a saved figure, to ensure it
     * %    will appear onscreen when reloaded, regardless of its saved
     * %    position)
     * %
     * %    MOVEGUI(H, <event data>)
     * %    MOVEGUI(H, <event data>, POSITION) when used as a function-handle
     * %    callback, moves the specified figure to the default position, or
     * %    to the specified position, safely ignoring the automatically
     * %    passed-in event data struct.
     * %
     * %    Example:
     * %    This example demonstrates MOVEGUIs usefulness as a means of
     * %    ensuring that a saved GUI will appear onscreen when reloaded,
     * %    regardless of differences between screen sizes and resolutions
     * %    between the machines on which it was saved and reloaded.  It
     * %    creates a figure off the screen, assigns MOVEGUI as its CreateFcn
     * %    callback, then saves and reloads the figure:
     * %
     * %    	f=figure('position', [10000, 10000, 400, 300]);
     * %    	set(f, 'CreateFcn', 'movegui')
     * %    	hgsave(f, 'onscreenfig')
     * %    	close(f)
     * %    	f2 = hgload('onscreenfig')
     * %
     * %    The following are a few variations on ways MOVEGUI can be
     * %    assigned as the CreateFcn, using both string and function-handle
     * %    callbacks, with and without extra arguments, to achieve a variety
     * %    of behaviors:
     * %
     * %    	set(gcf, 'CreateFcn', 'movegui center')
     * %    	set(gcf, 'CreateFcn', @movegui)
     * %    	set(gcf, 'CreateFcn', {@movegui, 'northeast'})
     * %    	set(gcf, 'CreateFcn', {@movegui, [-100 -50]})
     * %
     * %    See also OPENFIG, GUIHANDLES, GUIDATA, GUIDE.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -