Class: TencentCloud::Aiart::V20221229::LogoRect

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20221229/models.rb

Overview

输入框

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(x = nil, y = nil, width = nil, height = nil) ⇒ LogoRect

Returns a new instance of LogoRect.



575
576
577
578
579
580
# File 'lib/v20221229/models.rb', line 575

def initialize(x=nil, y=nil, width=nil, height=nil)
  @X = x
  @Y = y
  @Width = width
  @Height = height
end

Instance Attribute Details

#HeightObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • X:

    左上角X坐标

  • Y:

    左上角Y坐标

  • Width:

    方框宽度

  • Height:

    方框高度



573
574
575
# File 'lib/v20221229/models.rb', line 573

def Height
  @Height
end

#WidthObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • X:

    左上角X坐标

  • Y:

    左上角Y坐标

  • Width:

    方框宽度

  • Height:

    方框高度



573
574
575
# File 'lib/v20221229/models.rb', line 573

def Width
  @Width
end

#XObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • X:

    左上角X坐标

  • Y:

    左上角Y坐标

  • Width:

    方框宽度

  • Height:

    方框高度



573
574
575
# File 'lib/v20221229/models.rb', line 573

def X
  @X
end

#YObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • X:

    左上角X坐标

  • Y:

    左上角Y坐标

  • Width:

    方框宽度

  • Height:

    方框高度



573
574
575
# File 'lib/v20221229/models.rb', line 573

def Y
  @Y
end

Instance Method Details

#deserialize(params) ⇒ Object



582
583
584
585
586
587
# File 'lib/v20221229/models.rb', line 582

def deserialize(params)
  @X = params['X']
  @Y = params['Y']
  @Width = params['Width']
  @Height = params['Height']
end