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

Fill of the background.

Returns:



11
12
13
# File 'lib/tdlib/types/background_type/pattern.rb', line 11

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



11
12
13
# File 'lib/tdlib/types/background_type/pattern.rb', line 11

def intensity
  @intensity
end

#is_invertedBoolean

True, if the background fill must be applied only to the pattern itself. All other pixels are black in this case. For dark themes only.

Returns:

  • (Boolean)

    the current value of is_inverted



11
12
13
# File 'lib/tdlib/types/background_type/pattern.rb', line 11

def is_inverted
  @is_inverted
end

#is_movingBoolean

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

Returns:

  • (Boolean)

    the current value of is_moving



11
12
13
# File 'lib/tdlib/types/background_type/pattern.rb', line 11

def is_moving
  @is_moving
end