Top | ![]() |
![]() |
![]() |
![]() |
gboolean gok_chunker_chunk_all (ChunkTypes TypeChunks
,ChunkOrder chunkOrder
);
Breaks all the keyboards into chunks.
void
gok_chunker_init_chunk (GokChunk *pChunk
);
Initializes a GOK chunk. This must be called after creating any chunk.
void gok_chunker_delete_chunks (GokChunk *pChunk
,gboolean bAlsoNext
);
Deletes a chunk and, optionally, any following chunks.
void
gok_chunker_previous_chunk (void
);
Highlightes the previous chunk.
void
gok_chunker_previous_key (void
);
Highlightes the previous key in the selected chunk.
void
gok_chunker_keyup (void
);
Highlights and selects the key to the top of the currently highlighted key. This does NOT wrap to the bottom side of the keyboard (call gok_chunker_wraptobottom).
void
gok_chunker_keydown (void
);
Highlights and selects the right to the bottom of the currently highlighted key. This does NOT wrap to the top side of the keyboard (call gok_chunker_wraptotop).
void
gok_chunker_keyleft (void
);
Highlights and selects the key to the left of the currently highlighted key. This does NOT wrap to the right side of the keyboard (call gok_chunker_wraptoright).
void
gok_chunker_keyright (void
);
Highlights and selects the right to the right of the currently highlighted key. This does NOT wrap to the left side of the keyboard (call gok_chunker_wraptoleft).
void
gok_chunker_keyhighlight (void
);
Highlights the given key.
NOT USED (deprecate?)
gboolean
gok_chunker_wraptofirstchunk (void
);
Highlights the first chunk in the list of chunks
gboolean
gok_chunker_wraptolastchunk (void
);
Highlights the last chunk in the list of chunks
gboolean
gok_chunker_wraptofirstkey (void
);
Highlights the first key in the list of keys.
gboolean
gok_chunker_wraptolastkey (void
);
Highlights the last key in the list of keys.
gboolean
gok_chunker_wraptoleft (gint TrueFalse
);
Highlights the leftmost key that is on the same row as the currently selected key.
gboolean
gok_chunker_wraptoright (gint TrueFalse
);
Highlights the rightmost key that is on the same row as the currently selected key.
void
gok_chunker_move_leftright (gint TrueFalse
);
Not implemented yet.
void
gok_chunker_move_topbottom (gint TrueFalse
);
Not implemented yet.
gint
gok_chunker_if_next_chunk (void
);
Tests if there is another chunk after the current chunk.
gint
gok_chunker_if_previous_chunk (void
);
Tests if there is another chunk before the current chunk.
gint
gok_chunker_if_next_key (void
);
Tests if there is another key after the current key.
gint
gok_chunker_if_previous_key (void
);
Tests if there is another key before the current key.
gint
gok_chunker_if_top (void
);
Tests if there is a key to the top of the currently highlighted key.
gint
gok_chunker_if_bottom (void
);
Tests if there is a key to the bottom of the currently highlighted key.
gint
gok_chunker_if_left (void
);
Tests if there is a key to the left of the currently highlighted key.
gint
gok_chunker_if_right (void
);
Tests if there is a key to the right of the currently highlighted key.
gboolean gok_chunker_is_left (GokKey *pKey1
,GokKey *pKey2
);
Tests if a key is left of another key. This does NOT test if the keys are on the same row. This should be called when traversing a row from right to left.
gboolean gok_chunker_is_right (GokKey *pKey1
,GokKey *pKey2
);
Tests if a key is right of another key. This does NOT test if the keys are on the same row. This should be called when traversing a row from left to right.
gboolean gok_chunker_is_top (GokKey *pKey1
,GokKey *pKey2
);
Tests if a key is top of another key. This does NOT test if the keys are on the same column. This should be called when traversing a column from bottom to top.
gboolean gok_chunker_is_bottom (GokKey *pKey1
,GokKey *pKey2
);
Tests if a key is bottom of another key. This does NOT test if the keys are on the same column. This should be called when traversing a column from top to bottom.
void
gok_chunker_state_next (void
);
Move to the next state. Move to the first state if at the last state.
void
gok_chunker_state_jump (gchar *NameState
);
Change state to the given state.
gboolean
gok_chunker_select_chunk (void
);
Sets the current chunk as the selected chunk.
void
gok_chunker_highlight_chunk (GokChunk *pChunk
);
Highlightes the given chunk. Updates m_pChunkHighlighted with the chunk given.
void
gok_chunker_unhighlight_chunk (GokChunk *pChunk
);
Unhighlightes the given chunk. Updates m_pChunkHighlighted.
void
gok_chunker_highlight_center_key (void
);
Highlightes the center key on the current keyboard.
void
gok_chunker_highlight_first_chunk (void
);
Highlightes the first chunk on the current keyboard. Updates m_pChunkHighlighted.
void
gok_chunker_highlight_first_key (void
);
Highlightes the first key in the selected chunk. Updates m_pChunkitemHighlighted.
gboolean gok_chunker_insert_item_row_ltr (GokChunk *pChunk
,GokChunkitem *pChunkitem
);
Adds a chunkitem (key) to a chunk (row). The new chunkitem will be added in the sequence left to right (the leftmost key is the first key in the sequence).
gboolean gok_chunker_insert_item_row_rtl (GokChunk *pChunk
,GokChunkitem *pChunkitem
);
Adds a chunkitem (key) to a chunk (row). The new chunkitem will be added in the sequence right to left (the rightmost key is the first key in the sequence).
gboolean gok_chunker_insert_item_col_ttb (GokChunk *pChunk
,GokChunkitem *pChunkitem
);
Adds a chunkitem (key) to a chunk (column). The new chunkitem will be added in the sequence top to bottom (the topmost key is the first key in the sequence).
gboolean gok_chunker_insert_item_col_btt (GokChunk *pChunk
,GokChunkitem *pChunkitem
);
Adds a chunkitem (key) to a chunk (column). The new chunkitem will be added in the sequence bottom to top (the bottommost key is the first key in the sequence).
void
gok_chunker_dump_chunks (void
);
Diagnostic function that prints all the chunks to stdout.
void
gok_chunker_dump_chunk (GokChunk *pChunk
);
Diagnostic function that prints the chunk to stdout.
GokChunk * gok_chunker_chunk_group (GokChunk *pChunk
,gint NumberGroups
,ChunkOrder Order
,gboolean bCanReorder
);
Breaks the given list of chunks into 2 or more groups.
void gok_chunker_add_chunkitem (GokChunk *pChunk
,GokChunkitem *pChunkitem
);
Adds a chunkitem (key) to a chunk (group). The new chunkitem will be added as the last chunkitem in the list.
gint
gok_chunker_count_chunkitems (GokChunk *pChunk
);
Counts the number of items in the given chunk.
GokChunk *
gok_chunker_make_2_vertical (GokChunk *pChunk
);
Creates 2 chunks that split the given chunk vertically.
GokChunk *
gok_chunker_make_2_horizontal (GokChunk *pChunk
);
Create 2 chunks that split the given chunk horizontally.
GokChunk *
gok_chunker_make_4 (GokChunk *pChunk
);
Create 4 chunks from the given chunk. The 4 chunks are ordered like: 1 2 3 4
void
gok_chunker_highlight_chunk_number (gint Number
);
Highlight the chunk identified by a number.
GokChunk *
gok_chunker_get_chunk (gint Number
);
Finds a child chunk of the currently highlighted chunk.
void
gok_chunker_highlight_all_keys (void
);
Highlightes all keys on the current keyboard.
void
gok_chunker_unhighlight_all_keys (void
);
Unhighlightes all keys on the current keyboard.