devel/framework/dynagui.cpp
/// common init for windows and sub-windows
common init for windows and sub-windows
common init for windows and sub - windows
void DWindow::init() {
    #if DYNAGUI_METRICS_MODE == PIXELS
        mGap=DYNAGUI_BASEGAP_ABSOLUTE * mGUI->getScale();
        mLineHeight=DYNAGUI_BASEHEIGHT_ABSOLUTE * mGUI->getScale();
    #else
        mGap=DYNAGUI_BASEGAP_RELATIVE * mGUI->getScale();
        mLineHeight=DYNAGUI_BASEHEIGHT_RELATIVE * mGUI->getScale();
    #endif
    mX=mY=0;
    mInsertXPos=mGap;
    mInsertYPos=mGap;
    mTitleBar=0;
    mTitle=0;
    mWidth=0;
    mHeight=0;
}
void DWindow :: init ( ) { #if DYNAGUI_METRICS_MODE == PIXELS mGap = DYNAGUI_BASEGAP_ABSOLUTE * mGUI -> getScale ( ) ; mLineHeight = DYNAGUI_BASEHEIGHT_ABSOLUTE * mGUI -> getScale ( ) ; #else mGap = DYNAGUI_BASEGAP_RELATIVE * mGUI -> getScale ( ) ; mLineHeight = DYNAGUI_BASEHEIGHT_RELATIVE * mGUI -> getScale ( ) ; #endif mX = mY = 0 ; mInsertXPos = mGap ; mInsertYPos = mGap ; mTitleBar = 0 ; mTitle = 0 ; mWidth = 0 ; mHeight = 0 ; }
common init for windows and sub-windows
common init for windows and sub - windows
/*
    if( mGUI->getMetricsMode() == Ogre::GMM_PIXELS ) {
        mGap=DYNAGUI_BASEGAP_ABSOLUTE * mGUI->getScale();
        mLineHeight=DYNAGUI_BASEHEIGHT_ABSOLUTE * mGUI->getScale();
    }
    else {
        mGap=DYNAGUI_BASEGAP_RELATIVE * mGUI->getScale();
        mLineHeight=DYNAGUI_BASEHEIGHT_RELATIVE * mGUI->getScale();
    }
*/