/src/wrappers/gtk/library/gtk_print_operation_preview.e

http://github.com/tybor/Liberty · Specman e · 60 lines · 39 code · 12 blank · 9 comment · 2 complexity · 90ea43596f7e8172366aab9f1e781a31 MD5 · raw file

  1. indexing
  2. description: "."
  3. copyright: "[
  4. Copyright (C) 2006 Paolo Redaelli, GTK+ team
  5. This library is free software; you can redistribute it and/or
  6. modify it under the terms of the GNU Lesser General Public License
  7. as published by the Free Software Foundation; either version 2.1 of
  8. the License, or (at your option) any later version.
  9. This library is distributed in the hopeOA that it will be useful, but
  10. WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. Lesser General Public License for more details.
  13. You should have received a copy of the GNU Lesser General Public
  14. License along with this library; if not, write to the Free Software
  15. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  16. 02110-1301 USA
  17. ]"
  18. deferred class GTK_PRINT_OPERATION_PREVIEW
  19. inherit G_OBJECT
  20. insert GTK_PRINT_OPERATION_PREVIEW_EXTERNALS
  21. feature -- Creation
  22. end_preview is
  23. -- Ends a preview. This function must be called to finish a custom
  24. -- print preview.
  25. do
  26. gtk_print_operation_preview_end_preview(handle)
  27. end
  28. is_selected (a_page_number: INTEGER): BOOLEAN is
  29. -- Has the given page is included in the set of pages that have been
  30. -- selected for printing?
  31. do
  32. Result:=gtk_print_operation_preview_is_selected(handle,a_page_number).to_boolean
  33. end
  34. render_page (a_page_number: INTEGER) is
  35. -- Renders a page to the preview, using the print context that was
  36. -- passed to the GtkPrintOperation::preview handler together with
  37. -- preview.
  38. -- Note that this function requires a suitable cairo context to be
  39. -- associated with the print context.
  40. do
  41. gtk_print_operation_preview_render_page(handle,a_page_number)
  42. end
  43. feature -- size
  44. struct_size: INTEGER is
  45. external "C inline use <gtk/gtk.h>"
  46. alias "sizeof(GtkPrintOperationPreview)"
  47. end
  48. end -- class GTK_PRINT_OPERATION_PREVIEW