DnD fixes
Image fixes Clipboard API git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@952 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
71
include/wx/gtk/clipbrd.h
Normal file
71
include/wx/gtk/clipbrd.h
Normal file
@@ -0,0 +1,71 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: clipboard.h
|
||||
// Purpose:
|
||||
// Author: Robert Roebling
|
||||
// Id: $Id$
|
||||
// Copyright: (c) 1998 Robert Roebling
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
#ifndef __GTKCLIPBOARDH__
|
||||
#define __GTKCLIPBOARDH__
|
||||
|
||||
#ifdef __GNUG__
|
||||
#pragma interface
|
||||
#endif
|
||||
|
||||
#include "wx/defs.h"
|
||||
#include "wx/object.h"
|
||||
#include "wx/list.h"
|
||||
#include "wx/control.h"
|
||||
#include "wx/dnd.h" // for wxDataObject
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// classes
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
class wxClipboard;
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// global functions
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
void wxInitClipboard();
|
||||
void wxDoneClipboard();
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// global data
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
extern wxClipboard* wxTheClipboard;
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// wxClipboard
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
class wxClipboard: public wxObject
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS(wxClipboard)
|
||||
|
||||
public:
|
||||
|
||||
wxClipboard();
|
||||
~wxClipboard();
|
||||
|
||||
virtual void SetData( wxDataObject *data );
|
||||
virtual void *GetData( wxDataFormat format, size_t *length );
|
||||
virtual bool IsAvailable( wxDataFormat format );
|
||||
|
||||
// implementation
|
||||
|
||||
wxDataObject *m_data;
|
||||
char *m_sentString,
|
||||
*m_receivedString;
|
||||
void *m_receivedTargets;
|
||||
size_t m_receivedLength;
|
||||
GtkWidget *m_clipboardWidget;
|
||||
};
|
||||
|
||||
#endif
|
||||
// __GTKCLIPBOARDH__
|
Reference in New Issue
Block a user