class Crysterm::Border
- Crysterm::Border
- Reference
- Object
Overview
Class for border definition.
Defined in:
namespace.crConstructors
- .new(left : Int, top : Int, right : Int, bottom : Int)
- .new(all : Int)
- .new(type : Crysterm::BorderType = @type, bg : Nil | String = @bg, fg : Nil | String = @fg, left : Int32 = @left, top : Int32 = @top, right : Int32 = @right, bottom : Int32 = @bottom)
Class Method Summary
Instance Method Summary
- #adjust(pos, sign = 1)
-
#any?
Is there any [amount of] border defined?
- #bg : String | Nil
- #bg=(bg : String | Nil)
- #blink=(blink : Bool)
- #blink? : Bool
-
#bold=(bold : Bool)
XXX There is some duplication between style and these 5.
-
#bold? : Bool
XXX There is some duplication between style and these 5.
- #bottom : Int32
- #bottom=(bottom : Int32)
-
#bottom?
Is there any border on bottom?
- #char : Char
- #char=(char : Char)
- #fg : String | Nil
- #fg=(fg : String | Nil)
- #inverse=(inverse : Bool)
- #inverse? : Bool
- #left : Int32
- #left=(left : Int32)
-
#left?
Is there any border on left side?
- #right : Int32
- #right=(right : Int32)
-
#right?
Is there any border on right side?
- #top : Int32
- #top=(top : Int32)
-
#top?
Is there any border on top?
- #type : Crysterm::BorderType
- #type=(type : Crysterm::BorderType)
- #underline=(underline : Bool)
- #underline? : Bool
- #visible=(visible : Bool)
- #visible? : Bool
Constructor Detail
def self.new(type : Crysterm::BorderType = @type, bg : Nil | String = @bg, fg : Nil | String = @fg, left : Int32 = @left, top : Int32 = @top, right : Int32 = @right, bottom : Int32 = @bottom)
#
Class Method Detail
Instance Method Detail
def bold=(bold : Bool)
#
XXX There is some duplication between style and these 5. They must be present for sattr() to be able to work on the Border object. But on the other hand, it allows these features which do not exist in Blessed.
def bold? : Bool
#
XXX There is some duplication between style and these 5. They must be present for sattr() to be able to work on the Border object. But on the other hand, it allows these features which do not exist in Blessed.