• <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

            久久久无码人妻精品无码| 久久国产精品久久精品国产| 久久精品免费一区二区| 色婷婷久久综合中文久久蜜桃av| 精品久久久久久无码专区| 亚洲乱亚洲乱淫久久| 亚洲人成网站999久久久综合| 久久久久久午夜成人影院| 久久久精品无码专区不卡| 国产成人久久精品一区二区三区 | 久久精品中文字幕一区| 麻豆久久久9性大片| 久久99国产精品久久| 久久久久久久女国产乱让韩| 国产精品成人久久久久三级午夜电影 | 国产99久久久国产精品~~牛 | 精品久久久久久99人妻| 伊人久久久AV老熟妇色| 久久国产香蕉一区精品| 久久99精品久久久久久久久久| 亚洲а∨天堂久久精品9966| 久久国产精品一国产精品金尊| 久久久久久免费视频| 国产福利电影一区二区三区,免费久久久久久久精| 久久福利资源国产精品999| 久久se精品一区精品二区国产| 久久精品国产福利国产秒| 久久久久女人精品毛片| 国产精品99久久久精品无码| 日日狠狠久久偷偷色综合0| 精品人妻伦九区久久AAA片69| 青青青国产精品国产精品久久久久 | 久久精品国产亚洲av麻豆图片| 久久综合一区二区无码| 久久精品中文字幕第23页| 久久精品无码av| 久久久久国产一区二区| 国产成人精品久久亚洲| 国产精品成人久久久久久久| 国内精品久久久久久久影视麻豆| 久久香蕉一级毛片|