Class: Google::Apis::SlidesV1::Shadow
- Inherits:
-
Object
- Object
- Google::Apis::SlidesV1::Shadow
- 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
-
#alignment ⇒ String
The alignment point of the shadow, that sets the origin for translate, scale and skew of the shadow.
-
#alpha ⇒ Float
The alpha of the shadow's color, from 0.0 to 1.0.
-
#blur_radius ⇒ Google::Apis::SlidesV1::Dimension
A magnitude in a single direction in the specified units.
-
#color ⇒ Google::Apis::SlidesV1::OpaqueColor
A themeable solid color value.
-
#property_state ⇒ String
The shadow property state.
-
#rotate_with_shape ⇒ Boolean
(also: #rotate_with_shape?)
Whether the shadow should rotate with the shape.
-
#transform ⇒ Google::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.
-
#type ⇒ String
The type of the shadow.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Shadow
constructor
A new instance of Shadow.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Shadow
Returns a new instance of Shadow
4393 4394 4395 |
# File 'generated/google/apis/slides_v1/classes.rb', line 4393 def initialize(**args) update!(**args) end |
Instance Attribute Details
#alignment ⇒ String
The alignment point of the shadow, that sets the origin for translate,
scale and skew of the shadow.
Corresponds to the JSON property alignment
4375 4376 4377 |
# File 'generated/google/apis/slides_v1/classes.rb', line 4375 def alignment @alignment end |
#alpha ⇒ Float
The alpha of the shadow's color, from 0.0 to 1.0.
Corresponds to the JSON property alpha
4380 4381 4382 |
# File 'generated/google/apis/slides_v1/classes.rb', line 4380 def alpha @alpha end |
#blur_radius ⇒ Google::Apis::SlidesV1::Dimension
A magnitude in a single direction in the specified units.
Corresponds to the JSON property blurRadius
4351 4352 4353 |
# File 'generated/google/apis/slides_v1/classes.rb', line 4351 def blur_radius @blur_radius end |
#color ⇒ Google::Apis::SlidesV1::OpaqueColor
A themeable solid color value.
Corresponds to the JSON property color
4385 4386 4387 |
# File 'generated/google/apis/slides_v1/classes.rb', line 4385 def color @color end |
#property_state ⇒ String
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
4346 4347 4348 |
# File 'generated/google/apis/slides_v1/classes.rb', line 4346 def property_state @property_state end |
#rotate_with_shape ⇒ Boolean Also known as: rotate_with_shape?
Whether the shadow should rotate with the shape.
Corresponds to the JSON property rotateWithShape
4390 4391 4392 |
# File 'generated/google/apis/slides_v1/classes.rb', line 4390 def rotate_with_shape @rotate_with_shape end |
#transform ⇒ Google::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
4369 4370 4371 |
# File 'generated/google/apis/slides_v1/classes.rb', line 4369 def transform @transform end |
#type ⇒ String
The type of the shadow.
Corresponds to the JSON property type
4356 4357 4358 |
# File 'generated/google/apis/slides_v1/classes.rb', line 4356 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 |
# File 'generated/google/apis/slides_v1/classes.rb', line 4398 def update!(**args) @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) @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) end |