class Hamilton::Types::BackgroundTypeWallpaper

Overview

The background is a wallpaper in the JPEG format.

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 dark_theme_dimming : Int32 #

Dimming of the background in dark themes, as a percentage; 0-100.


def dark_theme_dimming=(dark_theme_dimming : Int32) #

Dimming of the background in dark themes, as a percentage; 0-100.


def document : Hamilton::Types::Document #

Document with the wallpaper.


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

Document with the wallpaper.


def is_blurred : Bool | Nil #

True, if the wallpaper is downscaled to fit in a 450x450 square and then box-blurred with radius 12.


def is_blurred=(is_blurred : Bool | Nil) #

True, if the wallpaper is downscaled to fit in a 450x450 square and then box-blurred with radius 12.


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 "wallpaper".


def type=(type : String) #

Type of the background, always "wallpaper".