module Termisu::FFI::Conversions

Defined in:

termisu/ffi/conversions.cr

Constant Summary

ATTRIBUTE_MASK = (((((((Attribute::Bold.value | Attribute::Underline.value) | Attribute::Reverse.value) | Attribute::Blink.value) | Attribute::Dim.value) | Attribute::Cursive.value) | Attribute::Hidden.value) | Attribute::Strikethrough.value).to_u16

Class Method Summary

Class Method Detail

def self.attr_from_bits(bits : UInt16) : Attribute #

[View source]
def self.blank_event : Termisu::FFI::ABI::Event #

[View source]
def self.codepoint_to_char(codepoint : UInt32) : Char #

[View source]
def self.color_from_abi(color : Termisu::FFI::ABI::Color) : Color #

[View source]
def self.style_from_ptr(style : Pointer(Termisu::FFI::ABI::CellStyle)) : Tuple(Color, Color, Attribute) #

[View source]
def self.to_abi_event(event : Event::Any) : Termisu::FFI::ABI::Event #

[View source]