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

📄 movegui.cpp

📁 matlab的可执行程序
💻 CPP
📖 第 1 页 / 共 3 页
字号:
//
// MATLAB Compiler: 3.0
// Date: Wed Jul 14 12:15:03 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" "sglcpp" "-p" "-W"
// "main" "-L" "Cpp" "-t" "-T" "link:exe" "-h" "libmmfile.mlib" "-W" "mainhg"
// "libmwsglm.mlib" "QQchabu.m" 
//
#include "movegui.hpp"
#include "libsgl.hpp"
#include "libmatlbm.hpp"
#include "libmmfile.hpp"
#include "libmwsglm.hpp"

static mxChar _array3_[5] = { 'n', 'o', 'r', 't', 'h' };
static mxArray * _mxarray2_ = mclInitializeString(5, _array3_);

static mxChar _array5_[5] = { 's', 'o', 'u', 't', 'h' };
static mxArray * _mxarray4_ = mclInitializeString(5, _array5_);

static mxChar _array7_[4] = { 'e', 'a', 's', 't' };
static mxArray * _mxarray6_ = mclInitializeString(4, _array7_);

static mxChar _array9_[4] = { 'w', 'e', 's', 't' };
static mxArray * _mxarray8_ = mclInitializeString(4, _array9_);

static mxChar _array11_[9] = { 'n', 'o', 'r', 't', 'h', 'e', 'a', 's', 't' };
static mxArray * _mxarray10_ = mclInitializeString(9, _array11_);

static mxChar _array13_[9] = { 's', 'o', 'u', 't', 'h', 'e', 'a', 's', 't' };
static mxArray * _mxarray12_ = mclInitializeString(9, _array13_);

static mxChar _array15_[9] = { 'n', 'o', 'r', 't', 'h', 'w', 'e', 's', 't' };
static mxArray * _mxarray14_ = mclInitializeString(9, _array15_);

static mxChar _array17_[9] = { 's', 'o', 'u', 't', 'h', 'w', 'e', 's', 't' };
static mxArray * _mxarray16_ = mclInitializeString(9, _array17_);

static mxChar _array19_[6] = { 'c', 'e', 'n', 't', 'e', 'r' };
static mxArray * _mxarray18_ = mclInitializeString(6, _array19_);

static mxChar _array21_[8] = { 'o', 'n', 's', 'c', 'r', 'e', 'e', 'n' };
static mxArray * _mxarray20_ = mclInitializeString(8, _array21_);

static mxArray * _array1_[10] = { _mxarray2_, _mxarray4_, _mxarray6_,
                                  _mxarray8_, _mxarray10_, _mxarray12_,
                                  _mxarray14_, _mxarray16_,
                                  _mxarray18_, _mxarray20_ };
static mwArray _mxarray0_ = mclInitializeCellVector(1, 10, _array1_);
static mwArray _mxarray22_ = mclInitializeDouble(0.0);
static mwArray _mxarray23_ = mclInitializeDouble(3.0);
static mwArray _mxarray24_ = mclInitializeCharVector(0, 0, (mxChar *)NULL);
static mwArray _mxarray25_ = mclInitializeDoubleVector(0, 0, (double *)NULL);
static mwArray _mxarray26_ = mclInitializeDouble(1.0);

static mxChar _array28_[39] = { 'h', 'a', 'n', 'd', 'l', 'e', ' ', 'o',
                                'f', ' ', 'f', 'i', 'g', 'u', 'r', 'e',
                                ' ', 'o', 'r', ' ', 'd', 'e', 's', 'c',
                                'e', 'n', 'd', 'a', 'n', 't', ' ', 'r',
                                'e', 'q', 'u', 'i', 'r', 'e', 'd' };
static mwArray _mxarray27_ = mclInitializeString(39, _array28_);

static mxChar _array30_[5] = { 'e', 'x', 'a', 'c', 't' };
static mwArray _mxarray29_ = mclInitializeString(5, _array30_);

static mxChar _array32_[21] = { 'u', 'n', 'r', 'e', 'c', 'o', 'g',
                                'n', 'i', 'z', 'e', 'd', ' ', 'p',
                                'o', 's', 'i', 't', 'i', 'o', 'n' };
static mwArray _mxarray31_ = mclInitializeString(21, _array32_);
static mwArray _mxarray33_ = mclInitializeDouble(2.0);

static mxChar _array35_[27] = { 'u', 'n', 'r', 'e', 'c', 'o', 'g', 'n', 'i',
                                'z', 'e', 'd', ' ', 'i', 'n', 'p', 'u', 't',
                                ' ', 'a', 'r', 'g', 'u', 'm', 'e', 'n', 't' };
static mwArray _mxarray34_ = mclInitializeString(27, _array35_);
static mwArray _mxarray36_ = mclInitializeString(8, _array21_);

static mxChar _array38_[22] = { 'a', 'c', 't', 'i', 'v', 'e', 'p', 'o',
                                's', 'i', 't', 'i', 'o', 'n', 'p', 'r',
                                'o', 'p', 'e', 'r', 't', 'y' };
static mwArray _mxarray37_ = mclInitializeString(22, _array38_);

static mxChar _array40_[5] = { 'u', 'n', 'i', 't', 's' };
static mwArray _mxarray39_ = mclInitializeString(5, _array40_);

static mxChar _array42_[6] = { 'p', 'i', 'x', 'e', 'l', 's' };
static mwArray _mxarray41_ = mclInitializeString(6, _array42_);

static mxChar _array44_[8] = { 'p', 'o', 's', 'i', 't', 'i', 'o', 'n' };
static mwArray _mxarray43_ = mclInitializeString(8, _array44_);
static mwArray _mxarray45_ = mclInitializeDouble(6.0);
static mwArray _mxarray46_ = mclInitializeDouble(24.0);

static mxChar _array48_[4] = { 't', 'y', 'p', 'e' };
static mwArray _mxarray47_ = mclInitializeString(4, _array48_);

static mxChar _array50_[6] = { 'u', 'i', 'm', 'e', 'n', 'u' };
static mwArray _mxarray49_ = mclInitializeString(6, _array50_);
static mwArray _mxarray51_ = mclInitializeDouble(32.0);

static mxChar _array53_[9] = { 'u', 'i', 't', 'o', 'o', 'l', 'b', 'a', 'r' };
static mwArray _mxarray52_ = mclInitializeString(9, _array53_);

static mxChar _array55_[13] = { 'o', 'u', 't', 'e', 'r', 'p', 'o',
                                's', 'i', 't', 'i', 'o', 'n' };
static mwArray _mxarray54_ = mclInitializeString(13, _array55_);

static mxChar _array57_[10] = { 's', 'c', 'r', 'e', 'e',
                                'n', 's', 'i', 'z', 'e' };
static mwArray _mxarray56_ = mclInitializeString(10, _array57_);
static mwArray _mxarray58_ = mclInitializeString(5, _array3_);
static mwArray _mxarray59_ = mclInitializeString(5, _array5_);
static mwArray _mxarray60_ = mclInitializeString(4, _array7_);
static mwArray _mxarray61_ = mclInitializeString(4, _array9_);
static mwArray _mxarray62_ = mclInitializeString(9, _array11_);
static mwArray _mxarray63_ = mclInitializeString(9, _array13_);
static mwArray _mxarray64_ = mclInitializeString(9, _array15_);
static mwArray _mxarray65_ = mclInitializeString(9, _array17_);

static double _array67_[2] = { 0.0, 0.0 };
static mwArray _mxarray66_ = mclInitializeDoubleVector(1, 2, _array67_);
static mwArray _mxarray68_ = mclInitializeString(6, _array19_);
static mwArray _mxarray69_ = mclInitializeDouble(4.0);

static mxChar _array71_[6] = { 'f', 'i', 'g', 'u', 'r', 'e' };
static mwArray _mxarray70_ = mclInitializeString(6, _array71_);

static mxChar _array73_[6] = { 'p', 'a', 'r', 'e', 'n', 't' };
static mwArray _mxarray72_ = mclInitializeString(6, _array73_);

void InitializeModule_movegui() {
}

void TerminateModule_movegui() {
    mxDestroyArray(_mxarray20_);
    mxDestroyArray(_mxarray18_);
    mxDestroyArray(_mxarray16_);
    mxDestroyArray(_mxarray14_);
    mxDestroyArray(_mxarray12_);
    mxDestroyArray(_mxarray10_);
    mxDestroyArray(_mxarray8_);
    mxDestroyArray(_mxarray6_);
    mxDestroyArray(_mxarray4_);
    mxDestroyArray(_mxarray2_);
}

static mwArray movegui_get_parent_fig(mwArray h_in = mwArray::DIN);
#ifdef __cplusplus
extern "C"
#endif
void mlxMovegui_get_parent_fig(int nlhs,
                               mxArray * plhs[],
                               int nrhs,
                               mxArray * prhs[]);
static void Mmovegui(mwArray varargin);
static mwArray Mmovegui_get_parent_fig(int nargout_, mwArray 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 "movegui" contains the normal interface for the "movegui"
// M-function from file "e:\matlab6.5\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 movegui(mwVarargin varargin) {
    Mmovegui(varargin.ToArray());
}

//
// The function "mlxMovegui" contains the feval interface for the "movegui"
// M-function from file "e:\matlab6.5\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[]) {
    MW_BEGIN_MLX();
    {
        mwArray mprhs[1];
        if (nlhs > 0) {
            error(
              mwVarargin(
                mwArray(
                  "Run-time Error: File: movegui Line: 1 Column: "
                  "1 The function \"movegui\" was called with mor"
                  "e than the declared number of outputs (0).")));
        }
        mprhs[0] = mclCreateVararginCell(nrhs, prhs);
        Mmovegui(mprhs[0]);
    }
    MW_END_MLX();
}

//
// The function "movegui_get_parent_fig" contains the normal interface for the
// "movegui/get_parent_fig" M-function from file
// "e:\matlab6.5\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 mwArray movegui_get_parent_fig(mwArray h_in) {
    int nargout = 1;
    mwArray h = mwArray::UNDEFINED;
    h = Mmovegui_get_parent_fig(nargout, h_in);
    return h;
}

//
// The function "mlxMovegui_get_parent_fig" contains the feval interface for
// the "movegui/get_parent_fig" M-function from file
// "e:\matlab6.5\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.
//
void mlxMovegui_get_parent_fig(int nlhs,
                               mxArray * plhs[],
                               int nrhs,
                               mxArray * prhs[]) {
    MW_BEGIN_MLX();
    {
        mwArray mprhs[1];
        mwArray mplhs[1];
        int i;
        mclCppUndefineArrays(1, mplhs);
        if (nlhs > 1) {
            error(
              mwVarargin(
                mwArray(
                  "Run-time Error: File: movegui/get_parent_fig Line: 214 Co"
                  "lumn: 1 The function \"movegui/get_parent_fig\" was calle"
                  "d with more than the declared number of outputs (1).")));
        }
        if (nrhs > 1) {
            error(
              mwVarargin(
                mwArray(
                  "Run-time Error: File: movegui/get_parent_fig Line: 214 Co"
                  "lumn: 1 The function \"movegui/get_parent_fig\" was calle"
                  "d with more than the declared number of inputs (1).")));
        }
        for (i = 0; i < 1 && i < nrhs; ++i) {
            mprhs[i] = mwArray(prhs[i], 0);
        }
        for (; i < 1; ++i) {
            mprhs[i].MakeDIN();
        }
        mplhs[0] = Mmovegui_get_parent_fig(nlhs, mprhs[0]);
        plhs[0] = mplhs[0].FreezeData();
    }
    MW_END_MLX();
}

//
// The function "Mmovegui" is the implementation version of the "movegui"
// M-function from file "e:\matlab6.5\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)
//
static void Mmovegui(mwArray varargin) {
    mwLocalFunctionTable save_local_function_table_
      = &_local_function_table_movegui;
    int nargin_ = nargin(-1, mwVarargin(varargin));
    mwArray newpos = mwArray::UNDEFINED;
    mwArray rheight = mwArray::UNDEFINED;
    mwArray rwidth = mwArray::UNDEFINED;
    mwArray sheight = mwArray::UNDEFINED;
    mwArray swidth = mwArray::UNDEFINED;
    mwArray screensize = mwArray::UNDEFINED;
    mwArray old0units = mwArray::UNDEFINED;
    mwArray fheight = mwArray::UNDEFINED;
    mwArray fwidth = mwArray::UNDEFINED;
    mwArray fbottom = mwArray::UNDEFINED;
    mwArray fleft = mwArray::UNDEFINED;
    mwArray numtoolbars = mwArray::UNDEFINED;
    mwArray hfudge = mwArray::UNDEFINED;
    mwArray wfudge = mwArray::UNDEFINED;
    mwArray oldpos = mwArray::UNDEFINED;
    mwArray oldfunits = mwArray::UNDEFINED;
    mwArray oldposmode = mwArray::UNDEFINED;
    mwArray numel = mwArray::UNDEFINED;
    mwArray i = mwArray::UNDEFINED;
    mwArray fig = mwArray::UNDEFINED;
    mwArray position = mwArray::UNDEFINED;
    mwArray ans = mwArray::UNDEFINED;
    mwArray POSITIONS = mwArray::UNDEFINED;
    //
    // %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

⌨️ 快捷键说明

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