| Top |
| IdeLocation * | ide_location_new_from_variant () |
| IdeLocation * | ide_location_new () |
| IdeLocation * | ide_location_new_with_offset () |
| IdeLocation * | ide_location_dup () |
| gint | ide_location_get_line () |
| gint | ide_location_get_line_offset () |
| gint | ide_location_get_offset () |
| GFile * | ide_location_get_file () |
| GVariant * | ide_location_to_variant () |
| gboolean | ide_location_compare () |
| guint | ide_location_hash () |
| GFile * | file | Read / Write / Construct Only |
| gint | line | Read / Write / Construct Only |
| gint | line-offset | Read / Write / Construct Only |
| gint | offset | Read / Write / Construct Only |
IdeLocation *
ide_location_new_from_variant (GVariant *variant);
Creates a new IdeLocation using the serialized form from a previously serialized GVariant.
As a convenience, if variant
is NULL, NULL is returned.
See also: ide_location_to_variant()
Since: 3.32
IdeLocation * ide_location_new_with_offset (GFile *file,gint line,gint line_offset,gint offset);
file |
a GFile |
|
line |
a line number starting from 0, or -1 if unknown |
|
line_offset |
a line offset starting from 0, or -1 if unknown |
|
offset |
a charcter offset in file starting from 0, or -1 if unknown |
Since: 3.32
IdeLocation *
ide_location_dup (IdeLocation *self);
Makes a deep copy of self
.
Since: 3.32
gint
ide_location_get_line (IdeLocation *self);
Gets the line within the “file”, or -1 if it is unknown.
Since: 3.32
gint
ide_location_get_line_offset (IdeLocation *self);
Gets the offset within the “line”, or -1 if it is unknown.
Since: 3.32
gint
ide_location_get_offset (IdeLocation *self);
Gets the offset within the file in characters, or -1 if it is unknown.
Since: 3.32
GFile *
ide_location_get_file (IdeLocation *self);
Gets the file within the location.
Since: 3.32
GVariant *
ide_location_to_variant (IdeLocation *self);
Serializes the location into a variant that can be used to transport across IPC boundaries.
This function will never return a variant with a floating reference.
Since: 3.32
“file” property “file” GFile *
The file representing the location.
Flags: Read / Write / Construct Only
“line” property “line” gint
The line number within the file, starting from 0 or -1 for unknown.
Flags: Read / Write / Construct Only
Allowed values: >= -1
Default value: -1
“line-offset” property “line-offset” gint
The offset within the line, starting from 0 or -1 for unknown.
Flags: Read / Write / Construct Only
Allowed values: >= -1
Default value: -1