![]() |
![]() |
![]() |
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);
|
|
Returns : |
void tomoe_candidate_set_score (TomoeCandidate *cand, gint score);
|
|
|
gint tomoe_candidate_get_score (TomoeCandidate *cand);
|
|
Returns : |
gint tomoe_candidate_compare (const TomoeCandidate *a, const TomoeCandidate *b);
Compare two TomoeCandidate.
|
1st TomoeCandidate object to compare. |
|
2nd TomoeCandidate object to compare. |
Returns : |
-1 a < b, 0 a= b, 1 a > b |
"score"
property"score" guint : Read / Write
Score of this candidate. Lower value has higher priority.
Allowed values: <= G_MAXINT
Default value: 0