![]() |
![]() |
![]() |
Anjuta Developers Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Prerequisites | Signals |
#include <libanjuta/interfaces/ianjuta-markable.h> #define IANJUTA_TYPE_MARKABLE_ERROR #define IANJUTA_TYPE_MARKABLE_MARKER #define IANJUTA_MARKABLE_ERROR IAnjutaMarkable; IAnjutaMarkableIface; enum IAnjutaMarkableError; enum IAnjutaMarkableMarker; GType ianjuta_markable_marker_get_type (void
); GQuark ianjuta_markable_error_quark (void
); GType ianjuta_markable_get_type (void
); void ianjuta_markable_delete_all_markers (IAnjutaMarkable *obj
,IAnjutaMarkableMarker marker
,GError **err
); gboolean ianjuta_markable_is_marker_set (IAnjutaMarkable *obj
,gint location
,IAnjutaMarkableMarker marker
,GError **err
); gint ianjuta_markable_location_from_handle (IAnjutaMarkable *obj
,gint handle
,GError **err
); gint ianjuta_markable_mark (IAnjutaMarkable *obj
,gint location
,IAnjutaMarkableMarker marker
,GError **err
); void ianjuta_markable_unmark (IAnjutaMarkable *obj
,gint location
,IAnjutaMarkableMarker marker
,GError **err
);
#define IANJUTA_TYPE_MARKABLE_MARKER (ianjuta_markable_marker_get_type())
typedef struct { GTypeInterface g_iface; /* Signal */ void (*marker_clicked) (IAnjutaMarkable *obj, gboolean double_click, gint location); void (*delete_all_markers) (IAnjutaMarkable *obj, IAnjutaMarkableMarker marker, GError **err); gboolean (*is_marker_set) (IAnjutaMarkable *obj, gint location, IAnjutaMarkableMarker marker, GError **err); gint (*location_from_handle) (IAnjutaMarkable *obj, gint handle, GError **err); gint (*mark) (IAnjutaMarkable *obj, gint location, IAnjutaMarkableMarker marker, GError **err); void (*unmark) (IAnjutaMarkable *obj, gint location, IAnjutaMarkableMarker marker, GError **err); } IAnjutaMarkableIface;
typedef enum { IANJUTA_MARKABLE_LINEMARKER, IANJUTA_MARKABLE_BOOKMARK, IANJUTA_MARKABLE_BREAKPOINT_DISABLED, IANJUTA_MARKABLE_BREAKPOINT_ENABLED, IANJUTA_MARKABLE_PROGRAM_COUNTER } IAnjutaMarkableMarker;
This enumeration is used to specify the pixmap used for the marker
void ianjuta_markable_delete_all_markers (IAnjutaMarkable *obj
,IAnjutaMarkableMarker marker
,GError **err
);
Delete the marker
from all locations.
|
Self |
|
Marker to delete. |
|
Error propagation and reporting |
gboolean ianjuta_markable_is_marker_set (IAnjutaMarkable *obj
,gint location
,IAnjutaMarkableMarker marker
,GError **err
);
Check if the marker
is set at the given location
.
|
Self |
|
Location to check. |
|
Marker to check. |
|
Error propagation and reporting |
Returns : |
TRUE if the marker is set at the location, other false. |
gint ianjuta_markable_location_from_handle (IAnjutaMarkable *obj
,gint handle
,GError **err
);
Location where a marker is set could have moved by some operation in
the implementation. To retrieve the correct location where the marker
has moved, pass the handle retured by ianjuta_markable_mark()
to this
method.
|
Self |
|
Handle of location. |
|
Error propagation and reporting |
Returns : |
Current location where the marker was set. |
gint ianjuta_markable_mark (IAnjutaMarkable *obj
,gint location
,IAnjutaMarkableMarker marker
,GError **err
);
Marks the specified location with the given marker type. Location is implementation depenedent. For example, for an editor location means lines where markers are set.
|
Self |
|
Location at which the marker to set. |
|
Type of marker to be used |
|
Error propagation and reporting |
Returns : |
Handle of the location marked. Can be used later to obtain new location, if it has been moved due to addetions/deletions in the implementor object. |
void ianjuta_markable_unmark (IAnjutaMarkable *obj
,gint location
,IAnjutaMarkableMarker marker
,GError **err
);
Clears the marker
at given location
.
|
Self |
|
Location where the marker is set. |
|
The marker to unset. |
|
Error propagation and reporting |
"marker-clicked"
signalvoid user_function (IAnjutaMarkable *obj, gboolean double_click, gint location, gpointer user_data) : Run Last
The signal is emitted when the user clicks on a marker
|
Self |
|
whether the marker was double clicked |
|
location of the clicked marker |
|
user data set when the signal handler was connected. |