CoreGTK  3.18.0
CoreGTK is an Objective-C language binding for the GTK+ widget toolkit
CGTKLabel.h
1 /*
2  * CGTKLabel.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/CGTKMisc.h"
33 
34 @interface CGTKLabel : CGTKMisc
35 {
36 
37 }
38 
39 
43 -(id)init:(NSString*) str;
44 -(id)initWithMnemonic:(NSString*) str;
45 
50 -(GtkLabel*)LABEL;
51 
57 -(gdouble)getAngle;
58 
64 -(PangoAttrList*)getAttributes;
65 
71 -(NSString*)getCurrentUri;
72 
78 -(PangoEllipsizeMode)getEllipsize;
79 
85 -(GtkJustification)getJustify;
86 
92 -(NSString*)getLabel;
93 
99 -(PangoLayout*)getLayout;
100 
107 -(void)getLayoutOffsetsWithX:(gint*) x andY:(gint*) y;
108 
114 -(BOOL)getLineWrap;
115 
121 -(PangoWrapMode)getLineWrapMode;
122 
128 -(gint)getLines;
129 
135 -(gint)getMaxWidthChars;
136 
142 -(guint)getMnemonicKeyval;
143 
150 
156 -(BOOL)getSelectable;
157 
165 -(BOOL)getSelectionBoundsWithStart:(gint*) start andEnd:(gint*) end;
166 
172 -(BOOL)getSingleLineMode;
173 
179 -(NSString*)getText;
180 
186 -(BOOL)getTrackVisitedLinks;
187 
193 -(BOOL)getUseMarkup;
194 
200 -(BOOL)getUseUnderline;
201 
207 -(gint)getWidthChars;
208 
214 -(gfloat)getXalign;
215 
221 -(gfloat)getYalign;
222 
229 -(void)selectRegionWithStartOffset:(gint) startOffset andEndOffset:(gint) endOffset;
230 
236 -(void)setAngle:(gdouble) angle;
237 
243 -(void)setAttributes:(PangoAttrList*) attrs;
244 
250 -(void)setEllipsize:(PangoEllipsizeMode) mode;
251 
257 -(void)setJustify:(GtkJustification) jtype;
258 
264 -(void)setLabel:(NSString*) str;
265 
271 -(void)setLineWrap:(BOOL) wrap;
272 
278 -(void)setLineWrapMode:(PangoWrapMode) wrapMode;
279 
285 -(void)setLines:(gint) lines;
286 
292 -(void)setMarkup:(NSString*) str;
293 
299 -(void)setMarkupWithMnemonic:(NSString*) str;
300 
306 -(void)setMaxWidthChars:(gint) nchars;
307 
313 -(void)setMnemonicWidget:(CGTKWidget*) widget;
314 
320 -(void)setPattern:(NSString*) pattern;
321 
327 -(void)setSelectable:(BOOL) setting;
328 
334 -(void)setSingleLineMode:(BOOL) singleLineMode;
335 
341 -(void)setText:(NSString*) str;
342 
348 -(void)setTextWithMnemonic:(NSString*) str;
349 
355 -(void)setTrackVisitedLinks:(BOOL) trackLinks;
356 
362 -(void)setUseMarkup:(BOOL) setting;
363 
369 -(void)setUseUnderline:(BOOL) setting;
370 
376 -(void)setWidthChars:(gint) nchars;
377 
383 -(void)setXalign:(gfloat) xalign;
384 
390 -(void)setYalign:(gfloat) yalign;
391 
392 @end
gint getLines()
Definition: CGTKLabel.m:115
BOOL getSingleLineMode()
Definition: CGTKLabel.m:145
NSString * getCurrentUri()
Definition: CGTKLabel.m:75
gfloat getYalign()
Definition: CGTKLabel.m:180
gdouble getAngle()
Definition: CGTKLabel.m:65
PangoWrapMode getLineWrapMode()
Definition: CGTKLabel.m:110
BOOL getLineWrap()
Definition: CGTKLabel.m:105
BOOL getTrackVisitedLinks()
Definition: CGTKLabel.m:155
PangoEllipsizeMode getEllipsize()
Definition: CGTKLabel.m:80
guint getMnemonicKeyval()
Definition: CGTKLabel.m:125
NSString * getText()
Definition: CGTKLabel.m:150
gint getWidthChars()
Definition: CGTKLabel.m:170
GtkJustification getJustify()
Definition: CGTKLabel.m:85
BOOL getUseUnderline()
Definition: CGTKLabel.m:165
gint getMaxWidthChars()
Definition: CGTKLabel.m:120
gfloat getXalign()
Definition: CGTKLabel.m:175
GtkLabel * LABEL()
Definition: CGTKLabel.m:60
NSString * getLabel()
Definition: CGTKLabel.m:90
PangoAttrList * getAttributes()
Definition: CGTKLabel.m:70
PangoLayout * getLayout()
Definition: CGTKLabel.m:95
CGTKWidget * getMnemonicWidget()
Definition: CGTKLabel.m:130
BOOL getUseMarkup()
Definition: CGTKLabel.m:160
BOOL getSelectable()
Definition: CGTKLabel.m:135