Top | ![]() |
![]() |
![]() |
![]() |
KkcCandidate * | kkc_candidate_list_get () |
gboolean | kkc_candidate_list_select_at () |
void | kkc_candidate_list_select () |
gboolean | kkc_candidate_list_first () |
gboolean | kkc_candidate_list_next () |
gboolean | kkc_candidate_list_previous () |
gboolean | kkc_candidate_list_cursor_up () |
gboolean | kkc_candidate_list_cursor_down () |
gboolean | kkc_candidate_list_page_up () |
gboolean | kkc_candidate_list_page_down () |
KkcCandidateList * | kkc_candidate_list_new () |
gint | kkc_candidate_list_get_cursor_pos () |
void | kkc_candidate_list_set_cursor_pos () |
gint | kkc_candidate_list_get_size () |
guint | kkc_candidate_list_get_page_start () |
void | kkc_candidate_list_set_page_start () |
guint | kkc_candidate_list_get_page_size () |
void | kkc_candidate_list_set_page_size () |
gboolean | kkc_candidate_list_get_round () |
void | kkc_candidate_list_set_round () |
gboolean | kkc_candidate_list_get_page_visible () |
gint | cursor-pos | Read / Write |
guint | page-size | Read / Write |
guint | page-start | Read / Write |
gboolean | page-visible | Read |
gboolean | round | Read / Write |
gint | size | Read |
#define | KKC_TYPE_CANDIDATE_LIST |
struct | KkcCandidateList |
struct | KkcCandidateListClass |
KkcCandidate * kkc_candidate_list_get (KkcCandidateList *self
,gint index
);
Get the current candidate at the given index.
self |
the KkcCandidateList instance |
|
index |
. candidate position (-1 for the current cursor position) . |
[in] |
gboolean kkc_candidate_list_select_at (KkcCandidateList *self
,guint index_in_page
);
Select a candidate in the current page.
self |
the KkcCandidateList instance |
|
index_in_page |
. cursor position in the page to select . |
[in] |
void
kkc_candidate_list_select (KkcCandidateList *self
);
Select the current candidate.
gboolean
kkc_candidate_list_first (KkcCandidateList *self
);
Select the first candidate.
gboolean
kkc_candidate_list_next (KkcCandidateList *self
);
Move cursor forward.
gboolean
kkc_candidate_list_previous (KkcCandidateList *self
);
Move cursor backward.
gboolean
kkc_candidate_list_cursor_up (KkcCandidateList *self
);
Move cursor to the previous candidate.
gboolean
kkc_candidate_list_cursor_down (KkcCandidateList *self
);
Move cursor to the next candidate.
gboolean
kkc_candidate_list_page_up (KkcCandidateList *self
);
Move cursor to the previous page.
gboolean
kkc_candidate_list_page_down (KkcCandidateList *self
);
Move cursor to the next page.
KkcCandidateList * kkc_candidate_list_new (guint page_start
,guint page_size
,gboolean round
);
Create a new CandidateList.
gint
kkc_candidate_list_get_cursor_pos (KkcCandidateList *self
);
Get and return the current value of the "cursor-pos" property.
Current cursor position.
void kkc_candidate_list_set_cursor_pos (KkcCandidateList *self
,gint value
);
Set the value of the "cursor-pos" property to value
.
Current cursor position.
self |
the KkcCandidateList instance to modify |
|
value |
the new value of the "cursor-pos" property |
gint
kkc_candidate_list_get_size (KkcCandidateList *self
);
Get and return the current value of the "size" property.
The number of candidate in the candidate list.
guint
kkc_candidate_list_get_page_start (KkcCandidateList *self
);
Get and return the current value of the "page-start" property.
Starting index of paging.
void kkc_candidate_list_set_page_start (KkcCandidateList *self
,guint value
);
Set the value of the "page-start" property to value
.
Starting index of paging.
self |
the KkcCandidateList instance to modify |
|
value |
the new value of the "page-start" property |
guint
kkc_candidate_list_get_page_size (KkcCandidateList *self
);
Get and return the current value of the "page-size" property.
Page size.
void kkc_candidate_list_set_page_size (KkcCandidateList *self
,guint value
);
Set the value of the "page-size" property to value
.
Page size.
self |
the KkcCandidateList instance to modify |
|
value |
the new value of the "page-size" property |
gboolean
kkc_candidate_list_get_round (KkcCandidateList *self
);
Get and return the current value of the "round" property.
Flag to indicate whether to loop over the candidates.
void kkc_candidate_list_set_round (KkcCandidateList *self
,gboolean value
);
Set the value of the "round" property to value
.
Flag to indicate whether to loop over the candidates.
gboolean
kkc_candidate_list_get_page_visible (KkcCandidateList *self
);
Get and return the current value of the "page-visible" property.
Flag to indicate whether page (lookup table) is visible.
#define KKC_TYPE_CANDIDATE_LIST (kkc_candidate_list_get_type ())
The type for KkcCandidateList.
struct KkcCandidateListClass { GObjectClass parent_class; gboolean (*next) (KkcCandidateList* self); gboolean (*previous) (KkcCandidateList* self); };
The class structure for KKC_TYPE_CANDIDATE_LIST
. All the fields in this structure are private and should never be accessed directly.
virtual method called by |
||
virtual method called by |
“cursor-pos”
property “cursor-pos” gint
Current cursor position.
Flags: Read / Write
Default value: 0
“page-start”
property “page-start” guint
Starting index of paging.
Flags: Read / Write
Default value: 0
“page-visible”
property “page-visible” gboolean
Flag to indicate whether page (lookup table) is visible.
Flags: Read
Default value: FALSE
“round”
property “round” gboolean
Flag to indicate whether to loop over the candidates.
Flags: Read / Write
Default value: FALSE
“populated”
signalvoid user_function (KkcCandidateList *candidate_list, gpointer user_data)
Signal emitted when candidates are filled and ready for traversal.
candidate_list |
the KkcCandidateList instance that received the signal |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“selected”
signalvoid user_function (KkcCandidateList *candidate_list, KkcCandidate *candidate, gpointer user_data)
Signal emitted when a candidate is selected.
candidate_list |
the KkcCandidateList instance that received the signal |
|
candidate |
. selected candidate |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last