class Hamilton::Types::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:

types/background_type.cr

Constructors

Instance Method Summary

Instance methods inherited from class Reference

==(other : Hamilton::Any) ==

Instance methods inherited from class Object

===(other : Hamilton::Any) ===

Constructor Detail

def self.new(pull : JSON::PullParser) #

def self.new(params) #

def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

def self.new(**params) #

Instance Method Detail

def document : Hamilton::Types::Document #

Document with the wallpaper.


def document=(document : Hamilton::Types::Document) #

Document with the wallpaper.


The background fill that is combined with the pattern.


The background fill that is combined with the pattern.


def intensity : Int32 #

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


def intensity=(intensity : Int32) #

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


def is_inverted : Bool | Nil #

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.


def is_inverted=(is_inverted : Bool | Nil) #

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.


def is_moving : Bool | Nil #

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


def is_moving=(is_moving : Bool | Nil) #

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


def non_nil_fields : Array(String) #

List of available non-nil fields.


def non_nil_fields=(non_nil_fields : Array(String)) #

List of available non-nil fields.


def type : String #

Type of the background, always "pattern".


def type=(type : String) #

Type of the background, always "pattern".