class Google::Apis::SlidesV1::PageElementProperties

Common properties for a page element. Note: When you initially create a PageElement, the API may modify the values of both `size` and `transform`, but the visual size will be unchanged.

Attributes

page_object_id[RW]

The object ID of the page where the element is located. Corresponds to the JSON property `pageObjectId` @return [String]

size[RW]

A width and height. Corresponds to the JSON property `size` @return [Google::Apis::SlidesV1::Size]

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]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/slides_v1/classes.rb, line 2216
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 2221
def update!(**args)
  @page_object_id = args[:page_object_id] if args.key?(:page_object_id)
  @size = args[:size] if args.key?(:size)
  @transform = args[:transform] if args.key?(:transform)
end