• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            08年05月09日

            Posted on 2008-05-09 15:32 RichardHe 閱讀(178) 評論(0)  編輯 收藏 引用
            CEGUI的設計模式:

            像其中的單件模式比較容易理解.

            但是像如下的設計不知道為什么要這樣?
            class CEGUIEXPORT DragContainer : public Window
                {
                public:
                    /*************************************************************************
                        Constants
                    *************************************************************************/
                    static const String WidgetTypeName;     //!< Type name for DragContainer.
                    static const String EventNamespace;     //!< Namespace for global events
                    static const String EventDragStarted;   //!< Name of the event fired when the user begins dragging the thumb.
                    static const String EventDragEnded;     //!< Name of the event fired when the user releases the thumb.
                    static const String EventDragPositionChanged;   //!< Event fired when the drag position has changed.
                    static const String EventDragEnabledChanged;    //!< Event fired when dragging is enabled or disabled.
                    static const String EventDragAlphaChanged;      //!< Event fired when the alpha value used when dragging is changed.
                    static const String EventDragMouseCursorChanged;//!< Event fired when the mouse cursor used when dragging is changed.
                    static const String EventDragThresholdChanged;  //!< Event fired when the drag pixel threshold is changed.
                    static const String EventDragDropTargetChanged; //!< Event fired when the drop target changes.
                   ...
                   ...
                   ...
                private:
                    /*************************************************************************
                        Static properties for the Spinner widget
                    *************************************************************************/
                    static DragContainerProperties::DragAlpha       d_dragAlphaProperty;
                    static DragContainerProperties::DragCursorImage d_dragCursorImageProperty;
                    static DragContainerProperties::DraggingEnabled d_dragEnabledProperty;
                    static DragContainerProperties::DragThreshold   d_dragThresholdProperty;
            };
            為什么上面的有的設計為public,有的又是private,
            為什么又要設計為靜態的呢???誰幫我解釋下?

            posts - 94, comments - 138, trackbacks - 0, articles - 94

            Copyright © RichardHe

            久久精品国产亚洲综合色| 欧美一区二区久久精品| 97久久超碰国产精品2021| 99re这里只有精品热久久| 久久91精品综合国产首页| 亚洲国产精品无码久久久久久曰| 亚洲美日韩Av中文字幕无码久久久妻妇| 久久久久久久久久久精品尤物| 97超级碰碰碰久久久久| 亚洲国产精品无码久久青草| 九九精品99久久久香蕉| 国产精品久久新婚兰兰 | 国产伊人久久| 国产aⅴ激情无码久久| 国产成人久久777777| 亚洲欧美伊人久久综合一区二区| 久久综合久久综合久久| 久久久久久午夜成人影院| 久久久久99精品成人片| 亚洲精品高清国产一久久| 波多野结衣AV无码久久一区| 国产亚洲色婷婷久久99精品91| 久久精品人人做人人爽电影蜜月| 一本久久免费视频| 久久久久亚洲精品中文字幕| 久久精品国产精品国产精品污| 伊人久久大香线蕉综合热线| 国产视频久久| 久久精品国产亚洲沈樵| 久久本道伊人久久| 久久99精品国产99久久6男男| 亚洲日本va中文字幕久久| 精品国产青草久久久久福利| 四虎国产精品成人免费久久| 亚洲国产成人精品无码久久久久久综合| 国内精品久久国产大陆| 久久精品国产秦先生| 久久久久一区二区三区| 亚洲国产天堂久久综合网站| 四虎国产精品免费久久久| 久久精品国产免费|