TomoeQuery

TomoeQuery — An object for representing search conditions.

Synopsis

struct              TomoeQuery;
TomoeQuery *        tomoe_query_new                     (void);
const gchar *       tomoe_query_get_utf8                (TomoeQuery *query);
void                tomoe_query_set_utf8                (TomoeQuery *query,
                                                         const gchar *utf8);
void                tomoe_query_add_reading             (TomoeQuery *query,
                                                         TomoeReading *reading);
const GList *       tomoe_query_get_readings            (TomoeQuery *query);
void                tomoe_query_add_radical             (TomoeQuery *query,
                                                         const gchar *radical);
const GList *       tomoe_query_get_radicals            (TomoeQuery *query);
void                tomoe_query_set_variant             (TomoeQuery *query,
                                                         const gchar *variant);
const gchar *       tomoe_query_get_variant             (TomoeQuery *query);
void                tomoe_query_set_min_n_strokes       (TomoeQuery *query,
                                                         gint n_strokes);
gint                tomoe_query_get_min_n_strokes       (TomoeQuery *query);
void                tomoe_query_set_max_n_strokes       (TomoeQuery *query,
                                                         gint n_strokes);
gint                tomoe_query_get_max_n_strokes       (TomoeQuery *query);
void                tomoe_query_set_writing             (TomoeQuery *query,
                                                         TomoeWriting *writing);
TomoeWriting *      tomoe_query_get_writing             (TomoeQuery *query);
gboolean            tomoe_query_is_empty                (TomoeQuery *query);

Object Hierarchy

  GObject
   +----TomoeQuery

Properties

  "max-n-strokes"            gint                  : Read / Write
  "min-n-strokes"            gint                  : Read / Write
  "utf8"                     gchar*                : Read / Write
  "writing"                  TomoeWriting*         : Read / Write

Description

Details

struct TomoeQuery

struct TomoeQuery;

The TomoeQuery struct contains only private fields and should not be directly accessed.


tomoe_query_new ()

TomoeQuery *        tomoe_query_new                     (void);


tomoe_query_get_utf8 ()

const gchar *       tomoe_query_get_utf8                (TomoeQuery *query);


tomoe_query_set_utf8 ()

void                tomoe_query_set_utf8                (TomoeQuery *query,
                                                         const gchar *utf8);


tomoe_query_add_reading ()

void                tomoe_query_add_reading             (TomoeQuery *query,
                                                         TomoeReading *reading);


tomoe_query_get_readings ()

const GList *       tomoe_query_get_readings            (TomoeQuery *query);


tomoe_query_add_radical ()

void                tomoe_query_add_radical             (TomoeQuery *query,
                                                         const gchar *radical);


tomoe_query_get_radicals ()

const GList *       tomoe_query_get_radicals            (TomoeQuery *query);


tomoe_query_set_variant ()

void                tomoe_query_set_variant             (TomoeQuery *query,
                                                         const gchar *variant);


tomoe_query_get_variant ()

const gchar *       tomoe_query_get_variant             (TomoeQuery *query);


tomoe_query_set_min_n_strokes ()

void                tomoe_query_set_min_n_strokes       (TomoeQuery *query,
                                                         gint n_strokes);


tomoe_query_get_min_n_strokes ()

gint                tomoe_query_get_min_n_strokes       (TomoeQuery *query);


tomoe_query_set_max_n_strokes ()

void                tomoe_query_set_max_n_strokes       (TomoeQuery *query,
                                                         gint n_strokes);


tomoe_query_get_max_n_strokes ()

gint                tomoe_query_get_max_n_strokes       (TomoeQuery *query);


tomoe_query_set_writing ()

void                tomoe_query_set_writing             (TomoeQuery *query,
                                                         TomoeWriting *writing);


tomoe_query_get_writing ()

TomoeWriting *      tomoe_query_get_writing             (TomoeQuery *query);


tomoe_query_is_empty ()

gboolean            tomoe_query_is_empty                (TomoeQuery *query);

Property Details

The "max-n-strokes" property

  "max-n-strokes"            gint                  : Read / Write

Maximum number of strokes of searched character.

Allowed values: >= -2

Default value: -1


The "min-n-strokes" property

  "min-n-strokes"            gint                  : Read / Write

Minimum number of strokes of searched character.

Allowed values: >= -2

Default value: -1


The "utf8" property

  "utf8"                     gchar*                : Read / Write

UTF8 encoding of searched character.

Default value: NULL


The "writing" property

  "writing"                  TomoeWriting*         : Read / Write

Writing of searched character.