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.RequestbatchMessage()Batch the message to the OBS Studio instance.intgetBottom()Pixel position of the bottom of the source item.StringgetItem()Scene Item name.intgetLeft()Pixel position of the left of the source item.intgetRight()Pixel position of the right of the source item.Optional<String>getSceneName()Name of the scene the scene item belongs to.intgetTop()Pixel position of the top of the source item.voidsendMessage(Consumer<SetSceneItemCrop.Response> consumer)Send the message to the OBS Studio instance.voidsetBottom(int bottom)Pixel position of the bottom of the source item.voidsetItem(String item)Scene Item name.voidsetLeft(int left)Pixel position of the left of the source item.voidsetRight(int right)Pixel position of the right of the source item.voidsetSceneName(String sceneName)Name of the scene the scene item belongs to.voidsetTop(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.
-
-