struct Gtk::CssLocation
- Gtk::CssLocation
- Struct
- Value
- Object
Overview
Represents a location in a file or other source of data parsed by the CSS engine.
The bytes and line_bytes offsets are meant to be used to programmatically match data. The lines and line_chars offsets can be used for printing the location in a file.
Note that the lines parameter starts from 0 and is increased whenever a CSS line break is encountered. (CSS defines the C character sequences "\r\n", "\r", "\n" and "\f" as newlines.) If your document uses different rules for line breaking, you might want run into problems here.
Defined in:
lib/gi-crystal/src/auto/gtk-4.0/css_location.crConstructors
- .new(pointer : Pointer(Void), transfer : GICrystal::Transfer)
- .new(data : LibGtk::CssLocation, _transfer : GICrystal::Transfer)
- .new(bytes : UInt64 | Nil = nil, chars : UInt64 | Nil = nil, lines : UInt64 | Nil = nil, line_bytes : UInt64 | Nil = nil, line_chars : UInt64 | Nil = nil)
Instance Method Summary
- #==(other : self) : Bool
- #bytes(*args, **options)
- #bytes(*args, **options, &)
- #bytes=(arg)
- #chars(*args, **options)
- #chars(*args, **options, &)
- #chars=(arg)
- #line_bytes(*args, **options)
- #line_bytes(*args, **options, &)
- #line_bytes=(arg)
- #line_chars(*args, **options)
- #line_chars(*args, **options, &)
- #line_chars=(arg)
- #lines(*args, **options)
- #lines(*args, **options, &)
- #lines=(arg)
Constructor Detail
def self.new(bytes : UInt64 | Nil = nil, chars : UInt64 | Nil = nil, lines : UInt64 | Nil = nil, line_bytes : UInt64 | Nil = nil, line_chars : UInt64 | Nil = nil)
#