CoreGTK  3.22.0
CoreGTK is an Objective-C language binding for the GTK+ widget toolkit
CGTKFlowBox.h
1 /*
2  * CGTKFlowBox.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 
35 {
36 
37 }
38 
39 
43 -(id)init;
44 
49 -(GtkFlowBox*)FLOWBOX;
50 
59 -(void)bindModelWithModel:(GListModel*) model andCreateWidgetFunc:(GtkFlowBoxCreateWidgetFunc) createWidgetFunc andUserData:(gpointer) userData andUserDataFreeFunc:(GDestroyNotify) userDataFreeFunc;
60 
67 
74 -(GtkFlowBoxChild*)getChildAtIndex:(gint) idx;
75 
83 -(GtkFlowBoxChild*)getChildAtPosWithX:(gint) x andY:(gint) y;
84 
90 -(guint)getColumnSpacing;
91 
97 -(BOOL)getHomogeneous;
98 
104 -(guint)getMaxChildrenPerLine;
105 
111 -(guint)getMinChildrenPerLine;
112 
118 -(guint)getRowSpacing;
119 
125 -(GList*)getSelectedChildren;
126 
132 -(GtkSelectionMode)getSelectionMode;
133 
140 -(void)insertWithWidget:(CGTKWidget*) widget andPosition:(gint) position;
141 
146 -(void)invalidateFilter;
147 
152 -(void)invalidateSort;
153 
158 -(void)selectAll;
159 
165 -(void)selectChild:(GtkFlowBoxChild*) child;
166 
173 -(void)selectedForeachWithFunc:(GtkFlowBoxForeachFunc) func andData:(gpointer) data;
174 
180 -(void)setActivateOnSingleClick:(BOOL) single;
181 
187 -(void)setColumnSpacing:(guint) spacing;
188 
196 -(void)setFilterFuncWithFilterFunc:(GtkFlowBoxFilterFunc) filterFunc andUserData:(gpointer) userData andDestroy:(GDestroyNotify) destroy;
197 
203 -(void)setHadjustment:(GtkAdjustment*) adjustment;
204 
210 -(void)setHomogeneous:(BOOL) homogeneous;
211 
217 -(void)setMaxChildrenPerLine:(guint) nchildren;
218 
224 -(void)setMinChildrenPerLine:(guint) nchildren;
225 
231 -(void)setRowSpacing:(guint) spacing;
232 
238 -(void)setSelectionMode:(GtkSelectionMode) mode;
239 
247 -(void)setSortFuncWithSortFunc:(GtkFlowBoxSortFunc) sortFunc andUserData:(gpointer) userData andDestroy:(GDestroyNotify) destroy;
248 
254 -(void)setVadjustment:(GtkAdjustment*) adjustment;
255 
260 -(void)unselectAll;
261 
267 -(void)unselectChild:(GtkFlowBoxChild*) child;
268 
269 @end
guint getRowSpacing()
Definition: CGTKFlowBox.m:93
void invalidateSort()
Definition: CGTKFlowBox.m:118
guint getMinChildrenPerLine()
Definition: CGTKFlowBox.m:88
BOOL getActivateOnSingleClick()
Definition: CGTKFlowBox.m:58
GtkFlowBox * FLOWBOX()
Definition: CGTKFlowBox.m:48
void selectAll()
Definition: CGTKFlowBox.m:123
GtkSelectionMode getSelectionMode()
Definition: CGTKFlowBox.m:103
GList * getSelectedChildren()
Definition: CGTKFlowBox.m:98
guint getMaxChildrenPerLine()
Definition: CGTKFlowBox.m:83
void destroy()
Definition: CGTKWidget.m:131
void invalidateFilter()
Definition: CGTKFlowBox.m:113
guint getColumnSpacing()
Definition: CGTKFlowBox.m:73
void unselectAll()
Definition: CGTKFlowBox.m:193
BOOL getHomogeneous()
Definition: CGTKFlowBox.m:78