
org.gnome.gtk.PrintStatus Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gtk Show documentation
Show all versions of gtk Show documentation
Java language bindings for Gtk, generated with Java-GI
// This file was automatically generated by Java-GI. Do not edit this file
// directly! Visit for more information.
//
// The API documentation in this file was derived from GObject-Introspection
// metadata and may include text or comments from the original C sources.
//
// Copyright (c), upstream authors as identified in the GObject-Introspection
// metadata.
//
// This generated file is distributed under the same license as the original
// GObject-Introspection data, unless otherwise specified. Users of this file
// are responsible for complying with any licenses or terms required by the
// original authors.
//
// THIS FILE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT.
//
package org.gnome.gtk;
import io.github.jwharm.javagi.base.Enumeration;
import io.github.jwharm.javagi.interop.Interop;
import java.lang.IllegalStateException;
import java.lang.Override;
import javax.annotation.processing.Generated;
import org.gnome.glib.Type;
/**
* The status gives a rough indication of the completion of a running
* print operation.
*/
@Generated("io.github.jwharm.JavaGI")
public enum PrintStatus implements Enumeration {
/**
* The printing has not started yet; this
* status is set initially, and while the print dialog is shown.
*/
INITIAL(0),
/**
* This status is set while the begin-print
* signal is emitted and during pagination.
*/
PREPARING(1),
/**
* This status is set while the
* pages are being rendered.
*/
GENERATING_DATA(2),
/**
* The print job is being sent off to the
* printer.
*/
SENDING_DATA(3),
/**
* The print job has been sent to the printer,
* but is not printed for some reason, e.g. the printer may be stopped.
*/
PENDING(4),
/**
* Some problem has occurred during
* printing, e.g. a paper jam.
*/
PENDING_ISSUE(5),
/**
* The printer is processing the print job.
*/
PRINTING(6),
/**
* The printing has been completed successfully.
*/
FINISHED(7),
/**
* The printing has been aborted.
*/
FINISHED_ABORTED(8);
static {
Gtk.javagi$ensureInitialized();
}
private final int value;
/**
* Create a new PrintStatus for the provided value
*
* @param value the enum value
*/
private PrintStatus(int value) {
this.value = value;
}
/**
* Create a new PrintStatus for the provided value
*
* @param value the enum value
* @return the enum for the provided value
*/
public static PrintStatus of(int value) {
return switch(value) {
case 0 -> INITIAL;
case 1 -> PREPARING;
case 2 -> GENERATING_DATA;
case 3 -> SENDING_DATA;
case 4 -> PENDING;
case 5 -> PENDING_ISSUE;
case 6 -> PRINTING;
case 7 -> FINISHED;
case 8 -> FINISHED_ABORTED;
default -> throw new IllegalStateException("Unexpected value: " + value);
} ;
}
/**
* Get the numeric value of this enum
*
* @return the enum value
*/
@Override
public int getValue() {
return value;
}
/**
* Get the GType of the PrintStatus class
*
* @return the GType
*/
public static Type getType() {
return Interop.getType("gtk_print_status_get_type");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy