Package ch.bailu.gtk.gtk
Klasse PrintOperationPreview
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.gobject.Object
ch.bailu.gtk.type.PropertyHolder
ch.bailu.gtk.type.Interface
ch.bailu.gtk.gtk.PrintOperationPreview
- Alle implementierten Schnittstellen:
PointerInterface
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].
A `GtkPrintOperationPreview` object is passed to the
[signal@Gtk.PrintOperation::preview] signal by
[class@Gtk.PrintOperation].
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic interfacestatic interfaceVon Klasse geerbte verschachtelte Klassen/Schnittstellen ch.bailu.gtk.gobject.Object
Object.OnBindingTransformFunc, Object.OnDestroyNotify, Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify -
Feldübersicht
FelderVon Klasse geerbte Felder ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidEnds 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.Von Klasse geerbte Methoden ch.bailu.gtk.type.PropertyHolder
getBooleanProperty, getIntProperty, getObjectProperty, getStringProperty, getStrProperty, setBooleanProperty, setIntProperty, setObjectProperty, setStringProperty, setStrPropertyVon Klasse geerbte Methoden 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, weakUnrefVon Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacksVon Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNullVon Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitVon Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Felddetails
-
SIGNAL_ON_GOT_PAGE_SIZE
- Siehe auch:
-
SIGNAL_ON_READY
- Siehe auch:
-
-
Konstruktordetails
-
PrintOperationPreview
-
-
Methodendetails
-
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.- Parameter:
page_nr- a page number- Gibt zurück:
- %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.- Parameter:
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.- Parameter:
signal- callback function (lambda).- Gibt zurück:
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.- Parameter:
signal- callback function (lambda).- Gibt zurück:
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()
-