class GBA::Reg::DISPCNT
- GBA::Reg::DISPCNT
- BitField(UInt16)
- Reference
- Object
Included Modules
Defined in:
crab/gba/reg.crConstant Summary
-
FIELDS =
[{bg_mode, T, 3, false, false}, {reserved_for_bios, Bool, 1, true, false}, {display_frame_select, Bool, 1, false, false}, {hblank_interval_free, Bool, 1, false, false}, {obj_mapping_1d, Bool, 1, false, false}, {forced_blank, Bool, 1, false, false}, {default_enable_bits, T, 5, false, false}, {window_0_display, Bool, 1, false, false}, {window_1_display, Bool, 1, false, false}, {obj_window_display, Bool, 1, false, false}] of Tuple(String, Crystal::Macros::Path, Int32, Bool, Bool)
-
SIZE =
16
Constructors
Instance Method Summary
-
#==(other : self)
Returns
true
if this reference is the same as other. - #bg_mode : UInt16
- #bg_mode=(val : UInt16) : Nil
- #default_enable_bits : UInt16
- #default_enable_bits=(val : UInt16) : Nil
- #display_frame_select : Bool
- #display_frame_select=(val : Bool) : Nil
- #forced_blank : Bool
- #forced_blank=(val : Bool) : Nil
-
#hash(hasher)
See
Object#hash(hasher)
- #hblank_interval_free : Bool
- #hblank_interval_free=(val : Bool) : Nil
- #obj_mapping_1d : Bool
- #obj_mapping_1d=(val : Bool) : Nil
- #obj_window_display : Bool
- #obj_window_display=(val : Bool) : Nil
- #reserved_for_bios : Bool
- #reserved_for_bios=(val : Bool) : Nil
-
#to_s(io : IO) : Nil
Appends a short String representation of this object which includes its class name and its object address.
- #value : T
- #value=(value : T)
- #window_0_display : Bool
- #window_0_display=(val : Bool) : Nil
- #window_1_display : Bool
- #window_1_display=(val : Bool) : Nil
Instance methods inherited from module GBA::Reg::Base16
read_byte(byte_num : Int) : UInt8
read_byte,
write_byte(byte_num : Int, byte : UInt8) : UInt8
write_byte
Constructor Detail
Instance Method Detail
def ==(other : self)
#
Description copied from class Reference
Returns true
if this reference is the same as other. Invokes same?
.
def to_s(io : IO) : Nil
#
Description copied from class Reference
Appends a short String representation of this object which includes its class name and its object address.
class Person
def initialize(@name : String, @age : Int32)
end
end
Person.new("John", 32).to_s # => #<Person:0x10a199f20>