CoreGTK  3.18.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) 2016 - 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, 2016. 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 
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 
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
void invalidateSort()
Definition: CGTKListBox.m:118
void invalidateHeaders()
Definition: CGTKListBox.m:113
BOOL getActivateOnSingleClick()
Definition: CGTKListBox.m:68
void dragUnhighlightRow()
Definition: CGTKListBox.m:63
void destroy()
Definition: CGTKWidget.m:131
GList * getSelectedRows()
Definition: CGTKListBox.m:93
GtkSelectionMode getSelectionMode()
Definition: CGTKListBox.m:98
void invalidateFilter()
Definition: CGTKListBox.m:108
GtkAdjustment * getAdjustment()
Definition: CGTKListBox.m:73
void selectAll()
Definition: CGTKListBox.m:128
GtkListBox * LISTBOX()
Definition: CGTKListBox.m:48
void unselectAll()
Definition: CGTKListBox.m:178
GtkListBoxRow * getSelectedRow()
Definition: CGTKListBox.m:88