class Gtk::CssLocation


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:



Instance Method Summary

Constructor Detail

def : Pointer(Void), transfer : GICrystal::Transfer) #

def : 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?.

def bytes : UInt64 #

def bytes=(value : UInt64) #

def chars : UInt64 #

def chars=(value : UInt64) #

def finalize #

def line_bytes : UInt64 #

def line_bytes=(value : UInt64) #

def line_chars : UInt64 #

def line_chars=(value : UInt64) #

def lines : UInt64 #

def lines=(value : UInt64) #

def to_unsafe : Pointer(Void) #