![]() |
![]() |
![]() |
Tomoe Reference Manual | ![]() |
---|---|---|---|---|
TomoeCandidate; TomoeCandidate* tomoe_candidate_new (TomoeChar *chr); TomoeChar* tomoe_candidate_get_char (TomoeCandidate *cand); void tomoe_candidate_set_score (TomoeCandidate *cand, gint score); gint tomoe_candidate_get_score (TomoeCandidate *cand); gint tomoe_candidate_compare (const TomoeCandidate *a, const TomoeCandidate *b);
typedef struct _TomoeCandidate TomoeCandidate;
The TomoeCandidate struct contains only private fields and should not be directly accessed.
TomoeChar* tomoe_candidate_get_char (TomoeCandidate *cand);
cand : |
|
Returns : |
void tomoe_candidate_set_score (TomoeCandidate *cand, gint score);
cand : |
|
score : |
gint tomoe_candidate_get_score (TomoeCandidate *cand);
cand : |
|
Returns : |
gint tomoe_candidate_compare (const TomoeCandidate *a, const TomoeCandidate *b);
Compare two TomoeCandidate.
a : |
1st TomoeCandidate object to compare. |
b : |
2nd TomoeCandidate object to compare. |
Returns : | -1 a < b, 0 a= b, 1 a > b |