public enum WlShellSurfaceFullscreenMethod extends Enum<WlShellSurfaceFullscreenMethod>
Hints to indicate to the compositor how to deal with a conflict between the dimensions of the surface and the dimensions of the output. The compositor is free to ignore this parameter.
| Enum Constant and Description |
|---|
DEFAULT
no preference, apply default policy
|
DRIVER
switch output mode to the smallest mode that can fit the surface, add black borders to compensate size mismatch
|
FILL
no upscaling, center on output and add black borders to compensate size mismatch
|
SCALE
scale, preserve the surface's aspect ratio and center on output
|
| Modifier and Type | Field and Description |
|---|---|
int |
value |
| Modifier and Type | Method and Description |
|---|---|
static WlShellSurfaceFullscreenMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WlShellSurfaceFullscreenMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WlShellSurfaceFullscreenMethod DEFAULT
public static final WlShellSurfaceFullscreenMethod SCALE
public static final WlShellSurfaceFullscreenMethod DRIVER
public static final WlShellSurfaceFullscreenMethod FILL
public static WlShellSurfaceFullscreenMethod[] values()
for (WlShellSurfaceFullscreenMethod c : WlShellSurfaceFullscreenMethod.values()) System.out.println(c);
public static WlShellSurfaceFullscreenMethod valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2016. All rights reserved.