enum Termbox::Color::Also

Overview

An output-mode-independent attribute. Exists to delay selection between NormalColor and TrueColor.

Defined in:

termbox2/color.cr

Enum Members

None = 0
Bold = 1
Underline = 2
Reverse = 4
Italic = 8
Blink = 16

Class Method Summary

Instance Method Summary

Class Method Detail

def self.[](ord) #

Creates an Also from a member's index.


[View source]
def self.[]?(ord) #

Creates an Also from a member's index.


[View source]
def self.count #

Returns the amount of enum members.


[View source]

Instance Method Detail

def blink? #

[View source]
def bold? #

[View source]
def for(mode : OutputMode) #

Returns the concrete attribute(s) for mode.


[View source]
def italic? #

[View source]
def none? #

[View source]
def ord #

Returns the index of this member.


[View source]
def reverse? #

[View source]
def underline? #

[View source]