Class: Google::Apis::SlidesV1::Shadow

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/slides_v1/classes.rb,
generated/google/apis/slides_v1/representations.rb,
generated/google/apis/slides_v1/representations.rb

Overview

The shadow properties of a page element. If these fields are unset, they may be inherited from a parent placeholder if it exists. If there is no parent, the fields will default to the value used for new page elements created in the Slides editor, which may depend on the page element kind.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Shadow

Returns a new instance of Shadow



1120
1121
1122
# File 'generated/google/apis/slides_v1/classes.rb', line 1120

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#alignmentString

The alignment point of the shadow, that sets the origin for translate, scale and skew of the shadow. Corresponds to the JSON property alignment

Returns:

  • (String)


1118
1119
1120
# File 'generated/google/apis/slides_v1/classes.rb', line 1118

def alignment
  @alignment
end

#alphaFloat

The alpha of the shadow's color, from 0.0 to 1.0. Corresponds to the JSON property alpha

Returns:

  • (Float)


1069
1070
1071
# File 'generated/google/apis/slides_v1/classes.rb', line 1069

def alpha
  @alpha
end

#blur_radiusGoogle::Apis::SlidesV1::Dimension

A magnitude in a single direction in the specified units. Corresponds to the JSON property blurRadius



1094
1095
1096
# File 'generated/google/apis/slides_v1/classes.rb', line 1094

def blur_radius
  @blur_radius
end

#colorGoogle::Apis::SlidesV1::OpaqueColor

A themeable solid color value. Corresponds to the JSON property color



1074
1075
1076
# File 'generated/google/apis/slides_v1/classes.rb', line 1074

def color
  @color
end

#property_stateString

The shadow property state. Updating the the shadow on a page element will implicitly update this field to RENDERED, unless another value is specified in the same request. To have no shadow on a page element, set this field to NOT_RENDERED. In this case, any other shadow fields set in the same request will be ignored. Corresponds to the JSON property propertyState

Returns:

  • (String)


1089
1090
1091
# File 'generated/google/apis/slides_v1/classes.rb', line 1089

def property_state
  @property_state
end

#rotate_with_shapeBoolean Also known as: rotate_with_shape?

Whether the shadow should rotate with the shape. Corresponds to the JSON property rotateWithShape

Returns:

  • (Boolean)


1079
1080
1081
# File 'generated/google/apis/slides_v1/classes.rb', line 1079

def rotate_with_shape
  @rotate_with_shape
end

#transformGoogle::Apis::SlidesV1::AffineTransform

AffineTransform uses a 3x3 matrix with an implied last row of [ 0 0 1 ] to transform source coordinates (x,y) into destination coordinates (x', y') according to: x' x = shear_y scale_y translate_y 1 [ 1 ] After transformation, x' = scale_x * x + shear_x * y + translate_x; y' = scale_y * y + shear_y * x + translate_y; This message is therefore composed of these six matrix elements. Corresponds to the JSON property transform



1112
1113
1114
# File 'generated/google/apis/slides_v1/classes.rb', line 1112

def transform
  @transform
end

#typeString

The type of the shadow. Corresponds to the JSON property type

Returns:

  • (String)


1099
1100
1101
# File 'generated/google/apis/slides_v1/classes.rb', line 1099

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
# File 'generated/google/apis/slides_v1/classes.rb', line 1125

def update!(**args)
  @alpha = args[:alpha] if args.key?(:alpha)
  @color = args[:color] if args.key?(:color)
  @rotate_with_shape = args[:rotate_with_shape] if args.key?(:rotate_with_shape)
  @property_state = args[:property_state] if args.key?(:property_state)
  @blur_radius = args[:blur_radius] if args.key?(:blur_radius)
  @type = args[:type] if args.key?(:type)
  @transform = args[:transform] if args.key?(:transform)
  @alignment = args[:alignment] if args.key?(:alignment)
end