![]() |
![]() |
![]() |
Xesam GLib Reference Manual | ![]() |
---|---|---|---|---|
XesamGHitsXesamGHits — Container used to encapsulate a batch of XesamGHit objects |
XesamGHitsPrivate; XesamGHits; guint xesam_g_hits_get_count (XesamGHits *hits); XesamGHit* xesam_g_hits_get (XesamGHits *hits, guint offset);
Container for conveniently handling and managing a batch of XesamGHit objects.
XesamGHits is available since 1.0
guint xesam_g_hits_get_count (XesamGHits *hits);
|
The hits object to get the hit count on |
Returns : |
The number of hits in the XesamGHits object |
XesamGHit* xesam_g_hits_get (XesamGHits *hits, guint offset);
Get a handle to the n'th XesamGHit in a XesamGHits object.
XesamGHit objects are generated lazily and cached. The hit is cached in the XesamGHits object for the entire lifetime of the parent hits.
If you need a reference to the hit past the lifetime of the XesamGHits object's lifetime you need to reference the XesamGHit object.
|
The XesamGHits object to retrieve a hit from |
|
Offset in the XesamGHits of the hit to retrieve |
Returns : |
The hit at the specified offset or NULL if the offset is out of
bounds
|