Class: TD::Types::BackgroundType::Pattern

Inherits:
TD::Types::BackgroundType show all
Defined in:
lib/tdlib/types/background_type/pattern.rb

Overview

A PNG or TGV (gzipped subset of SVG with MIME type “application/x-tgwallpattern”) pattern to be combined with the

background fill chosen by the user.

Instance Attribute Summary collapse

Method Summary

Methods inherited from TD::Types::Base

#to_hash, #to_json

Instance Attribute Details

#fillTD::Types::BackgroundFill

Description of the background fill.

Returns:



8
9
10
# File 'lib/tdlib/types/background_type/pattern.rb', line 8

def fill
  @fill
end

#intensityInteger

Intensity of the pattern when it is shown above the filled background; 0-100.

Returns:

  • (Integer)

    the current value of intensity



8
9
10
# File 'lib/tdlib/types/background_type/pattern.rb', line 8

def intensity
  @intensity
end

#is_movingBoolean

True, if the background needs to be slightly moved when device is tilted.

Returns:

  • (Boolean)

    the current value of is_moving



8
9
10
# File 'lib/tdlib/types/background_type/pattern.rb', line 8

def is_moving
  @is_moving
end