class
Hamilton::Types::BackgroundTypePattern
- Hamilton::Types::BackgroundTypePattern
- Reference
- Object
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
- Hamilton::Types::Common
- JSON::Serializable
Defined in:
types/background_type.crConstructors
- .new(pull : JSON::PullParser)
- .new(params)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
- .new(**params)
Instance Method Summary
-
#document : Hamilton::Types::Document
Document with the wallpaper.
-
#document=(document : Hamilton::Types::Document)
Document with the wallpaper.
-
#fill : Hamilton::Types::BackgroundFill
The background fill that is combined with the pattern.
-
#fill=(fill : Hamilton::Types::BackgroundFill)
The background fill that is combined with the pattern.
-
#intensity : Int32
Intensity of the pattern when it is shown above the filled background; 0-100.
-
#intensity=(intensity : Int32)
Intensity of the pattern when it is shown above the filled background; 0-100.
-
#is_inverted : Bool | Nil
True, if the background fill must be applied only to the pattern itself.
-
#is_inverted=(is_inverted : Bool | Nil)
True, if the background fill must be applied only to the pattern itself.
-
#is_moving : Bool | Nil
True, if the background moves slightly when the device is tilted.
-
#is_moving=(is_moving : Bool | Nil)
True, if the background moves slightly when the device is tilted.
-
#non_nil_fields : Array(String)
List of available non-nil fields.
-
#non_nil_fields=(non_nil_fields : Array(String))
List of available non-nil fields.
-
#type : String
Type of the background, always "pattern".
-
#type=(type : String)
Type of the background, always "pattern".
Instance methods inherited from class Reference
==(other : Hamilton::Any)
==
Instance methods inherited from class Object
===(other : Hamilton::Any)
===
Constructor Detail
Instance Method Detail
The background fill that is combined with the pattern.
Intensity of the pattern when it is shown above the filled background; 0-100.
Intensity of the pattern when it is shown above the filled background; 0-100.
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.
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.
True, if the background moves slightly when the device is tilted.