TomoeCandidate

TomoeCandidate

Functions

Properties

TomoeChar * char Read / Write / Construct Only
guint score Read / Write

Types and Values

Object Hierarchy

    GObject
    ╰── TomoeCandidate

Description

Functions

tomoe_candidate_new ()

TomoeCandidate *
tomoe_candidate_new (TomoeChar *chr);

tomoe_candidate_get_char ()

TomoeChar *
tomoe_candidate_get_char (TomoeCandidate *cand);

tomoe_candidate_set_score ()

void
tomoe_candidate_set_score (TomoeCandidate *cand,
                           gint score);

tomoe_candidate_get_score ()

gint
tomoe_candidate_get_score (TomoeCandidate *cand);

tomoe_candidate_compare ()

gint
tomoe_candidate_compare (const TomoeCandidate *a,
                         const TomoeCandidate *b);

Compare two TomoeCandidate.

Parameters

a

1st TomoeCandidate object to compare.

 

b

2nd TomoeCandidate object to compare.

 

Returns

-1 a < b, 0 a= b, 1 a > b

Types and Values

struct TomoeCandidate

struct TomoeCandidate;

Property Details

The “char” property

  “char”                     TomoeChar *

A TomoeChar object.

Flags: Read / Write / Construct Only


The “score” property

  “score”                    guint

Score of this candidate. Lower value has higher priority.

Flags: Read / Write

Allowed values: <= G_MAXINT

Default value: 0