CoreGTK  3.22.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) 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 -(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 
208 -(BOOL)getIterAtLocationWithIter:(GtkTextIter*) iter andX:(gint) x andY:(gint) y;
209 
219 -(BOOL)getIterAtPositionWithIter:(GtkTextIter*) iter andTrailing:(gint*) trailing andX:(gint) x andY:(gint) y;
220 
227 -(void)getIterLocationWithIter:(const GtkTextIter*) iter andLocation:(GdkRectangle*) location;
228 
234 -(GtkJustification)getJustification;
235 
241 -(gint)getLeftMargin;
242 
250 -(void)getLineAtYWithTargetIter:(GtkTextIter*) targetIter andY:(gint) y andLineTop:(gint*) lineTop;
251 
259 -(void)getLineYrangeWithIter:(const GtkTextIter*) iter andY:(gint*) y andHeight:(gint*) height;
260 
266 -(BOOL)getMonospace;
267 
273 -(BOOL)getOverwrite;
274 
280 -(gint)getPixelsAboveLines;
281 
287 -(gint)getPixelsBelowLines;
288 
294 -(gint)getPixelsInsideWrap;
295 
301 -(gint)getRightMargin;
302 
308 -(PangoTabArray*)getTabs;
309 
315 -(gint)getTopMargin;
316 
322 -(GtkAdjustment*)getVadjustment;
323 
329 -(void)getVisibleRect:(GdkRectangle*) visibleRect;
330 
337 -(GdkWindow*)getWindow:(GtkTextWindowType) win;
338 
345 -(GtkTextWindowType)getWindowType:(GdkWindow*) window;
346 
352 -(GtkWrapMode)getWrapMode;
353 
360 -(BOOL)imContextFilterKeypress:(GdkEventKey*) event;
361 
369 -(void)moveChildWithChild:(CGTKWidget*) child andXpos:(gint) xpos andYpos:(gint) ypos;
370 
377 -(BOOL)moveMarkOnscreen:(GtkTextMark*) mark;
378 
386 -(BOOL)moveVisuallyWithIter:(GtkTextIter*) iter andCount:(gint) count;
387 
393 -(BOOL)placeCursorOnscreen;
394 
399 -(void)resetCursorBlink;
400 
405 -(void)resetImContext;
406 
412 -(void)scrollMarkOnscreen:(GtkTextMark*) mark;
413 
424 -(BOOL)scrollToIterWithIter:(GtkTextIter*) iter andWithinMargin:(gdouble) withinMargin andUseAlign:(BOOL) useAlign andXalign:(gdouble) xalign andYalign:(gdouble) yalign;
425 
435 -(void)scrollToMarkWithMark:(GtkTextMark*) mark andWithinMargin:(gdouble) withinMargin andUseAlign:(BOOL) useAlign andXalign:(gdouble) xalign andYalign:(gdouble) yalign;
436 
442 -(void)setAcceptsTab:(BOOL) acceptsTab;
443 
450 -(void)setBorderWindowSizeWithType:(GtkTextWindowType) type andSize:(gint) size;
451 
457 -(void)setBottomMargin:(gint) bottomMargin;
458 
464 -(void)setBuffer:(GtkTextBuffer*) buffer;
465 
471 -(void)setCursorVisible:(BOOL) setting;
472 
478 -(void)setEditable:(BOOL) setting;
479 
485 -(void)setIndent:(gint) indent;
486 
492 -(void)setInputHints:(GtkInputHints) hints;
493 
499 -(void)setInputPurpose:(GtkInputPurpose) purpose;
500 
506 -(void)setJustification:(GtkJustification) justification;
507 
513 -(void)setLeftMargin:(gint) leftMargin;
514 
520 -(void)setMonospace:(BOOL) monospace;
521 
527 -(void)setOverwrite:(BOOL) overwrite;
528 
534 -(void)setPixelsAboveLines:(gint) pixelsAboveLines;
535 
541 -(void)setPixelsBelowLines:(gint) pixelsBelowLines;
542 
548 -(void)setPixelsInsideWrap:(gint) pixelsInsideWrap;
549 
555 -(void)setRightMargin:(gint) rightMargin;
556 
562 -(void)setTabs:(PangoTabArray*) tabs;
563 
569 -(void)setTopMargin:(gint) topMargin;
570 
576 -(void)setWrapMode:(GtkWrapMode) wrapMode;
577 
584 -(BOOL)startsDisplayLine:(const GtkTextIter*) iter;
585 
595 -(void)windowToBufferCoordsWithWin:(GtkTextWindowType) win andWindowX:(gint) windowX andWindowY:(gint) windowY andBufferX:(gint*) bufferX andBufferY:(gint*) bufferY;
596 
597 @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
void resetCursorBlink()
Definition: CGTKTextView.m:285
GdkWindow * getWindow()
Definition: CGTKWidget.m:711
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:290
BOOL getEditable()
Definition: CGTKTextView.m:135
gint getPixelsBelowLines()
Definition: CGTKTextView.m:210
gint getBottomMargin()
Definition: CGTKTextView.m:110
GtkInputPurpose getInputPurpose()
Definition: CGTKTextView.m:155