Class: OBS::WebSocket::Protocol::Responses::GetSceneItemProperties

Inherits:
OBS::WebSocket::Protocol::Response show all
Defined in:
lib/obs/websocket/protocol.rb

Overview

Instance Attribute Summary collapse

Method Summary

Methods inherited from OBS::WebSocket::Protocol::Response

#initialize, #to_h

Constructor Details

This class inherits a constructor from OBS::WebSocket::Protocol::Response

Instance Attribute Details

#boundsHash (readonly)

Returns bounds field.

Returns:

  • (Hash)

    bounds field



4252
# File 'lib/obs/websocket/protocol.rb', line 4252

def bounds; get_field("bounds", Types::Object[{:type=>{:type=>Types::String, :json_name=>"type"}, :alignment=>{:type=>Types::Integer, :json_name=>"alignment"}, :x=>{:type=>Types::Float, :json_name=>"x"}, :y=>{:type=>Types::Float, :json_name=>"y"}}]); end

#cropHash (readonly)

Returns crop field.

Returns:

  • (Hash)

    crop field



4240
# File 'lib/obs/websocket/protocol.rb', line 4240

def crop; get_field("crop", Types::Object[{:top=>{:type=>Types::Integer, :json_name=>"top"}, :right=>{:type=>Types::Integer, :json_name=>"right"}, :bottom=>{:type=>Types::Integer, :json_name=>"bottom"}, :left=>{:type=>Types::Integer, :json_name=>"left"}}]); end

#group_childrenArray<SceneItemTransform>? (readonly)

Returns groupChildren field.

Returns:

  • (Array<SceneItemTransform>, nil)

    groupChildren field



4270
# File 'lib/obs/websocket/protocol.rb', line 4270

def group_children; get_field("groupChildren", Types::Optional[Types::Array[Types::SceneItemTransform]]); end

#heightFloat (readonly)

Returns height field.

Returns:

  • (Float)

    height field



4264
# File 'lib/obs/websocket/protocol.rb', line 4264

def height; get_field("height", Types::Float); end

#item_idInteger (readonly)

Returns itemId field.

Returns:

  • (Integer)

    itemId field



4228
# File 'lib/obs/websocket/protocol.rb', line 4228

def item_id; get_field("itemId", Types::Integer); end

#lockedBoolean (readonly)

Returns locked field.

Returns:

  • (Boolean)

    locked field



4249
# File 'lib/obs/websocket/protocol.rb', line 4249

def locked; get_field("locked", Types::Boolean); end

#mutedBoolean (readonly)

Returns muted field.

Returns:

  • (Boolean)

    muted field



4246
# File 'lib/obs/websocket/protocol.rb', line 4246

def muted; get_field("muted", Types::Boolean); end

#nameString (readonly)

Returns name field.

Returns:

  • (String)

    name field



4225
# File 'lib/obs/websocket/protocol.rb', line 4225

def name; get_field("name", Types::String); end

#parent_group_nameString? (readonly)

Returns parentGroupName field.

Returns:

  • (String, nil)

    parentGroupName field



4267
# File 'lib/obs/websocket/protocol.rb', line 4267

def parent_group_name; get_field("parentGroupName", Types::Optional[Types::String]); end

#positionHash (readonly)

Returns position field.

Returns:

  • (Hash)

    position field



4231
# File 'lib/obs/websocket/protocol.rb', line 4231

def position; get_field("position", Types::Object[{:x=>{:type=>Types::Float, :json_name=>"x"}, :y=>{:type=>Types::Float, :json_name=>"y"}, :alignment=>{:type=>Types::Integer, :json_name=>"alignment"}}]); end

#rotationFloat (readonly)

Returns rotation field.

Returns:

  • (Float)

    rotation field



4234
# File 'lib/obs/websocket/protocol.rb', line 4234

def rotation; get_field("rotation", Types::Float); end

#scaleHash (readonly)

Returns scale field.

Returns:

  • (Hash)

    scale field



4237
# File 'lib/obs/websocket/protocol.rb', line 4237

def scale; get_field("scale", Types::Object[{:x=>{:type=>Types::Float, :json_name=>"x"}, :y=>{:type=>Types::Float, :json_name=>"y"}, :filter=>{:type=>Types::String, :json_name=>"filter"}}]); end

#source_heightInteger (readonly)

Returns sourceHeight field.

Returns:

  • (Integer)

    sourceHeight field



4258
# File 'lib/obs/websocket/protocol.rb', line 4258

def source_height; get_field("sourceHeight", Types::Integer); end

#source_widthInteger (readonly)

Returns sourceWidth field.

Returns:

  • (Integer)

    sourceWidth field



4255
# File 'lib/obs/websocket/protocol.rb', line 4255

def source_width; get_field("sourceWidth", Types::Integer); end

#visibleBoolean (readonly)

Returns visible field.

Returns:

  • (Boolean)

    visible field



4243
# File 'lib/obs/websocket/protocol.rb', line 4243

def visible; get_field("visible", Types::Boolean); end

#widthFloat (readonly)

Returns width field.

Returns:

  • (Float)

    width field



4261
# File 'lib/obs/websocket/protocol.rb', line 4261

def width; get_field("width", Types::Float); end