• <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精品久久久久久野外| 久久婷婷五月综合色奶水99啪| 中文国产成人精品久久亚洲精品AⅤ无码精品| 亚洲中文字幕无码久久综合网| 亚洲国产精品嫩草影院久久| 国产精品gz久久久| 久久久久国产精品| 久久亚洲国产午夜精品理论片 | 无码任你躁久久久久久老妇| 久久天天躁狠狠躁夜夜avapp| 久久国产精品77777| 成人a毛片久久免费播放| 欧美一区二区久久精品| 国产精品久久久久久久| 蜜桃麻豆www久久国产精品| 久久亚洲欧美国产精品| 久久天天躁狠狠躁夜夜不卡| 狠狠干狠狠久久| 国产精品久久久久久久久久影院| 久久免费精品一区二区| 精品久久久无码人妻中文字幕| 久久精品国产欧美日韩| 国产成人精品久久免费动漫| 精品久久久久久国产| 亚洲精品无码久久毛片| 国产99久久久国产精免费| 99久久国产热无码精品免费| 亚洲精品无码成人片久久| 热99RE久久精品这里都是精品免费 | 青青青青久久精品国产h| 久久亚洲精品国产亚洲老地址| 久久精品无码av| 精品久久久久久久中文字幕| 久久久久久免费一区二区三区| 国产精品一区二区久久国产| 亚洲AV无码久久精品成人| 亚洲精品乱码久久久久久按摩| 漂亮人妻被中出中文字幕久久| 久久99热这里只有精品66| 精品久久久久久无码不卡| 国内精品久久国产|