Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to copy an area of Composite as an image to system clipboard?
How to copy an area of Composite as an image to system clipboard? [message #457827] Tue, 05 July 2005 10:00
Eclipse UserFriend
Originally posted by: longwang.cn.ibm.com

I want to copy a rectangle area of Composite as an image to system
clipboard.
The interface is :

public static void copyArea(Composite composite, Rectangle rect) {...}

I have implemented this function under windows,
using "org.eclipse.swt.internal.win32.OS", and how can I implement it under
Linux of GTK?
I only know some methods of "org.eclipse.swt.internal.gtk.OS":

OS.gdk_gc_new(...);
OS.gdk_pixmap_new(...);
OS.gdk_draw_drawable(...);
OS.gtk_clipboard_clear(...);
OS.gtk_clipboard_set_with_data(...);
OS.g_object_ref(...);
Previous Topic:Popup menus in KDE
Next Topic:repaint embedded AWT frame
Goto Forum:
  


Current Time: Tue Apr 23 16:39:58 GMT 2024

Powered by FUDForum. Page generated in 0.02713 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top