Package ch.bailu.gtk.gtk
Class PrintOperationPreview
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.gobject.Object
ch.bailu.gtk.type.Interface
ch.bailu.gtk.gtk.PrintOperationPreview
- All Implemented Interfaces:
PointerInterface
`GtkPrintOperationPreview` is the interface that is used to
implement print preview.
A `GtkPrintOperationPreview` object is passed to the
[signal@Gtk.PrintOperation::preview] signal by
[class@Gtk.PrintOperation].
implement print preview.
A `GtkPrintOperationPreview` object is passed to the
[signal@Gtk.PrintOperation::preview] signal by
[class@Gtk.PrintOperation].
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfaceNested classes/interfaces inherited from class ch.bailu.gtk.gobject.Object
Object.OnBindingTransformFunc, Object.OnDestroyNotify, Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify -
Field Summary
FieldsFields inherited from class ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidEnds a preview.static ClassHandlerstatic intstatic longstatic TypeSystem.TypeSizestatic longstatic TypeSystem.TypeSizebooleanisSelected(int page_nr) Returns whether the given page is included in the set of pages that
have been selected for printing.Connect to signal "got-page-size".onReady(PrintOperationPreview.OnReady signal) Connect to signal "ready".voidrenderPage(int page_nr) Renders a page to the preview.Methods inherited from class ch.bailu.gtk.gobject.Object
addToggleRef, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, disconnect, disconnect, dupData, dupData, dupQdata, forceFloating, freezeNotify, get, get, getData, getData, getProperty, getProperty, getQdata, interfaceFindProperty, interfaceInstallProperty, isFloating, notify, notify, notifyByPspec, onNotify, ref, refSink, removeToggleRef, replaceData, replaceData, replaceQdata, runDispose, set, set, setData, setData, setDataFull, setDataFull, setProperty, setProperty, setQdata, setQdataFull, stealData, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnrefMethods inherited from class ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacksMethods inherited from class ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNullMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Field Details
-
SIGNAL_ON_GOT_PAGE_SIZE
- See Also:
-
SIGNAL_ON_READY
- See Also:
-
-
Constructor Details
-
PrintOperationPreview
-
-
Method Details
-
getClassHandler
-
endPreview
public void endPreview()Ends a preview.
This function must be called to finish a custom print preview. -
isSelected
public boolean isSelected(int page_nr) Returns whether the given page is included in the set of pages that
have been selected for printing.- Parameters:
page_nr- a page number- Returns:
- %TRUE if the page has been selected for printing
-
renderPage
public void renderPage(int page_nr) Renders a page to the preview.
This is using the print context that was passed to the
[signal@Gtk.PrintOperation::preview] handler together
with @preview.
A custom print preview should use this function to render
the currently selected page.
Note that this function requires a suitable cairo context to
be associated with the print context.- Parameters:
page_nr- the page to render
-
onGotPageSize
Connect to signal "got-page-size".
SeePrintOperationPreview.OnGotPageSize.onGotPageSize(ch.bailu.gtk.gtk.PrintContext, ch.bailu.gtk.gtk.PageSetup)for signal description.
FieldSIGNAL_ON_GOT_PAGE_SIZEcontains original signal name and can be used as resource reference.- Parameters:
signal- callback function (lambda).- Returns:
SignalHandler. Can be used to disconnect signal and to release callback function.
-
onReady
Connect to signal "ready".
SeePrintOperationPreview.OnReady.onReady(ch.bailu.gtk.gtk.PrintContext)for signal description.
FieldSIGNAL_ON_READYcontains original signal name and can be used as resource reference.- Parameters:
signal- callback function (lambda).- Returns:
SignalHandler. Can be used to disconnect signal and to release callback function.
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-