CoreGTK  2.24.0
CoreGTK is an Objective-C language binding for the GTK+ widget toolkit
 All Classes Functions Variables
CGTKTextView.h
1 /*
2  * CGTKTextView.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 "CGTKContainer.h"
33 
35 {
36 
37 }
38 
42 -(GtkTextView *)TEXT_VIEW;
43 
48 -(id)init;
49 
54 -(id)initWithBuffer:(GtkTextBuffer *)buffer;
55 
60 -(void)setBuffer:(GtkTextBuffer *)buffer;
61 
66 -(GtkTextBuffer *)getBuffer;
67 
72 -(BOOL)scrollToIterWithIter:(GtkTextIter *)iter andWithinMargin:(NSNumber *)withinMargin andUseAlign:(BOOL)useAlign andXalign:(NSNumber *)xalign andYalign:(NSNumber *)yalign;
73 
78 -(void)scrollToMarkWithMark:(GtkTextMark *)mark andWithinMargin:(NSNumber *)withinMargin andUseAlign:(BOOL)useAlign andXalign:(NSNumber *)xalign andYalign:(NSNumber *)yalign;
79 
84 -(void)scrollMarkOnscreen:(GtkTextMark *)mark;
85 
90 -(BOOL)moveMarkOnscreen:(GtkTextMark *)mark;
91 
96 -(BOOL)placeCursorOnscreen;
97 
102 -(void)getVisibleRect:(GdkRectangle *)visibleRect;
103 
108 -(void)setCursorVisible:(BOOL)setting;
109 
114 -(BOOL)getCursorVisible;
115 
120 -(void)getIterLocationWithIter:(const GtkTextIter *)iter andLocation:(GdkRectangle *)location;
121 
126 -(void)getIterAtLocationWithIter:(GtkTextIter *)iter andX:(NSNumber *)x andY:(NSNumber *)y;
127 
132 -(void)getIterAtPositionWithIter:(GtkTextIter *)iter andTrailing:(NSNumber **)trailing andX:(NSNumber *)x andY:(NSNumber *)y;
133 
138 -(void)getLineYrangeWithIter:(const GtkTextIter *)iter andY:(NSNumber **)y andHeight:(NSNumber **)height;
139 
144 -(void)getLineAtYWithTargetIter:(GtkTextIter *)targetIter andY:(NSNumber *)y andLineTop:(NSNumber **)lineTop;
145 
150 -(void)bufferToWindowCoordsWithWin:(GtkTextWindowType)win andBufferX:(NSNumber *)bufferX andBufferY:(NSNumber *)bufferY andWindowX:(NSNumber **)windowX andWindowY:(NSNumber **)windowY;
151 
156 -(void)windowToBufferCoordsWithWin:(GtkTextWindowType)win andWindowX:(NSNumber *)windowX andWindowY:(NSNumber *)windowY andBufferX:(NSNumber **)bufferX andBufferY:(NSNumber **)bufferY;
157 
162 -(GtkAdjustment *)getHadjustment;
163 
168 -(GtkAdjustment *)getVadjustment;
169 
174 -(GdkWindow *)getWindow:(GtkTextWindowType)win;
175 
180 -(GtkTextWindowType)getWindowType:(GdkWindow *)window;
181 
186 -(void)setBorderWindowSizeWithType:(GtkTextWindowType)type andSize:(NSNumber *)size;
187 
192 -(NSNumber *)getBorderWindowSize:(GtkTextWindowType)type;
193 
198 -(BOOL)forwardDisplayLine:(GtkTextIter *)iter;
199 
204 -(BOOL)backwardDisplayLine:(GtkTextIter *)iter;
205 
210 -(BOOL)forwardDisplayLineEnd:(GtkTextIter *)iter;
211 
216 -(BOOL)backwardDisplayLineStart:(GtkTextIter *)iter;
217 
222 -(BOOL)startsDisplayLine:(const GtkTextIter *)iter;
223 
228 -(BOOL)moveVisuallyWithIter:(GtkTextIter *)iter andCount:(NSNumber *)count;
229 
234 -(BOOL)imContextFilterKeypress:(GdkEventKey *)event;
235 
240 -(void)resetImContext;
241 
246 -(void)addChildAtAnchorWithChild:(CGTKWidget *)child andAnchor:(GtkTextChildAnchor *)anchor;
247 
252 -(void)addChildInWindowWithChild:(CGTKWidget *)child andWhichWindow:(GtkTextWindowType)whichWindow andXpos:(NSNumber *)xpos andYpos:(NSNumber *)ypos;
253 
258 -(void)moveChildWithChild:(CGTKWidget *)child andXpos:(NSNumber *)xpos andYpos:(NSNumber *)ypos;
259 
264 -(void)setWrapMode:(GtkWrapMode)wrapMode;
265 
270 -(GtkWrapMode)getWrapMode;
271 
276 -(void)setEditable:(BOOL)setting;
277 
282 -(BOOL)getEditable;
283 
288 -(void)setOverwrite:(BOOL)overwrite;
289 
294 -(BOOL)getOverwrite;
295 
300 -(void)setAcceptsTab:(BOOL)acceptsTab;
301 
306 -(BOOL)getAcceptsTab;
307 
312 -(void)setPixelsAboveLines:(NSNumber *)pixelsAboveLines;
313 
318 -(NSNumber *)getPixelsAboveLines;
319 
324 -(void)setPixelsBelowLines:(NSNumber *)pixelsBelowLines;
325 
330 -(NSNumber *)getPixelsBelowLines;
331 
336 -(void)setPixelsInsideWrap:(NSNumber *)pixelsInsideWrap;
337 
342 -(NSNumber *)getPixelsInsideWrap;
343 
348 -(void)setJustification:(GtkJustification)justification;
349 
354 -(GtkJustification)getJustification;
355 
360 -(void)setLeftMargin:(NSNumber *)leftMargin;
361 
366 -(NSNumber *)getLeftMargin;
367 
372 -(void)setRightMargin:(NSNumber *)rightMargin;
373 
378 -(NSNumber *)getRightMargin;
379 
384 -(void)setIndent:(NSNumber *)indent;
385 
390 -(NSNumber *)getIndent;
391 
396 -(void)setTabs:(PangoTabArray *)tabs;
397 
402 -(PangoTabArray *)getTabs;
403 
408 -(GtkTextAttributes *)getDefaultAttributes;
409 
410 @end
Definition: CGTKTextView.h:34
Definition: CGTKContainer.h:34
Definition: CGTKWidget.h:50