Class: Google::Apis::SlidesV1::PageElement
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::SlidesV1::PageElement
 
 
- 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
A visual element rendered on a page.
Instance Attribute Summary collapse
- 
  
    
      #description  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The description of the page element.
 - 
  
    
      #element_group  ⇒ Google::Apis::SlidesV1::Group 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A PageElement kind representing a joined collection of PageElements.
 - 
  
    
      #image  ⇒ Google::Apis::SlidesV1::Image 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A PageElement kind representing an image.
 - 
  
    
      #line  ⇒ Google::Apis::SlidesV1::Line 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A PageElement kind representing a non-connector line, straight connector, curved connector, or bent connector.
 - 
  
    
      #object_id_prop  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The object ID for this page element.
 - 
  
    
      #shape  ⇒ Google::Apis::SlidesV1::Shape 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A PageElement kind representing a generic shape that does not have a more specific classification.
 - 
  
    
      #sheets_chart  ⇒ Google::Apis::SlidesV1::SheetsChart 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A PageElement kind representing a linked chart embedded from Google Sheets.
 - 
  
    
      #size  ⇒ Google::Apis::SlidesV1::Size 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A width and height.
 - 
  
    
      #table  ⇒ Google::Apis::SlidesV1::Table 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A PageElement kind representing a table.
 - 
  
    
      #title  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The title of the page element.
 - 
  
    
      #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.
 - 
  
    
      #video  ⇒ Google::Apis::SlidesV1::Video 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A PageElement kind representing a video.
 - 
  
    
      #word_art  ⇒ Google::Apis::SlidesV1::WordArt 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A PageElement kind representing word art.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ PageElement 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of PageElement.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ PageElement
Returns a new instance of PageElement
      2155 2156 2157  | 
    
      # File 'generated/google/apis/slides_v1/classes.rb', line 2155 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#description ⇒ String
The description of the page element. Combined with title to display alt
text.
Corresponds to the JSON property description
      2074 2075 2076  | 
    
      # File 'generated/google/apis/slides_v1/classes.rb', line 2074 def description @description end  | 
  
#element_group ⇒ Google::Apis::SlidesV1::Group
A PageElement kind representing a
joined collection of PageElements.
Corresponds to the JSON property elementGroup
      2080 2081 2082  | 
    
      # File 'generated/google/apis/slides_v1/classes.rb', line 2080 def element_group @element_group end  | 
  
#image ⇒ Google::Apis::SlidesV1::Image
A PageElement kind representing an
image.
Corresponds to the JSON property image
      2086 2087 2088  | 
    
      # File 'generated/google/apis/slides_v1/classes.rb', line 2086 def image @image end  | 
  
#line ⇒ Google::Apis::SlidesV1::Line
A PageElement kind representing a
non-connector line, straight connector, curved connector, or bent connector.
Corresponds to the JSON property line
      2092 2093 2094  | 
    
      # File 'generated/google/apis/slides_v1/classes.rb', line 2092 def line @line end  | 
  
#object_id_prop ⇒ String
The object ID for this page element. Object IDs used by
google.apps.slides.v1.Page and
google.apps.slides.v1.PageElement share the same namespace.
Corresponds to the JSON property objectId
      2099 2100 2101  | 
    
      # File 'generated/google/apis/slides_v1/classes.rb', line 2099 def object_id_prop @object_id_prop end  | 
  
#shape ⇒ Google::Apis::SlidesV1::Shape
A PageElement kind representing a
generic shape that does not have a more specific classification.
Corresponds to the JSON property shape
      2105 2106 2107  | 
    
      # File 'generated/google/apis/slides_v1/classes.rb', line 2105 def shape @shape end  | 
  
#sheets_chart ⇒ Google::Apis::SlidesV1::SheetsChart
A PageElement kind representing
a linked chart embedded from Google Sheets.
Corresponds to the JSON property sheetsChart
      2111 2112 2113  | 
    
      # File 'generated/google/apis/slides_v1/classes.rb', line 2111 def sheets_chart @sheets_chart end  | 
  
#size ⇒ Google::Apis::SlidesV1::Size
A width and height.
Corresponds to the JSON property size
      2116 2117 2118  | 
    
      # File 'generated/google/apis/slides_v1/classes.rb', line 2116 def size @size end  | 
  
#table ⇒ Google::Apis::SlidesV1::Table
A PageElement kind representing a
table.
Corresponds to the JSON property table
      2122 2123 2124  | 
    
      # File 'generated/google/apis/slides_v1/classes.rb', line 2122 def table @table end  | 
  
#title ⇒ String
The title of the page element. Combined with description to display alt
text.
Corresponds to the JSON property title
      2128 2129 2130  | 
    
      # File 'generated/google/apis/slides_v1/classes.rb', line 2128 def title @title 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
      2141 2142 2143  | 
    
      # File 'generated/google/apis/slides_v1/classes.rb', line 2141 def transform @transform end  | 
  
#video ⇒ Google::Apis::SlidesV1::Video
A PageElement kind representing a
video.
Corresponds to the JSON property video
      2147 2148 2149  | 
    
      # File 'generated/google/apis/slides_v1/classes.rb', line 2147 def video @video end  | 
  
#word_art ⇒ Google::Apis::SlidesV1::WordArt
A PageElement kind representing
word art.
Corresponds to the JSON property wordArt
      2153 2154 2155  | 
    
      # File 'generated/google/apis/slides_v1/classes.rb', line 2153 def word_art @word_art end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174  | 
    
      # File 'generated/google/apis/slides_v1/classes.rb', line 2160 def update!(**args) @description = args[:description] if args.key?(:description) @element_group = args[:element_group] if args.key?(:element_group) @image = args[:image] if args.key?(:image) @line = args[:line] if args.key?(:line) @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop) @shape = args[:shape] if args.key?(:shape) @sheets_chart = args[:sheets_chart] if args.key?(:sheets_chart) @size = args[:size] if args.key?(:size) @table = args[:table] if args.key?(:table) @title = args[:title] if args.key?(:title) @transform = args[:transform] if args.key?(:transform) @video = args[:video] if args.key?(:video) @word_art = args[:word_art] if args.key?(:word_art) end  |