class Crysterm::LPos

Overview

Helper class implementing only minimal position-related interface. Used for holding widget's last rendered position. XXX Could be renamed to LastRenderedPos[ition] for clarity.

Defined in:

namespace.cr

Constant Summary

None = new

Constructors

Instance Method Summary

Constructor Detail

def self.new(xi : Int32 = @xi, xl : Int32 = @xl, yi : Int32 = @yi, yl : Int32 = @yl, base : Int32 = @base, no_left : Bool = @no_left, no_right : Bool = @no_right, no_top : Bool = @no_top, no_bottom : Bool = @no_bottom, renders : Int32 = @renders, aleft : Int32 | Nil = @aleft, atop : Int32 | Nil = @atop, aright : Int32 | Nil = @aright, abottom : Int32 | Nil = @abottom, awidth : Int32 | Nil = @awidth, aheight : Int32 | Nil = @aheight, ileft : Int32 = @ileft, itop : Int32 = @itop, iright : Int32 = @iright, ibottom : Int32 = @ibottom, iwidth : Int32 = @iwidth, iheight : Int32 = @iheight) #

[View source]

Instance Method Detail

def _clean_sides : Bool #

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

[View source]
def _scroll_bottom : Int32 #

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

[View source]
def abottom : Int32 | Nil #

[View source]
def abottom=(abottom : Int32 | Nil) #

[View source]
def aheight : Int32 | Nil #

[View source]
def aheight=(aheight : Int32 | Nil) #

[View source]
def aleft : Int32 | Nil #

[View source]
def aleft=(aleft : Int32 | Nil) #

[View source]
def aright : Int32 | Nil #

[View source]
def aright=(aright : Int32 | Nil) #

[View source]
def atop : Int32 | Nil #

[View source]
def atop=(atop : Int32 | Nil) #

[View source]
def awidth : Int32 | Nil #

[View source]
def awidth=(awidth : Int32 | Nil) #

[View source]
def base : Int32 #

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

[View source]
def ibottom : Int32 #

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

[View source]
def iheight : Int32 #

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

[View source]
def ileft : Int32 #

These should be allowed to be just 0 because I'd think their offsets are already included in a* properties. (XXX Verify that and fix; seems like an inconsistency in logic if that sentence/description is true.


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

These should be allowed to be just 0 because I'd think their offsets are already included in a* properties. (XXX Verify that and fix; seems like an inconsistency in logic if that sentence/description is true.


[View source]
def iright : Int32 #

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

[View source]
def itop : Int32 #

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

[View source]
def iwidth : Int32 #

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

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

[View source]
def no_bottom? : Bool #

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

Informs us which side is partly hidden due to being enclosed in a parent (and potentially scrollable) element.


[View source]
def no_left? : Bool #

Informs us which side is partly hidden due to being enclosed in a parent (and potentially scrollable) element.


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

[View source]
def no_right? : Bool #

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

[View source]
def no_top? : Bool #

[View source]
def renders : Int32 #

Number of times object was rendered


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

Number of times object was rendered


[View source]
def xi : Int32 #

Starting cell on X axis


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

Starting cell on X axis


[View source]
def xl : Int32 #

Ending cell on X axis


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

Ending cell on X axis


[View source]
def yi : Int32 #

Starting cell on Y axis


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

Starting cell on Y axis


[View source]
def yl : Int32 #

Endint cell on Y axis


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

Endint cell on Y axis


[View source]