Author: manolo
Date: 2010-04-06 09:27:33 -0700 (Tue, 06 Apr 2010)
New Revision: 7453
Log:
Added offset parameters to Fl_Clipboard_Writer::copy_widget()
Modified:
branches/branch-1.3-Fl_Printer/FL/Fl_Clipboard_Writer.H
Modified: branches/branch-1.3-Fl_Printer/FL/Fl_Clipboard_Writer.H
===================================================================
--- branches/branch-1.3-Fl_Printer/FL/Fl_Clipboard_Writer.H 2010-04-05
22:39:43 UTC (rev 7452)
+++ branches/branch-1.3-Fl_Printer/FL/Fl_Clipboard_Writer.H 2010-04-06
16:27:33 UTC (rev 7453)
@@ -46,7 +46,6 @@
void traverse(Fl_Widget *widget);
void translate(int x, int y);
void untranslate(void);
- void copy_widget(Fl_Widget* widget, int delta_x, int delta_y);
public:
#ifdef __APPLE__
inline void bounds(int *pwidth, int *pheight) {*pwidth = width; *pheight =
height; }
@@ -58,8 +57,12 @@
\param h The height in pixels of the clipboard drawing surface
*/
int start(int w, int h);
- /** \brief Copies a widget of any kind to the clipboard */
- inline void copy_widget(Fl_Widget* widget) { copy_widget(widget, 0, 0); };
+ /** \brief Copies a widget to the clipboard
+ \param widget A FLTK widget of any kind
+ \param delta_x Horizontal offset for position of the widget top-left angle.
+ \param delta_y Vertical offset for position of the widget top-left angle.
+ */
+ void copy_widget(Fl_Widget* widget, int delta_x = 0, int delta_y = 0);
/** \brief To be called after all graphics requests were done */
int stop(void);
Fl_Device *set_current(void);
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit