亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? dnd.h

?? A*算法 A*算法 A*算法 A*算法A*算法A*算法
?? H
字號:
///////////////////////////////////////////////////////////////////////////////
// Name:        wx/dnd.h
// Purpose:     Drag and drop classes declarations
// Author:      Vadim Zeitlin, Robert Roebling
// Modified by:
// Created:     26.05.99
// RCS-ID:      $Id: dnd.h,v 1.33 2005/03/08 22:50:40 RR Exp $
// Copyright:   (c) wxWidgets Team
// Licence:     wxWindows licence
///////////////////////////////////////////////////////////////////////////////

#ifndef _WX_DND_H_BASE_
#define _WX_DND_H_BASE_

#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
    #pragma interface "dndbase.h"
#endif

#include "wx/defs.h"

#if wxUSE_DRAG_AND_DROP

#include "wx/dataobj.h"
#include "wx/cursor.h"

// ----------------------------------------------------------------------------
// constants
// ----------------------------------------------------------------------------

// flags for wxDropSource::DoDragDrop()
//
// NB: wxDrag_CopyOnly must be 0 (== FALSE) and wxDrag_AllowMove must be 1
//     (== TRUE) for compatibility with the old DoDragDrop(bool) method!
enum
{
    wxDrag_CopyOnly    = 0, // allow only copying
    wxDrag_AllowMove   = 1, // allow moving (copying is always allowed)
    wxDrag_DefaultMove = 3  // the default operation is move, not copy
};

// result of wxDropSource::DoDragDrop() call
enum wxDragResult
{
    wxDragError,    // error prevented the d&d operation from completing
    wxDragNone,     // drag target didn't accept the data
    wxDragCopy,     // the data was successfully copied
    wxDragMove,     // the data was successfully moved (MSW only)
    wxDragLink,     // operation is a drag-link
    wxDragCancel    // the operation was cancelled by user (not an error)
};

inline WXDLLEXPORT bool wxIsDragResultOk(wxDragResult res)
{
    return res == wxDragCopy || res == wxDragMove || res == wxDragLink;
}

// ----------------------------------------------------------------------------
// wxDropSource is the object you need to create (and call DoDragDrop on it)
// to initiate a drag-and-drop operation
// ----------------------------------------------------------------------------

class WXDLLEXPORT wxDropSourceBase
{
public:
    wxDropSourceBase(const wxCursor &cursorCopy = wxNullCursor,
                     const wxCursor &cursorMove = wxNullCursor,
                     const wxCursor &cursorStop = wxNullCursor)
        : m_cursorCopy(cursorCopy),
          m_cursorMove(cursorMove),
          m_cursorStop(cursorStop)
        { m_data = (wxDataObject *)NULL; }
    virtual ~wxDropSourceBase() { }

    // set the data which is transfered by drag and drop
    void SetData(wxDataObject& data)
      { m_data = &data; }

    wxDataObject *GetDataObject()
      { return m_data; }

    // set the icon corresponding to given drag result
    void SetCursor(wxDragResult res, const wxCursor& cursor)
    {
        if ( res == wxDragCopy )
            m_cursorCopy = cursor;
        else if ( res == wxDragMove )
            m_cursorMove = cursor;
        else
            m_cursorStop = cursor;
    }

    // start drag action, see enum wxDragResult for return value description
    //
    // if flags contains wxDrag_AllowMove, moving (and only copying) data is
    // allowed, if it contains wxDrag_DefaultMove (which includes the previous
    // flag), it is even the default operation
    virtual wxDragResult DoDragDrop(int flags = wxDrag_CopyOnly) = 0;

    // override to give feedback depending on the current operation result
    // "effect" and return true if you did something, false to let the library
    // give the default feedback
    virtual bool GiveFeedback(wxDragResult WXUNUSED(effect)) { return false; }

protected:
    const wxCursor& GetCursor(wxDragResult res) const
    {
        if ( res == wxDragCopy )
            return m_cursorCopy;
        else if ( res == wxDragMove )
            return m_cursorMove;
        else
            return m_cursorStop;
    }

    // the data we're dragging
    wxDataObject *m_data;

    // the cursors to use for feedback
    wxCursor m_cursorCopy,
             m_cursorMove,
             m_cursorStop;

    DECLARE_NO_COPY_CLASS(wxDropSourceBase)
};

// ----------------------------------------------------------------------------
// wxDropTarget should be associated with a window if it wants to be able to
// receive data via drag and drop.
//
// To use this class, you should derive from wxDropTarget and implement
// OnData() pure virtual method. You may also wish to override OnDrop() if you
// want to accept the data only inside some region of the window (this may
// avoid having to copy the data to this application which happens only when
// OnData() is called)
// ----------------------------------------------------------------------------

class WXDLLEXPORT wxDropTargetBase
{
public:
    // ctor takes a pointer to heap-allocated wxDataObject which will be owned
    // by wxDropTarget and deleted by it automatically. If you don't give it
    // here, you can use SetDataObject() later.
    wxDropTargetBase(wxDataObject *dataObject = (wxDataObject*)NULL)
        { m_dataObject = dataObject; m_defaultAction = wxDragNone; }
    // dtor deletes our data object
    virtual ~wxDropTargetBase()
        { delete m_dataObject; }

    // get/set the associated wxDataObject
    wxDataObject *GetDataObject() const
        { return m_dataObject; }
    void SetDataObject(wxDataObject *dataObject)
        { if (m_dataObject) delete m_dataObject;
    m_dataObject = dataObject; }

    // these functions are called when data is moved over position (x, y) and
    // may return either wxDragCopy, wxDragMove or wxDragNone depending on
    // what would happen if the data were dropped here.
    //
    // the last parameter is what would happen by default and is determined by
    // the platform-specific logic (for example, under Windows it's wxDragCopy
    // if Ctrl key is pressed and wxDragMove otherwise) except that it will
    // always be wxDragNone if the carried data is in an unsupported format.

    // called when the mouse enters the window (only once until OnLeave())
    virtual wxDragResult OnEnter(wxCoord x, wxCoord y, wxDragResult def)
        { return OnDragOver(x, y, def); }

    // called when the mouse moves in the window - shouldn't take long to
    // execute or otherwise mouse movement would be too slow
    virtual wxDragResult OnDragOver(wxCoord WXUNUSED(x), wxCoord WXUNUSED(y),
                                    wxDragResult def)
        { return def; }

    // called when mouse leaves the window: might be used to remove the
    // feedback which was given in OnEnter()
    virtual void OnLeave() { }

    // this function is called when data is dropped at position (x, y) - if it
    // returns true, OnData() will be called immediately afterwards which will
    // allow to retrieve the data dropped.
    virtual bool OnDrop(wxCoord x, wxCoord y) = 0;

    // called after OnDrop() returns TRUE: you will usually just call
    // GetData() from here and, probably, also refresh something to update the
    // new data and, finally, return the code indicating how did the operation
    // complete (returning default value in case of success and wxDragError on
    // failure is usually ok)
    virtual wxDragResult OnData(wxCoord x, wxCoord y, wxDragResult def) = 0;

    // may be called *only* from inside OnData() and will fill m_dataObject
    // with the data from the drop source if it returns true
    virtual bool GetData() = 0;

    // sets the default action for drag and drop:
    // use wxDragMove or wxDragCopy to set deafult action to move or copy
    // and use wxDragNone (default) to set default action specified by
    // initialization of draging (see wxDropSourceBase::DoDragDrop())
    void SetDefaultAction(wxDragResult action)
        { m_defaultAction = action; }

    // returns default action for drag and drop or
    // wxDragNone if this not specified
    wxDragResult GetDefaultAction()
        { return m_defaultAction; }

protected:
    wxDataObject *m_dataObject;
    wxDragResult m_defaultAction;

    DECLARE_NO_COPY_CLASS(wxDropTargetBase)
};

// ----------------------------------------------------------------------------
// include platform dependent class declarations
// ----------------------------------------------------------------------------

#if defined(__WXMSW__)
    #include "wx/msw/ole/dropsrc.h"
    #include "wx/msw/ole/droptgt.h"
#elif defined(__WXMOTIF__)
    #include "wx/motif/dnd.h"
#elif defined(__WXX11__)
    #include "wx/x11/dnd.h"
#elif defined(__WXGTK__)
    #include "wx/gtk/dnd.h"
#elif defined(__WXMAC__)
    #include "wx/mac/dnd.h"
#elif defined(__WXPM__)
    #include "wx/os2/dnd.h"
#endif

// ----------------------------------------------------------------------------
// standard wxDropTarget implementations (implemented in common/dobjcmn.cpp)
// ----------------------------------------------------------------------------

// A simple wxDropTarget derived class for text data: you only need to
// override OnDropText() to get something working
class WXDLLEXPORT wxTextDropTarget : public wxDropTarget
{
public:
    wxTextDropTarget();

    virtual bool OnDropText(wxCoord x, wxCoord y, const wxString& text) = 0;

    virtual wxDragResult OnData(wxCoord x, wxCoord y, wxDragResult def);

private:
    DECLARE_NO_COPY_CLASS(wxTextDropTarget)
};

// A drop target which accepts files (dragged from File Manager or Explorer)
class WXDLLEXPORT wxFileDropTarget : public wxDropTarget
{
public:
    wxFileDropTarget();

    // parameters are the number of files and the array of file names
    virtual bool OnDropFiles(wxCoord x, wxCoord y,
                             const wxArrayString& filenames) = 0;

    virtual wxDragResult OnData(wxCoord x, wxCoord y, wxDragResult def);

private:
    DECLARE_NO_COPY_CLASS(wxFileDropTarget)
};

#endif // wxUSE_DRAG_AND_DROP

#endif // _WX_DND_H_BASE_

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久国产精品99久久久久久老狼 | 91蜜桃网址入口| 国产亚洲一区二区三区在线观看| 极品少妇一区二区| 国产午夜亚洲精品羞羞网站| 懂色av一区二区三区免费观看| 国产精品三级久久久久三级| 色综合欧美在线视频区| 亚洲一区二区高清| 欧美一二三区在线| 国产91富婆露脸刺激对白| 亚洲三级小视频| 51精品国自产在线| 精东粉嫩av免费一区二区三区| 久久嫩草精品久久久精品一| 成人免费视频播放| 一区二区三区蜜桃| 日韩视频在线你懂得| 成人av网站免费| 五月天激情综合网| 欧美激情中文字幕| 欧美性大战久久久久久久蜜臀| 男人的天堂亚洲一区| 国产欧美精品区一区二区三区| 色综合久久久久综合| 日日摸夜夜添夜夜添国产精品| 欧美tickle裸体挠脚心vk| 不卡区在线中文字幕| 亚洲大片免费看| 久久久久久久久久久久久女国产乱| 91天堂素人约啪| 麻豆免费精品视频| 一区二区三区在线免费观看| 欧美电视剧在线观看完整版| 成人少妇影院yyyy| 日本在线不卡视频| 亚洲欧洲日韩女同| 欧美精品一区二区三区久久久| 一本久道中文字幕精品亚洲嫩| 国内外精品视频| 一区二区三区精品| 国产女主播视频一区二区| 91精品福利在线一区二区三区| 99久久精品一区二区| 看片的网站亚洲| 亚洲免费观看在线视频| 久久久久久久久蜜桃| 制服丝袜亚洲色图| 91在线视频播放| 国产乱对白刺激视频不卡| 午夜激情久久久| 亚洲综合在线观看视频| 国产日韩欧美精品一区| 日韩免费电影网站| 欧美绝品在线观看成人午夜影视| 丰满少妇在线播放bd日韩电影| 奇米色一区二区| 亚洲成人一区二区| 一个色在线综合| 亚洲欧美激情小说另类| 久久综合色鬼综合色| 欧美一级片在线| 欧美放荡的少妇| 欧美老人xxxx18| 欧美色视频一区| 欧美在线一区二区| 91黄色免费观看| 色视频欧美一区二区三区| 成人av电影在线网| 丰满亚洲少妇av| hitomi一区二区三区精品| 国产成人精品一区二区三区网站观看| 久久99精品久久久久| 麻豆精品国产91久久久久久| 免费成人性网站| 老司机精品视频在线| 日本欧美韩国一区三区| 青青青爽久久午夜综合久久午夜| 日韩av中文在线观看| 人人超碰91尤物精品国产| 日本不卡一区二区三区高清视频| 日韩精品亚洲专区| 老汉av免费一区二区三区| 久久精品国产久精国产爱| 精品综合免费视频观看| 国产在线乱码一区二区三区| 国产一区二区三区香蕉| 国产寡妇亲子伦一区二区| 成人综合在线观看| 99久久99久久精品国产片果冻| 色又黄又爽网站www久久| 在线观看免费一区| 欧美日韩国产美| 日韩美一区二区三区| 久久免费视频色| 国产精品福利电影一区二区三区四区| 亚洲天堂精品视频| 夜夜嗨av一区二区三区中文字幕| 亚洲成人一区在线| 理论片日本一区| 波多野结衣在线一区| 91麻豆福利精品推荐| 精品视频在线免费观看| 日韩欧美自拍偷拍| 中文av一区特黄| 亚洲午夜在线视频| 久久99久久99| 粉嫩嫩av羞羞动漫久久久 | 中文字幕一区二区三区不卡在线| 中文字幕在线一区免费| 亚洲网友自拍偷拍| 麻豆视频观看网址久久| 99国产精品99久久久久久| 欧美日韩一区二区三区免费看 | 国产美女一区二区三区| 色综合久久六月婷婷中文字幕| 欧美另类变人与禽xxxxx| 国产欧美精品一区| 天天综合色天天综合| 国产精品99久久久久久久女警| 日本韩国欧美三级| 欧美精品一区二区三区一线天视频| 亚洲人xxxx| 国产一区二区导航在线播放| 在线观看91精品国产入口| 久久久激情视频| 亚洲va欧美va人人爽| av日韩在线网站| 欧美成人video| 一区二区三区日韩欧美| 国产精品 日产精品 欧美精品| 欧美视频完全免费看| 国产亚洲精品超碰| 肉肉av福利一精品导航| 成人av资源在线观看| 精品国产区一区| 图片区小说区国产精品视频 | 成人黄色片在线观看| 91精品国产福利在线观看| 国产精品不卡在线观看| 久久91精品国产91久久小草| 欧美亚洲国产bt| 国产精品欧美一区喷水| 国精产品一区一区三区mba视频| 欧洲激情一区二区| 《视频一区视频二区| 国产成人av电影在线播放| 欧美一区二区三级| 午夜精品福利一区二区三区蜜桃| 99热国产精品| 国产精品天干天干在观线| 国产一区二区不卡老阿姨| 欧美一区二区在线不卡| 午夜精品一区二区三区三上悠亚| 97久久久精品综合88久久| 中文在线一区二区| 国产精品白丝jk黑袜喷水| 亚洲精品在线免费播放| 久久精品国产一区二区三区免费看 | 日韩一区二区三区在线观看| 午夜欧美在线一二页| 欧美唯美清纯偷拍| 亚洲一区免费视频| 在线精品视频免费观看| 一区二区三区在线观看动漫| 一本一道综合狠狠老| 亚洲精品第1页| 色偷偷成人一区二区三区91| 中文字幕亚洲不卡| 97成人超碰视| 亚洲制服丝袜在线| 欧美性色aⅴ视频一区日韩精品| 洋洋av久久久久久久一区| 欧美体内she精高潮| 亚洲成av人在线观看| 91精品国产福利在线观看| 美女尤物国产一区| 欧美xxxxx牲另类人与| 国产中文一区二区三区| 久久亚洲综合色一区二区三区 | 国产精品久久久久久久久久久免费看 | 国产精品麻豆视频| 91在线免费看| 一区二区三区在线不卡| 欧美日韩精品免费观看视频| 日韩在线卡一卡二| 日韩午夜中文字幕| 国产精品一卡二卡在线观看| 国产精品色哟哟| 欧美性videosxxxxx| 日韩精品一级中文字幕精品视频免费观看 | 婷婷久久综合九色国产成人| 日韩三级视频在线观看| 国产成人综合亚洲91猫咪| 最新国产精品久久精品| 欧美在线小视频| 精品一区二区三区不卡| 国产精品美女久久久久久久久| 欧美性猛片xxxx免费看久爱| 久久se精品一区二区|