struct Matter::Cluster::Definitions::ContentLauncher::StyleInformation

Overview

This object defines style information which can be used by content providers to change the Media Player’s style related properties.

Included Modules

Defined in:

matter/cluster/definitions/content_launcher.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(any : TLV::Any) #

[View source]

Class Method Detail

def self.from_io(io : IO, format : IO::ByteFormat = IO::ByteFormat::LittleEndian) #

[View source]
def self.from_slice(bytes : Bytes) #

[View source]
def self.from_tlv(any : TLV::Any) #

[View source]
def self.from_tlv(data : Bytes) #

[View source]

Instance Method Detail

def color : String | Nil #

This shall indicate the color, in RGB or RGBA, used for styling different Video Player sections like Logo, Watermark, etc. The value shall conform to the 6-digit or 8-digit format defined for CSS sRGB hexadecimal color notation [https://www.w3.org/TR/css-color-4/#hex-notation]. Examples:

• #76DE19 for R=0x76, G=0xDE, B=0x19, A absent

• #76DE1980 for R=0x76, G=0xDE, B=0x19, A=0x80


[View source]
def color=(color : String | Nil) #

This shall indicate the color, in RGB or RGBA, used for styling different Video Player sections like Logo, Watermark, etc. The value shall conform to the 6-digit or 8-digit format defined for CSS sRGB hexadecimal color notation [https://www.w3.org/TR/css-color-4/#hex-notation]. Examples:

• #76DE19 for R=0x76, G=0xDE, B=0x19, A absent

• #76DE1980 for R=0x76, G=0xDE, B=0x19, A=0x80


[View source]
def image_url : String | Nil #

This shall indicate the URL of image used for Styling different Video Player sections like Logo, Watermark etc.


[View source]
def image_url=(image_url : String | Nil) #

This shall indicate the URL of image used for Styling different Video Player sections like Logo, Watermark etc.


[View source]
def size : Dimension | Nil #

This shall indicate the size of the image used for Styling different Video Player sections like Logo, Watermark etc.


[View source]
def size=(size : Dimension | Nil) #

This shall indicate the size of the image used for Styling different Video Player sections like Logo, Watermark etc.


[View source]
def to_io(io : IO, format : IO::ByteFormat = IO::ByteFormat::LittleEndian) : Nil #

[View source]
def to_slice : Bytes #

[View source]
def to_tlv(outer_tag : Nil | UInt8 | Tuple(UInt16, UInt16) | Tuple(UInt16, UInt16, UInt16) = nil) : TLV::Any #

[View source]