pub struct DxgiPrintContext {
pub d3d_device: ID3D11Device,
pub d3d_context: ID3D11DeviceContext,
pub dxgi_device: IDXGIDevice,
pub d2d_factory: ID2D1Factory1,
pub d2d_device: ID2D1Device,
pub d2d_context: ID2D1DeviceContext,
pub wic_factory: IWICImagingFactory2,
pub document_target_factory: IPrintDocumentPackageTargetFactory,
pub document_target: IPrintDocumentPackageTarget,
pub print_control: ID2D1PrintControl,
pub completion_waiter: PrintCompletionWaiter,
/* private fields */
}Expand description
Represents a print context during printing via DXGI.
Fields§
§d3d_device: ID3D11Device§d3d_context: ID3D11DeviceContext§dxgi_device: IDXGIDevice§d2d_factory: ID2D1Factory1§d2d_device: ID2D1Device§d2d_context: ID2D1DeviceContext§wic_factory: IWICImagingFactory2§document_target_factory: IPrintDocumentPackageTargetFactory§document_target: IPrintDocumentPackageTarget§print_control: ID2D1PrintControl§completion_waiter: PrintCompletionWaiterImplementations§
Source§impl DxgiPrintContext
impl DxgiPrintContext
Sourcepub fn new(
device: &PrinterDevice,
options: &PrintTicket,
job_name: &OsStr,
) -> Result<Self, DxgiPrintContextError>
pub fn new( device: &PrinterDevice, options: &PrintTicket, job_name: &OsStr, ) -> Result<Self, DxgiPrintContextError>
Create a new print context, used for printing via DXGI.
Sourcepub fn close_and_wait(self) -> Result<(), DxgiPrintContextError>
pub fn close_and_wait(self) -> Result<(), DxgiPrintContextError>
Close the print context and wait for the completion of the print job.
Trait Implementations§
Source§impl Drop for DxgiPrintContext
impl Drop for DxgiPrintContext
Auto Trait Implementations§
impl !Send for DxgiPrintContext
impl !Sync for DxgiPrintContext
impl Freeze for DxgiPrintContext
impl RefUnwindSafe for DxgiPrintContext
impl Unpin for DxgiPrintContext
impl UnsafeUnpin for DxgiPrintContext
impl UnwindSafe for DxgiPrintContext
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more