Top | ![]() |
![]() |
![]() |
![]() |
IdeSourceLocation * | ide_source_location_ref () |
void | ide_source_location_unref () |
IdeSourceLocation * | ide_source_location_new () |
IdeSourceLocation * | ide_source_location_new_from_variant () |
IdeSourceLocation * | ide_source_location_new_for_path () |
guint | ide_source_location_get_line () |
guint | ide_source_location_get_line_offset () |
guint | ide_source_location_get_offset () |
IdeFile * | ide_source_location_get_file () |
IdeUri * | ide_source_location_get_uri () |
const gchar * | ide_source_location_get_path () |
gint | ide_source_location_compare () |
guint | ide_source_location_hash () |
GVariant * | ide_source_location_to_variant () |
IdeSourceLocation *
ide_source_location_ref (IdeSourceLocation *self
);
Increments the reference count of self
by one.
void
ide_source_location_unref (IdeSourceLocation *self
);
Decrements the reference count of self
by one. If the reference count
reaches zero, then the structure is freed.
IdeSourceLocation * ide_source_location_new (IdeFile *file
,guint line
,guint line_offset
,guint offset
);
Creates a new IdeSourceLocation, using the file, line, column, and character offset provided.
file |
an IdeFile |
|
line |
the line number starting from zero |
|
line_offset |
the character offset within the line |
|
offset |
the character offset in the file |
IdeSourceLocation *
ide_source_location_new_from_variant (GVariant *variant
);
Creates a new IdeSourceLocation using the serialized form from a previously serialized GVariant.
As a convenience, if variant
is NULL
, NULL
is returned.
See also: ide_source_location_to_variant()
Since: 3.30
IdeSourceLocation * ide_source_location_new_for_path (IdeContext *context
,const gchar *path
,guint line
,guint line_offset
);
guint
ide_source_location_get_line (IdeSourceLocation *self
);
Retrieves the target line number starting from 0.
guint
ide_source_location_get_line_offset (IdeSourceLocation *self
);
Retrieves the character offset within the line.
guint
ide_source_location_get_offset (IdeSourceLocation *self
);
Retrieves the character offset within the file.
IdeFile *
ide_source_location_get_file (IdeSourceLocation *self
);
The file represented by this source location.
const gchar *
ide_source_location_get_path (IdeSourceLocation *self
);
Gets the path for the file represented by the location.
Will return NULL
if the path is not native.
gint ide_source_location_compare (const IdeSourceLocation *a
,const IdeSourceLocation *b
);