Back to index

im-sdk  12.3.91
lookupbuf.h
Go to the documentation of this file.
00001 #ifndef _LOOKUP_BUFFER_H_
00002 #define _LOOKUP_BUFFER_H_
00003 
00004 #include "utfchar.h"
00005 typedef struct _LookupBufferStruct LookupBufferStruct;
00006 typedef struct _LookupBufferPage LookupBufferPage;
00007 
00008 struct _LookupBufferStruct {
00009   int n_items_per_page;
00010   int n_candidates;
00011   LookupBufferPage *page_list;
00012   LookupBufferPage *p_current_page;
00013 };
00014 struct _LookupBufferPage {
00015   struct _LookupBufferPage *next;
00016   struct _LookupBufferPage *prev;
00017   int n_strings;
00018   int i_candidate;
00019   UTFCHAR **string_list;
00020 };
00021 
00022 /* function prototypes */
00023 LookupBufferStruct *hangul_lookupbuf_new (int n_candidates, int count_per_page, UTFCHAR **string_list);
00024 Bool hangul_lookupbuf_free (LookupBufferStruct *lub);
00025 LookupBufferPage * hangul_lookupbuf_get_current_page (LookupBufferStruct *lub);
00026 int hangul_lookupbuf_get_current_selection_index (LookupBufferStruct *lub);
00027 void
00028 hangul_lookupbuf_get_current_page_candidates (LookupBufferStruct *lub,
00029                                          int *n_candidates_return,
00030                                          int *n_current_candidate,
00031                                          UTFCHAR ***candidates_list_return);
00032 
00033 UTFCHAR * hangul_lookupbuf_get_candidate_string (LookupBufferStruct *lub, int i);
00034 void hangul_lookupbuf_next_page (LookupBufferStruct *lub);
00035 void hangul_lookupbuf_previous_page (LookupBufferStruct *lub); 
00036 int hangul_lookupbuf_get_count_of_candidates_in_current_page (LookupBufferStruct *lub);
00037 void hangul_lookupbuf_next_candidate (LookupBufferStruct *lub);
00038 
00039 #endif /* _LOOKUP_BUFFER_H_ */
00040