Class: Google::Apis::SlidesV1::PageBackgroundFill

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

The page background fill.

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

Returns a new instance of PageBackgroundFill



2134
2135
2136
# File 'generated/google/apis/slides_v1/classes.rb', line 2134

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

Instance Attribute Details

#property_stateString

The background fill property state. Updating the fill on a page will implicitly update this field to RENDERED, unless another value is specified in the same request. To have no fill on a page, set this field to NOT_RENDERED. In this case, any other fill fields set in the same request will be ignored. Corresponds to the JSON property propertyState

Returns:

  • (String)


2118
2119
2120
# File 'generated/google/apis/slides_v1/classes.rb', line 2118

def property_state
  @property_state
end

#solid_fillGoogle::Apis::SlidesV1::SolidFill

A solid color fill. The page or page element is filled entirely with the specified color value. If any field is unset, its value may be inherited from a parent placeholder if it exists. Corresponds to the JSON property solidFill



2126
2127
2128
# File 'generated/google/apis/slides_v1/classes.rb', line 2126

def solid_fill
  @solid_fill
end

#stretched_picture_fillGoogle::Apis::SlidesV1::StretchedPictureFill

The stretched picture fill. The page or page element is filled entirely with the specified picture. The picture is stretched to fit its container. Corresponds to the JSON property stretchedPictureFill



2132
2133
2134
# File 'generated/google/apis/slides_v1/classes.rb', line 2132

def stretched_picture_fill
  @stretched_picture_fill
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2139
2140
2141
2142
2143
# File 'generated/google/apis/slides_v1/classes.rb', line 2139

def update!(**args)
  @property_state = args[:property_state] if args.key?(:property_state)
  @solid_fill = args[:solid_fill] if args.key?(:solid_fill)
  @stretched_picture_fill = args[:stretched_picture_fill] if args.key?(:stretched_picture_fill)
end