class Crysterm::Border

Overview

Class for border definition.

Defined in:

namespace.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(left : Int, top : Int, right : Int, bottom : Int) #

[View source]
def self.new(all : Int) #

[View source]
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) #

[View source]

Class Method Detail

def self.from(value) #

[View source]

Instance Method Detail

def adjust(pos, sign = 1) #

[View source]
def any? #

Is there any [amount of] border defined?


[View source]
def bg : String | Nil #

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

[View source]
def blink=(blink : Bool) #

[View source]
def blink? : Bool #

[View source]
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.


[View source]
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.


[View source]
def bottom : Int32 #

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

[View source]
def bottom? #

Is there any border on bottom?


[View source]
def char : Char #

[View source]
def char=(char : Char) #

[View source]
def fg : String | Nil #

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

[View source]
def inverse=(inverse : Bool) #

[View source]
def inverse? : Bool #

[View source]
def left : Int32 #

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

[View source]
def left? #

Is there any border on left side?


[View source]
def right : Int32 #

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

[View source]
def right? #

Is there any border on right side?


[View source]
def top : Int32 #

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

[View source]
def top? #

Is there any border on top?


[View source]
def type : Crysterm::BorderType #

[View source]
def type=(type : Crysterm::BorderType) #

[View source]
def underline=(underline : Bool) #

[View source]
def underline? : Bool #

[View source]
def visible=(visible : Bool) #

[View source]
def visible? : Bool #

[View source]