class NEStley::Rect

Direct Known Subclasses

Defined in:

entity/rect.cr

Constructors

Instance Method Summary

Instance methods inherited from class NEStley::Entity

color_at(x, y) : UInt32 color_at, drawn! drawn!, needs_redraw? : Bool needs_redraw?, wants_coord?(x, y) : Bool wants_coord?

Constructor Detail

def self.new(width : UInt32, height : UInt32, x : Int32 = 0, y : Int32 = 0, background_color : Int32 = 11184640) #

[View source]

Instance Method Detail

def background_color : Int32 #

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

[View source]
def color_at(x, y) : UInt32 #

[View source]
def drawn! #

[View source]
def height : UInt32 #

[View source]
def height=(height : UInt32) #

[View source]
def needs_redraw : Bool #

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

[View source]
def needs_redraw? : Bool #

[View source]
def set_background(color : Int32) #

[View source]
def wants_coord?(x, y) : Bool #

[View source]
def width : UInt32 #

[View source]
def width=(width : UInt32) #

[View source]
def x : Int32 #

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

[View source]
def y : Int32 #

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

[View source]