• <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 閱讀(179) 評論(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

            日韩十八禁一区二区久久 | 国产精品久久国产精麻豆99网站 | 久久久久久久国产免费看| 国产亚洲精午夜久久久久久| 久久综合一区二区无码| 亚洲中文字幕无码久久精品1 | 久久亚洲美女精品国产精品| 精品免费久久久久国产一区| 亚洲AV日韩精品久久久久久| 国产女人aaa级久久久级| 亚洲精品国产美女久久久| 国产精品无码久久综合网| 色偷偷88888欧美精品久久久| 久久伊人精品青青草原高清| 成人午夜精品无码区久久 | 亚洲色婷婷综合久久| 久久精品无码一区二区三区日韩 | 久久精品99无色码中文字幕| 久久精品国产秦先生| 久久WWW免费人成一看片| 久久精品国产99久久丝袜| 久久精品人人做人人爽电影| 亚洲人成精品久久久久| 久久久久久国产a免费观看不卡| 99久久精品午夜一区二区| 亚洲精品乱码久久久久久久久久久久| 欧美777精品久久久久网| 久久免费高清视频| 日本久久久精品中文字幕| 国产精品久久久久影院嫩草| 久久久久久九九99精品| 综合网日日天干夜夜久久| 国产亚洲精久久久久久无码77777| 欧美激情精品久久久久久| 久久影视综合亚洲| 中文字幕无码久久精品青草 | 久久精品成人免费国产片小草| 国产精品va久久久久久久| 国产精品久久久99| 久久久亚洲精品蜜桃臀| 亚洲婷婷国产精品电影人久久|