CoreGTK  3.18.0
CoreGTK is an Objective-C language binding for the GTK+ widget toolkit
CGTKTextView.h
1 /*
2  * CGTKTextView.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 -(id)initWithBuffer:(GtkTextBuffer*) buffer;
45 
50 -(GtkTextView*)TEXTVIEW;
51 
58 -(void)addChildAtAnchorWithChild:(CGTKWidget*) child andAnchor:(GtkTextChildAnchor*) anchor;
59 
68 -(void)addChildInWindowWithChild:(CGTKWidget*) child andWhichWindow:(GtkTextWindowType) whichWindow andXpos:(gint) xpos andYpos:(gint) ypos;
69 
76 -(BOOL)backwardDisplayLine:(GtkTextIter*) iter;
77 
84 -(BOOL)backwardDisplayLineStart:(GtkTextIter*) iter;
85 
95 -(void)bufferToWindowCoordsWithWin:(GtkTextWindowType) win andBufferX:(gint) bufferX andBufferY:(gint) bufferY andWindowX:(gint*) windowX andWindowY:(gint*) windowY;
96 
103 -(BOOL)forwardDisplayLine:(GtkTextIter*) iter;
104 
111 -(BOOL)forwardDisplayLineEnd:(GtkTextIter*) iter;
112 
118 -(BOOL)getAcceptsTab;
119 
126 -(gint)getBorderWindowSize:(GtkTextWindowType) type;
127 
133 -(gint)getBottomMargin;
134 
140 -(GtkTextBuffer*)getBuffer;
141 
149 -(void)getCursorLocationsWithIter:(const GtkTextIter*) iter andStrong:(GdkRectangle*) strong andWeak:(GdkRectangle*) weak;
150 
156 -(BOOL)getCursorVisible;
157 
163 -(GtkTextAttributes*)getDefaultAttributes;
164 
170 -(BOOL)getEditable;
171 
177 -(GtkAdjustment*)getHadjustment;
178 
184 -(gint)getIndent;
185 
191 -(GtkInputHints)getInputHints;
192 
198 -(GtkInputPurpose)getInputPurpose;
199 
207 -(void)getIterAtLocationWithIter:(GtkTextIter*) iter andX:(gint) x andY:(gint) y;
208 
217 -(void)getIterAtPositionWithIter:(GtkTextIter*) iter andTrailing:(gint*) trailing andX:(gint) x andY:(gint) y;
218 
225 -(void)getIterLocationWithIter:(const GtkTextIter*) iter andLocation:(GdkRectangle*) location;
226 
232 -(GtkJustification)getJustification;
233 
239 -(gint)getLeftMargin;
240 
248 -(void)getLineAtYWithTargetIter:(GtkTextIter*) targetIter andY:(gint) y andLineTop:(gint*) lineTop;
249 
257 -(void)getLineYrangeWithIter:(const GtkTextIter*) iter andY:(gint*) y andHeight:(gint*) height;
258 
264 -(BOOL)getMonospace;
265 
271 -(BOOL)getOverwrite;
272 
278 -(gint)getPixelsAboveLines;
279 
285 -(gint)getPixelsBelowLines;
286 
292 -(gint)getPixelsInsideWrap;
293 
299 -(gint)getRightMargin;
300 
306 -(PangoTabArray*)getTabs;
307 
313 -(gint)getTopMargin;
314 
320 -(GtkAdjustment*)getVadjustment;
321 
327 -(void)getVisibleRect:(GdkRectangle*) visibleRect;
328 
335 -(GdkWindow*)getWindow:(GtkTextWindowType) win;
336 
343 -(GtkTextWindowType)getWindowType:(GdkWindow*) window;
344 
350 -(GtkWrapMode)getWrapMode;
351 
358 -(BOOL)imContextFilterKeypress:(GdkEventKey*) event;
359 
367 -(void)moveChildWithChild:(CGTKWidget*) child andXpos:(gint) xpos andYpos:(gint) ypos;
368 
375 -(BOOL)moveMarkOnscreen:(GtkTextMark*) mark;
376 
384 -(BOOL)moveVisuallyWithIter:(GtkTextIter*) iter andCount:(gint) count;
385 
391 -(BOOL)placeCursorOnscreen;
392 
397 -(void)resetImContext;
398 
404 -(void)scrollMarkOnscreen:(GtkTextMark*) mark;
405 
416 -(BOOL)scrollToIterWithIter:(GtkTextIter*) iter andWithinMargin:(gdouble) withinMargin andUseAlign:(BOOL) useAlign andXalign:(gdouble) xalign andYalign:(gdouble) yalign;
417 
427 -(void)scrollToMarkWithMark:(GtkTextMark*) mark andWithinMargin:(gdouble) withinMargin andUseAlign:(BOOL) useAlign andXalign:(gdouble) xalign andYalign:(gdouble) yalign;
428 
434 -(void)setAcceptsTab:(BOOL) acceptsTab;
435 
442 -(void)setBorderWindowSizeWithType:(GtkTextWindowType) type andSize:(gint) size;
443 
449 -(void)setBottomMargin:(gint) bottomMargin;
450 
456 -(void)setBuffer:(GtkTextBuffer*) buffer;
457 
463 -(void)setCursorVisible:(BOOL) setting;
464 
470 -(void)setEditable:(BOOL) setting;
471 
477 -(void)setIndent:(gint) indent;
478 
484 -(void)setInputHints:(GtkInputHints) hints;
485 
491 -(void)setInputPurpose:(GtkInputPurpose) purpose;
492 
498 -(void)setJustification:(GtkJustification) justification;
499 
505 -(void)setLeftMargin:(gint) leftMargin;
506 
512 -(void)setMonospace:(BOOL) monospace;
513 
519 -(void)setOverwrite:(BOOL) overwrite;
520 
526 -(void)setPixelsAboveLines:(gint) pixelsAboveLines;
527 
533 -(void)setPixelsBelowLines:(gint) pixelsBelowLines;
534 
540 -(void)setPixelsInsideWrap:(gint) pixelsInsideWrap;
541 
547 -(void)setRightMargin:(gint) rightMargin;
548 
554 -(void)setTabs:(PangoTabArray*) tabs;
555 
561 -(void)setTopMargin:(gint) topMargin;
562 
568 -(void)setWrapMode:(GtkWrapMode) wrapMode;
569 
576 -(BOOL)startsDisplayLine:(const GtkTextIter*) iter;
577 
587 -(void)windowToBufferCoordsWithWin:(GtkTextWindowType) win andWindowX:(gint) windowX andWindowY:(gint) windowY andBufferX:(gint*) bufferX andBufferY:(gint*) bufferY;
588 
589 @end
GtkTextBuffer * getBuffer()
Definition: CGTKTextView.m:115
gint getPixelsAboveLines()
Definition: CGTKTextView.m:205
PangoTabArray * getTabs()
Definition: CGTKTextView.m:225
GtkInputHints getInputHints()
Definition: CGTKTextView.m:150
gint getLeftMargin()
Definition: CGTKTextView.m:180
BOOL getAcceptsTab()
Definition: CGTKTextView.m:100
GtkJustification getJustification()
Definition: CGTKTextView.m:175
GtkTextView * TEXTVIEW()
Definition: CGTKTextView.m:60
gint getRightMargin()
Definition: CGTKTextView.m:220
GdkWindow * getWindow()
Definition: CGTKWidget.m:701
GtkAdjustment * getVadjustment()
Definition: CGTKTextView.m:235
BOOL getMonospace()
Definition: CGTKTextView.m:195
GtkTextAttributes * getDefaultAttributes()
Definition: CGTKTextView.m:130
GtkAdjustment * getHadjustment()
Definition: CGTKTextView.m:140
GtkWrapMode getWrapMode()
Definition: CGTKTextView.m:255
BOOL placeCursorOnscreen()
Definition: CGTKTextView.m:280
gint getPixelsInsideWrap()
Definition: CGTKTextView.m:215
BOOL getOverwrite()
Definition: CGTKTextView.m:200
gint getTopMargin()
Definition: CGTKTextView.m:230
BOOL getCursorVisible()
Definition: CGTKTextView.m:125
void resetImContext()
Definition: CGTKTextView.m:285
BOOL getEditable()
Definition: CGTKTextView.m:135
gint getPixelsBelowLines()
Definition: CGTKTextView.m:210
gint getBottomMargin()
Definition: CGTKTextView.m:110
GtkInputPurpose getInputPurpose()
Definition: CGTKTextView.m:155