class Crysterm::Shadow
- Crysterm::Shadow
- Reference
- Object
Overview
Class for shadow definition.
Defined in:
namespace.crConstructors
- .new(left : Bool | Int32 | Nil, top : Bool | Int32 | Nil, right : Bool | Int32 | Nil, bottom : Bool | Int32 | Nil, alpha : Float64 = @alpha)
- .new(alpha : Float64)
- .new(left : Int32 = @left, top : Int32 = @top, right : Int32 = @right, bottom : Int32 = @bottom, alpha : Float64 = @alpha)
Class Method Summary
- .default
- .default=(default : Crysterm::Shadow)
-
.from(value)
Parse shadow value
Instance Method Summary
-
#alpha : Float64
Shadow alpha value (0 == full transparency, 1 == full opacity)
-
#alpha=(alpha : Float64)
Shadow alpha value (0 == full transparency, 1 == full opacity)
-
#any?
Is there any [amount of] shadow defined?
-
#bottom : Int32
Height of shadow on the bottom side
-
#bottom=(bottom : Int32)
Height of shadow on the bottom side
-
#bottom?
Is there any shadow on bottom?
-
#left : Int32
Width of shadow on the left side
-
#left=(left : Int32)
Width of shadow on the left side
-
#left?
Is there any shadow on left side?
-
#right : Int32
Width of shadow on the right side
-
#right=(right : Int32)
Width of shadow on the right side
-
#right?
Is there any shadow on right side?
-
#top : Int32
Height of shadow on the top side
-
#top=(top : Int32)
Height of shadow on the top side
-
#top?
Is there any shadow on top?
Constructor Detail
def self.new(left : Bool | Int32 | Nil, top : Bool | Int32 | Nil, right : Bool | Int32 | Nil, bottom : Bool | Int32 | Nil, alpha : Float64 = @alpha)
#
def self.new(left : Int32 = @left, top : Int32 = @top, right : Int32 = @right, bottom : Int32 = @bottom, alpha : Float64 = @alpha)
#