CoreGTK  2.24.0
CoreGTK is an Objective-C language binding for the GTK+ widget toolkit
 All Classes Functions Variables
CGTKImage.h
1 /*
2  * CGTKImage.h
3  * This file is part of CoreGTK
4  *
5  * Copyright (C) 2014 - 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, 2014. 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 "CGTKMisc.h"
33 
34 @interface CGTKImage : CGTKMisc
35 {
36 
37 }
38 
42 -(GtkImage *)IMAGE;
43 
48 -(id)init;
49 
54 -(id)initFromPixmapWithPixmap:(GdkPixmap*)pixmap andMask:(GdkBitmap *)mask;
55 
60 -(id)initFromImageWithImage:(GdkImage *)image andMask:(GdkBitmap *)mask;
61 
66 -(id)initFromFile:(NSString *)filename;
67 
72 -(id)initFromPixbuf:(GdkPixbuf *)pixbuf;
73 
78 -(id)initFromStockWithStockId:(NSString *)stockId andSize:(GtkIconSize)size;
79 
84 -(id)initFromIconSetWithIconSet:(GtkIconSet *)iconSet andSize:(GtkIconSize)size;
85 
90 -(id)initFromAnimation:(GdkPixbufAnimation *)animation;
91 
96 -(id)initFromIconNameWithIconName:(NSString *)iconName andSize:(GtkIconSize)size;
97 
102 -(id)initFromGiconWithIcon:(GIcon *)icon andSize:(GtkIconSize)size;
103 
108 -(void)clear;
109 
114 -(void)setFromPixmapWithPixmap:(GdkPixmap*)pixmap andMask:(GdkBitmap *)mask;
115 
120 -(void)setFromImageWithGdkImage:(GdkImage *)gdkImage andMask:(GdkBitmap *)mask;
121 
126 -(void)setFromFile:(NSString *)filename;
127 
132 -(void)setFromPixbuf:(GdkPixbuf *)pixbuf;
133 
138 -(void)setFromStockWithStockId:(NSString *)stockId andSize:(GtkIconSize)size;
139 
144 -(void)setFromIconSetWithIconSet:(GtkIconSet *)iconSet andSize:(GtkIconSize)size;
145 
150 -(void)setFromAnimation:(GdkPixbufAnimation *)animation;
151 
156 -(void)setFromIconNameWithIconName:(NSString *)iconName andSize:(GtkIconSize)size;
157 
162 -(void)setFromGiconWithIcon:(GIcon *)icon andSize:(GtkIconSize)size;
163 
168 -(void)setPixelSize:(NSNumber *)pixelSize;
169 
174 -(GtkImageType)getStorageType;
175 
180 -(void)getPixmapWithPixmap:(GdkPixmap **)pixmap andMask:(GdkBitmap **)mask;
181 
186 -(void)getImageWithGdkImage:(GdkImage **)gdkImage andMask:(GdkBitmap **)mask;
187 
192 -(GdkPixbuf *)getPixbuf;
193 
198 -(void)getStockWithStockId:(NSString **)stockId andSize:(GtkIconSize *)size;
199 
204 -(void)getIconSetWithIconSet:(GtkIconSet **)iconSet andSize:(GtkIconSize *)size;
205 
210 -(GdkPixbufAnimation *)getAnimation;
211 
216 -(void)getIconNameWithIconName:(NSString **)iconName andSize:(GtkIconSize *)size;
217 
222 -(void)getGiconWithGicon:(GIcon **)gicon andSize:(GtkIconSize *)size;
223 
228 -(NSNumber *)getPixelSize;
229 
230 @end
Definition: CGTKImage.h:34
Definition: CGTKMisc.h:34