Class SetSceneItemCrop.Builder
- java.lang.Object
-
- nl.harm27.obs.websocket.api.base.BaseBuilder
-
- nl.harm27.obs.websocket.api.requests.sceneitems.SetSceneItemCrop.Builder
-
- Enclosing class:
- SetSceneItemCrop
public static class SetSceneItemCrop.Builder extends BaseBuilder
-
-
Constructor Summary
Constructors Constructor Description Builder(BiConsumer<BaseRequest,Consumer<BaseResponse>> requestConsumer, Consumer<BaseRequest> batchConsumer, Supplier<String> messageIdSupplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SetSceneItemCrop.Request
batchMessage()
Batch the message to the OBS Studio instance.int
getBottom()
Pixel position of the bottom of the source item.String
getItem()
Scene Item name.int
getLeft()
Pixel position of the left of the source item.int
getRight()
Pixel position of the right of the source item.Optional<String>
getSceneName()
Name of the scene the scene item belongs to.int
getTop()
Pixel position of the top of the source item.void
sendMessage(Consumer<SetSceneItemCrop.Response> consumer)
Send the message to the OBS Studio instance.void
setBottom(int bottom)
Pixel position of the bottom of the source item.void
setItem(String item)
Scene Item name.void
setLeft(int left)
Pixel position of the left of the source item.void
setRight(int right)
Pixel position of the right of the source item.void
setSceneName(String sceneName)
Name of the scene the scene item belongs to.void
setTop(int top)
Pixel position of the top of the source item.-
Methods inherited from class nl.harm27.obs.websocket.api.base.BaseBuilder
batchMessage, getNewMessageId, sendMessage
-
-
-
-
Constructor Detail
-
Builder
public Builder(BiConsumer<BaseRequest,Consumer<BaseResponse>> requestConsumer, Consumer<BaseRequest> batchConsumer, Supplier<String> messageIdSupplier)
-
-
Method Detail
-
getSceneName
public Optional<String> getSceneName()
Name of the scene the scene item belongs to. Defaults to the current scene.
-
setSceneName
public void setSceneName(String sceneName)
Name of the scene the scene item belongs to. Defaults to the current scene.
-
getItem
public String getItem()
Scene Item name.
-
setItem
public void setItem(String item)
Scene Item name.
-
getTop
public int getTop()
Pixel position of the top of the source item.
-
setTop
public void setTop(int top)
Pixel position of the top of the source item.
-
getBottom
public int getBottom()
Pixel position of the bottom of the source item.
-
setBottom
public void setBottom(int bottom)
Pixel position of the bottom of the source item.
-
getLeft
public int getLeft()
Pixel position of the left of the source item.
-
setLeft
public void setLeft(int left)
Pixel position of the left of the source item.
-
getRight
public int getRight()
Pixel position of the right of the source item.
-
setRight
public void setRight(int right)
Pixel position of the right of the source item.
-
sendMessage
public void sendMessage(Consumer<SetSceneItemCrop.Response> consumer)
Send the message to the OBS Studio instance.
-
batchMessage
public SetSceneItemCrop.Request batchMessage()
Batch the message to the OBS Studio instance.
-
-