class Google::Apis::SlidesV1::Shadow

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.

Attributes

alignment[RW]

The alignment point of the shadow, that sets the origin for translate, scale and skew of the shadow. This property is read-only. Corresponds to the JSON property `alignment` @return [String]

alpha[RW]

The alpha of the shadow's color, from 0.0 to 1.0. Corresponds to the JSON property `alpha` @return [Float]

blur_radius[RW]

A magnitude in a single direction in the specified units. Corresponds to the JSON property `blurRadius` @return [Google::Apis::SlidesV1::Dimension]

color[RW]

A themeable solid color value. Corresponds to the JSON property `color` @return [Google::Apis::SlidesV1::OpaqueColor]

property_state[RW]

The shadow property state. Updating 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` @return [String]

rotate_with_shape[RW]

Whether the shadow should rotate with the shape. This property is read-only. Corresponds to the JSON property `rotateWithShape` @return [Boolean]

rotate_with_shape?[RW]

Whether the shadow should rotate with the shape. This property is read-only. Corresponds to the JSON property `rotateWithShape` @return [Boolean]

transform[RW]

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` @return [Google::Apis::SlidesV1::AffineTransform]

type[RW]

The type of the shadow. This property is read-only. Corresponds to the JSON property `type` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/slides_v1/classes.rb, line 3308
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/slides_v1/classes.rb, line 3313
def update!(**args)
  @alignment = args[:alignment] if args.key?(:alignment)
  @alpha = args[:alpha] if args.key?(:alpha)
  @blur_radius = args[:blur_radius] if args.key?(:blur_radius)
  @color = args[:color] if args.key?(:color)
  @property_state = args[:property_state] if args.key?(:property_state)
  @rotate_with_shape = args[:rotate_with_shape] if args.key?(:rotate_with_shape)
  @transform = args[:transform] if args.key?(:transform)
  @type = args[:type] if args.key?(:type)
end