class BlockCursor

Overview

Block appearance for Cursor. Assumes the width of the character under the cursor.

Defined in:

aspis/cursor.cr

Constructors

Instance Method Summary

Instance methods inherited from class Cursor

<=>(other : Cursor) <=>, ==(other : self) ==, acquire acquire, at_document_end? at_document_end?, at_document_start? at_document_start?, at_first_line? at_first_line?, at_last_line? at_last_line?, at_line_end? at_line_end?, at_line_start? at_line_start?, attract(other : Cursor, settings = SeekSettings.new) attract, color color, column column, coords coords, copy copy, each_line(upto other : Cursor, &) each_line, hash(hasher) hash, home? home?, ins(string : String) ins, line line, minmax(other : Cursor) minmax, motions : Stream(Motion) motions, move(delta : Int, settings = SeekSettings.new) move, partially_visible?(*, upto other : Cursor)
partially_visible?(*, from start : Int)
partially_visible?
, present(window) present, release release, scroll_to_view scroll_to_view, seek(other : Cursor, settings = SeekSettings.new)
seek(index : Int, settings = SeekSettings.new)
seek
, seek_column(column : Int, settings = SeekSettings.new) seek_column, seek_line_end(settings = SeekSettings.new) seek_line_end, seek_line_start(settings = SeekSettings.new) seek_line_start, size size, span(*, upto other : Cursor)
span(*, from start : Int)
span
, visible? visible?, ymove(delta : Int, settings = SeekSettings.new(home: false)) ymove

Constructor methods inherited from class Cursor

new(document : Document, index : Int32, home_column : Int32 = 0) new

Constructor Detail

def self.new(*args, **kwargs) #

[View source]

Instance Method Detail

def acquire #

[View source]
def color #
Description copied from class Cursor

Returns the color of this cursor.


[View source]
def present(window) #
Description copied from class Cursor

Presents this cursor on window.


[View source]
def release #

[View source]
def size #
Description copied from class Cursor

Returns a float vector that is the width, height of this cursor's rectangle.


[View source]