Class SetSceneItemProperties.Bounds
- java.lang.Object
-
- nl.harm27.obs.websocket.api.requests.sceneitems.SetSceneItemProperties.Bounds
-
- Enclosing class:
- SetSceneItemProperties
public class SetSceneItemProperties.Bounds extends Object
-
-
Constructor Summary
Constructors Constructor Description Bounds()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<Integer>
getAlignment()
The new alignment of the bounding box.Optional<String>
getType()
The new bounds type of the source.Optional<Double>
getX()
The new width of the bounding box.Optional<Double>
getY()
The new height of the bounding box.void
setAlignment(int alignment)
The new alignment of the bounding box.void
setType(String type)
The new bounds type of the source.void
setX(double x)
The new width of the bounding box.void
setY(double y)
The new height of the bounding box.
-
-
-
Method Detail
-
getType
public Optional<String> getType()
The new bounds type of the source. Can be "OBS_BOUNDS_STRETCH", "OBS_BOUNDS_SCALE_INNER", "OBS_BOUNDS_SCALE_OUTER", "OBS_BOUNDS_SCALE_TO_WIDTH", "OBS_BOUNDS_SCALE_TO_HEIGHT", "OBS_BOUNDS_MAX_ONLY" or "OBS_BOUNDS_NONE".
-
setType
public void setType(String type)
The new bounds type of the source. Can be "OBS_BOUNDS_STRETCH", "OBS_BOUNDS_SCALE_INNER", "OBS_BOUNDS_SCALE_OUTER", "OBS_BOUNDS_SCALE_TO_WIDTH", "OBS_BOUNDS_SCALE_TO_HEIGHT", "OBS_BOUNDS_MAX_ONLY" or "OBS_BOUNDS_NONE".
-
getAlignment
public Optional<Integer> getAlignment()
The new alignment of the bounding box. (0-2, 4-6, 8-10)
-
setAlignment
public void setAlignment(int alignment)
The new alignment of the bounding box. (0-2, 4-6, 8-10)
-
setX
public void setX(double x)
The new width of the bounding box.
-
setY
public void setY(double y)
The new height of the bounding box.
-
-