
org.gnome.gtk.IconLookupFlags 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;
/**
* Used to specify options for gtk_icon_theme_lookup_icon().
*/
@Generated("io.github.jwharm.JavaGI")
public enum IconLookupFlags implements Enumeration {
/**
* Try to always load regular icons, even
* when symbolic icon names are given
*/
FORCE_REGULAR(1),
/**
* Try to always load symbolic icons, even
* when regular icon names are given
*/
FORCE_SYMBOLIC(2),
/**
* Starts loading the texture in the background
* so it is ready when later needed.
*/
PRELOAD(4);
static {
Gtk.javagi$ensureInitialized();
}
private final int value;
/**
* Create a new IconLookupFlags for the provided value
*
* @param value the bitfield value
*/
private IconLookupFlags(int value) {
this.value = value;
}
/**
* Create a new IconLookupFlags for the provided value
*
* @param value the bitfield value
* @return the bitfield for the provided value
*/
public static IconLookupFlags of(int value) {
return switch(value) {
case 1 -> FORCE_REGULAR;
case 2 -> FORCE_SYMBOLIC;
case 4 -> PRELOAD;
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 IconLookupFlags class
*
* @return the GType
*/
public static Type getType() {
return Interop.getType("gtk_icon_lookup_flags_get_type");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy