CoreGTK 3.22.0 CoreGTK is an Objective-C language binding for the GTK+ widget toolkit

CGTKListBox.h
1 /*
2 * CGTKListBox.h
3 * This file is part of CoreGTK
4 *
5 * Copyright (C) 2017 - Tyler Burton
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 */
21
22 /*
23 * Modified by the CoreGTK Team, 2017. See the AUTHORS file for a
24 * list of people on the CoreGTK Team.
25 * See the ChangeLog files for a list of changes.
26 *
27 */
28
29 /*
30 * Objective-C imports
31 */
32 #import "CoreGTK/CGTKContainer.h"
33
34 @interface CGTKListBox : CGTKContainer
35 {
36
37 }
38
39
43 -(id)init;
44
49 -(GtkListBox*)LISTBOX;
50
59 -(void)bindModelWithModel:(GListModel*) model andCreateWidgetFunc:(GtkListBoxCreateWidgetFunc) createWidgetFunc andUserData:(gpointer) userData andUserDataFreeFunc:(GDestroyNotify) userDataFreeFunc;
60
66 -(void)dragHighlightRow:(GtkListBoxRow*) row;
67
72 -(void)dragUnhighlightRow;
73
79 -(BOOL)getActivateOnSingleClick;
80
86 -(GtkAdjustment*)getAdjustment;
87
94 -(GtkListBoxRow*)getRowAtIndex:(gint) index;
95
102 -(GtkListBoxRow*)getRowAtY:(gint) y;
103
109 -(GtkListBoxRow*)getSelectedRow;
110
116 -(GList*)getSelectedRows;
117
123 -(GtkSelectionMode)getSelectionMode;
124
131 -(void)insertWithChild:(CGTKWidget*) child andPosition:(gint) position;
132
137 -(void)invalidateFilter;
138
143 -(void)invalidateHeaders;
144
149 -(void)invalidateSort;
150
156 -(void)prepend:(CGTKWidget*) child;
157
162 -(void)selectAll;
163
169 -(void)selectRow:(GtkListBoxRow*) row;
170
177 -(void)selectedForeachWithFunc:(GtkListBoxForeachFunc) func andData:(gpointer) data;
178
184 -(void)setActivateOnSingleClick:(BOOL) single;
185
191 -(void)setAdjustment:(GtkAdjustment*) adjustment;
192
200 -(void)setFilterFuncWithFilterFunc:(GtkListBoxFilterFunc) filterFunc andUserData:(gpointer) userData andDestroy:(GDestroyNotify) destroy;
201
209 -(void)setHeaderFuncWithUpdateHeader:(GtkListBoxUpdateHeaderFunc) updateHeader andUserData:(gpointer) userData andDestroy:(GDestroyNotify) destroy;
210
216 -(void)setPlaceholder:(CGTKWidget*) placeholder;
217
223 -(void)setSelectionMode:(GtkSelectionMode) mode;
224
232 -(void)setSortFuncWithSortFunc:(GtkListBoxSortFunc) sortFunc andUserData:(gpointer) userData andDestroy:(GDestroyNotify) destroy;
233
238 -(void)unselectAll;
239
245 -(void)unselectRow:(GtkListBoxRow*) row;
246
247 @end
-[CGTKListBox invalidateSort]
void invalidateSort()
Definition: CGTKListBox.m:118
-[CGTKListBox invalidateHeaders]
void invalidateHeaders()
Definition: CGTKListBox.m:113
-[CGTKListBox getActivateOnSingleClick]
BOOL getActivateOnSingleClick()
Definition: CGTKListBox.m:68
-[CGTKListBox dragUnhighlightRow]
void dragUnhighlightRow()
Definition: CGTKListBox.m:63
-[CGTKWidget destroy]
void destroy()
Definition: CGTKWidget.m:131
-[CGTKListBox getSelectedRows]
GList * getSelectedRows()
Definition: CGTKListBox.m:93
-[CGTKListBox getSelectionMode]
GtkSelectionMode getSelectionMode()
Definition: CGTKListBox.m:98
-[CGTKListBox invalidateFilter]
void invalidateFilter()
Definition: CGTKListBox.m:108
CGTKContainer
Definition: CGTKContainer.h:34
-[CGTKListBox getAdjustment]
GtkAdjustment * getAdjustment()
Definition: CGTKListBox.m:73
-[CGTKListBox init]
id init()
Definition: CGTKListBox.m:36
-[CGTKListBox selectAll]
void selectAll()
Definition: CGTKListBox.m:128
CGTKWidget
Definition: CGTKWidget.h:34
-[CGTKListBox LISTBOX]
GtkListBox * LISTBOX()
Definition: CGTKListBox.m:48
-[CGTKListBox unselectAll]
void unselectAll()
Definition: CGTKListBox.m:178
-[CGTKListBox getSelectedRow]
GtkListBoxRow * getSelectedRow()
Definition: CGTKListBox.m:88
CGTKListBox
Definition: CGTKListBox.h:34