class Crysterm::Shadow

Overview

Class for shadow definition.

Defined in:

namespace.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(left : Bool | Int32 | Nil, top : Bool | Int32 | Nil, right : Bool | Int32 | Nil, bottom : Bool | Int32 | Nil, alpha : Float64 = @alpha) #

[View source]
def self.new(alpha : Float64) #

[View source]
def self.new(left : Int32 = @left, top : Int32 = @top, right : Int32 = @right, bottom : Int32 = @bottom, alpha : Float64 = @alpha) #

[View source]

Class Method Detail

def self.default #

[View source]
def self.default=(default : Crysterm::Shadow) #

[View source]
def self.from(value) #

Parse shadow value


[View source]

Instance Method Detail

def alpha : Float64 #

Shadow alpha value (0 == full transparency, 1 == full opacity)


[View source]
def alpha=(alpha : Float64) #

Shadow alpha value (0 == full transparency, 1 == full opacity)


[View source]
def any? #

Is there any [amount of] shadow defined?


[View source]
def bottom : Int32 #

Height of shadow on the bottom side


[View source]
def bottom=(bottom : Int32) #

Height of shadow on the bottom side


[View source]
def bottom? #

Is there any shadow on bottom?


[View source]
def left : Int32 #

Width of shadow on the left side


[View source]
def left=(left : Int32) #

Width of shadow on the left side


[View source]
def left? #

Is there any shadow on left side?


[View source]
def right : Int32 #

Width of shadow on the right side


[View source]
def right=(right : Int32) #

Width of shadow on the right side


[View source]
def right? #

Is there any shadow on right side?


[View source]
def top : Int32 #

Height of shadow on the top side


[View source]
def top=(top : Int32) #

Height of shadow on the top side


[View source]
def top? #

Is there any shadow on top?


[View source]