Class: Google::Apis::SlidesV1::PageElementProperties

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

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.

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) ⇒ PageElementProperties

Returns a new instance of PageElementProperties



2288
2289
2290
# File 'generated/google/apis/slides_v1/classes.rb', line 2288

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

Instance Attribute Details

#page_object_idString

The object ID of the page where the element is located. Corresponds to the JSON property pageObjectId

Returns:

  • (String)


2268
2269
2270
# File 'generated/google/apis/slides_v1/classes.rb', line 2268

def page_object_id
  @page_object_id
end

#sizeGoogle::Apis::SlidesV1::Size

A width and height. Corresponds to the JSON property size



2273
2274
2275
# File 'generated/google/apis/slides_v1/classes.rb', line 2273

def size
  @size
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



2286
2287
2288
# File 'generated/google/apis/slides_v1/classes.rb', line 2286

def transform
  @transform
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2293
2294
2295
2296
2297
# File 'generated/google/apis/slides_v1/classes.rb', line 2293

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