Top | ![]() |
![]() |
![]() |
![]() |
gboolean | gok_key_initialize () |
gboolean | gok_key_add_label () |
void | gok_key_set_output () |
void | gok_key_change_label () |
void | gok_key_update_label () |
gint | gok_key_get_label_lengthpercell () |
gint | gok_key_get_label_heightpercell () |
gint | gok_key_calculate_font_size () |
void | gok_key_set_font_size () |
void | gok_key_set_button_name () |
void | gok_key_set_button_label () |
gchar * | gok_key_get_label () |
GokKeyLabel * | gok_keylabel_new () |
void | gok_keylabel_delete () |
void | gok_key_set_cells () |
GokKey * | gok_key_duplicate () |
enum | KeyStyles |
#define | FONT_SIZE_GROUP_UNDEFINED |
#define | FONT_SIZE_GROUP_UNIQUE |
#define | FONT_SIZE_GROUP_WORDCOMPLETE |
gboolean gok_key_initialize (GokKey *pKey
,xmlNode *pNode
);
gboolean gok_key_add_label (GokKey *pKey
,gchar *pLabelText
,guint level
,guint group
,const gchar *vmods
);
Adds a label to the key. This allocates memory for the label that will be freed in gok_key_delete.
void gok_key_set_output (GokKey *pKey
,gint Type
,gchar *pName
,AccessibleKeySynthType Flag
);
Sets the output for the key. This allocates memory for the output that will be freed in gok_key_delete.
void gok_key_change_label (GokKey *pKey
,gchar *LabelText
);
Changes the label displayed on the gok key.
void
gok_key_update_label (GokKey *pKey
);
Changes the key's label if the modifier state has changed.
gint
gok_key_get_label_lengthpercell (GokKey *pKey
);
Calculates the length of the key's label. Some keys span more than one cell so divide the label length into the number of cells.
gint
gok_key_get_label_heightpercell (GokKey *pKey
);
Calculates the height of the key's label. Some keys span more than one cell so divide the label height into the number of cells.
gint gok_key_calculate_font_size (GokKey *pKey
,gboolean width
,gboolean bHeight
);
Calculates the font size needed for the key's label to fill the key.
void gok_key_set_font_size (GokKey *pKey
,gint Size
);
Sets the font size for the key.
void
gok_key_set_button_name (GokKey *pKey
);
Sets the 'name' of the key's label. The 'name' is used to determine the key/label colors from the .rc file. This must be called for every key after it's created and after the label name has been changed.
void gok_key_set_button_label (GokKey *pKey
,gchar *LabelText
);
Changes the button label displayed on the key.
GokKeyLabel * gok_keylabel_new (GokKey *pKey
,gchar *pLabelText
,guint level
,guint group
,const gchar *vmods
);
Allocates memory for a new key label and initializes the GokKeyLabel structure. Returns a pointer to the new key label, NULL if it can't be created. Add this label to a key so it will be deleted when the key is deleted.
pKey |
Pointer to the key that gets the new label. |
|
pLabelText |
Text string for this label. |
|
level |
the level (see XKB spec) for which this label is valid. |
|
group |
the group (see XKB spec) for which this label is valid. |
|
vmods |
a delimited list of virtual modifier names which must be matched in order for this label to be valid, or NULL if no virtual modifiers are relevant to this label. |
void gok_key_set_cells (GokKey *pKey
,gint top
,gint bottom
,gint left
,gint right
);
Changes the cell coordinates (used by the editor).