class Gtk::CssLocation
- Gtk::CssLocation
- Reference
- 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:
auto/gtk-4.0/css_location.crConstructors
- .new(pointer : Pointer(Void), transfer : GICrystal::Transfer)
- .new(bytes : UInt64? = nil, chars : UInt64? = nil, lines : UInt64? = nil, line_bytes : UInt64? = nil, line_chars : UInt64? = nil)
Instance Method Summary
-
#==(other : self) : Bool
Returns
true
if this reference is the same as other. - #bytes : UInt64
- #bytes=(value : UInt64)
- #chars : UInt64
- #chars=(value : UInt64)
- #finalize
- #line_bytes : UInt64
- #line_bytes=(value : UInt64)
- #line_chars : UInt64
- #line_chars=(value : UInt64)
- #lines : UInt64
- #lines=(value : UInt64)
- #to_unsafe : Pointer(Void)
Constructor Detail
def self.new(bytes : UInt64? = nil, chars : UInt64? = nil, lines : UInt64? = nil, line_bytes : UInt64? = nil, line_chars : UInt64? = nil)
#
Instance Method Detail
def ==(other : self) : Bool
#
Description copied from class Reference
Returns true
if this reference is the same as other. Invokes same?
.