• <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 閱讀(176) 評論(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,
            為什么又要設計為靜態(tài)的呢???誰幫我解釋下?

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

            Copyright © RichardHe

            99久久精品免费看国产| 久久久精品国产sm调教网站| 久久九九久精品国产| 国产精品99久久精品爆乳| 日韩精品无码久久一区二区三| 色欲综合久久躁天天躁| 国产亚洲精品自在久久| 理论片午午伦夜理片久久| 亚洲AV无码久久精品成人| 久久久青草久久久青草| 久久天天躁狠狠躁夜夜不卡| 国产精品视频久久久| 精产国品久久一二三产区区别| 久久96国产精品久久久| 久久精品亚洲AV久久久无码| 国产成人久久精品麻豆一区| 久久丫精品国产亚洲av| 久久婷婷色香五月综合激情 | 久久97精品久久久久久久不卡 | 精品久久久久久无码中文野结衣| 区亚洲欧美一级久久精品亚洲精品成人网久久久久 | 久久久久国产精品嫩草影院| 亚洲国产成人久久综合野外| av无码久久久久不卡免费网站 | 国产69精品久久久久777| 久久亚洲熟女cc98cm| 久久久久黑人强伦姧人妻| 国产99精品久久| 国产成人精品久久免费动漫 | 香蕉久久一区二区不卡无毒影院| 久久久SS麻豆欧美国产日韩| 少妇久久久久久被弄到高潮| 久久久久久A亚洲欧洲AV冫| 精品久久久无码中文字幕天天| 91精品国产91久久久久久青草| 久久亚洲国产欧洲精品一| 久久精品人人做人人爽97| 久久久久免费看成人影片| 久久精品毛片免费观看| 99久久人妻无码精品系列| 久久国产精品久久久|