class Tourmaline::BackgroundTypePattern

Overview

The background is 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.

Included Modules

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(type : String, document : Tourmaline::Document, fill : Tourmaline::BackgroundFillFreeformGradient | Tourmaline::BackgroundFillGradient | Tourmaline::BackgroundFillSolid, intensity : Int32 | Int64, is_inverted : Bool | Nil = nil, is_moving : Bool | Nil = nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def document : Tourmaline::Document #

Document with the pattern


[View source]
def document=(document : Tourmaline::Document) #

Document with the pattern


[View source]

The background fill that is combined with the pattern


[View source]
def fill=(fill : Tourmaline::BackgroundFill) #

The background fill that is combined with the pattern


[View source]
def intensity : Int32 | Int64 #

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


[View source]
def intensity=(intensity : Int32 | Int64) #

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


[View source]
def is_inverted=(is_inverted : Bool | Nil) #

Optional. 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


[View source]
def is_inverted? : Bool | Nil #

Optional. 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


[View source]
def is_moving=(is_moving : Bool | Nil) #

Optional. True, if the background moves slightly when the device is tilted


[View source]
def is_moving? : Bool | Nil #

Optional. True, if the background moves slightly when the device is tilted


[View source]
def type : String #

Type of the background, always "pattern"


[View source]
def type=(type : String) #

Type of the background, always "pattern"


[View source]