Module dui.TextView
| Constructor Summary | |
|---|---|
|
(GtkWidget* gtkWidget) |
|
| public |
() Creates a new TextView |
|
(TextBuffer textBuffer) Creates a new TextView with a textBuffer |
|
| Methods Summary | |
|---|---|
| GtkTextView* |
gtkT() |
| static GType |
getType() Gets this class type |
| : |
aliasSignalHandler!(TextView , MovementStep , int , bit ) |
| alias |
SignalHandler!(TextView , void* ) |
| public void |
addOnMoveCursor(void delegate(MovementStep, int , bit) dlg) |
| public void |
addOnPopupMenu(void delegate(void*)) |
| void |
setBuffer(TextBuffer textBuffer) Setst eh text buffer for this text view |
| TextBuffer |
getBuffer() Gets the text buffer of this text view |
| bit |
scrollToIter(TextIter iter, gdouble within_margin, bit use_align, gdouble xalign, gdouble yalign) Scrolls text_view so that iter is on the screen in the position indicated by xalign and yalign. |
| void |
scrollToMark(TextMark mark, gdouble within_margin, bit use_align, gdouble xalign, gdouble yalign) Scroll to make mark visible |
| void |
scrollMarkOnScreen(TextMark mark) Scrolls text_view the minimum distance such that mark is contained within the visible area of the widget. |
| bit |
moveMarkOnScreen(TextMark mark) Moves a mark within the buffer so that it's located within the currently-visible text area. |
| bit |
placeCursorOnScreen() Moves the cursor to the currently visible region of the buffer, it it isn't there already. |
| void |
getVisibleRect(Rectangle* visible_rect) getVisibleRect |
| void |
setCursorVisible(bit setting) setCursorVisible |
| bit |
getCursorVisible() getCursorVisible |
| void |
getIterLocation(TextIter iter, Rectangle* location) getIterLocation |
| void |
getIterAtLocation(TextIter iter, gint x, gint y) getIterAtLocation |
| void |
getLineYRange(TextIter* iter, gint* y, gint* height) getLineYRange |
| void |
getLineAt(TextIter target_iter, gint y, gint* line_top) getLineAt |
| String |
getLineTextAt(gint y) Get the text line at the pixel y |
| void |
bufferToWindowCoords(TextWindowType win, gint buffer_x, gint buffer_y, gint window_x, gint window_y) bufferToWindowCoords |
| void |
windowToBufferCoords(TextWindowType win, gint window_x, gint window_y, gint* buffer_x, gint* buffer_y) windowToBufferCoords |
| WindowG |
getWindow(TextWindowType win) get window |
| TextWindowType |
getWindowType(WindowG windowG) get window type |
| void |
setBorderWindowSize(TextWindowType type, gint size) setBorderWindowSize |
| gint |
getBorderWindowSize(TextWindowType type) getBorderWindowSize |
| bit |
forwardDisplayLine(TextIter iter) Moves the given iter forward by one display (wrapped) line. |
| bit |
backwardDisplayLine(TextIter iter) Moves the given iter backward by one display (wrapped) line. |
| bit |
forwardDisplayLineEnd(TextIter iter) Moves the given iter forward to the next display line end. |
| bit |
backwardDisplayLineStart(TextIter iter) Moves the given iter backward to the next display line start. |
| bit |
startsDisplayLine(TextIter iter) Determines whether iter is at the start of a display line. |
| bit |
moveVisually(TextIter iter, gint count) moveVisually |
| void |
addChildAtAnchor(Widget child, TextChildAnchor anchor) /* Adding child widgets adds a widget at the anchor |
| void |
addChildInWindow(Widget child, TextWindowType which_window, gint xpos, gint ypos) add child in window |
| void |
moveChild(Widget child, gint xpos, gint ypos) move child |
| void |
setWrapMode(WrapMode wrap_mode) /* Default style settings (fallbacks if no tag affects the property) Sets the line wrapping for the view. |
| WrapMode |
getWrapMode() Gets the line wrapping for the view. |
| void |
setEditable(bit setting) Sets the default editability of this TextView. |
| bit |
getEditable() Returns the default editability of this TextView. |
| void |
setPixelsAboveLines(int pixels_above_lines) Sets the default number of blank pixels above paragraphs in text_view. |
| gint |
getPixelsAboveLines() Gets the default number of pixels to put above paragraphs. |
| void |
setPixelsBelowLines(int pixels_below_lines) Sets the default number of pixels of blank space to put below paragraphs in text_view. |
| gint |
getPixelsBelowLines() Gets the number of pixels of blank space to put below paragraphs |
| void |
setPixelsInsideWrap(int pixels_inside_wrap) Sets the default number of pixels of blank space to leave between display/wrapped lines within a paragraph. |
| gint |
getPixelsInsideWrap() Gets the default number of pixels of blank space to leave between display/wrapped lines within a paragraph. |
| void |
setJustification(Justification justification) Sets the default justification of text in text_view. |
| Justification |
getJustification() Gets the justification of text in text_view. |
| void |
setLeftMargin(int left_margin) Sets the default left margin for text in text_view. |
| gint |
getLeftMargin() Gets the default left margin for text in text_view. |
| void |
setRightMargin(int right_margin) Sets the default right margin for text in the text view. |
| gint |
getRightMargin() Gets the default right margin for text in the text view. |
| void |
setIndent(int indent) Sets the default indentation for paragraphs in text_view. |
| gint |
getIndent() Gets the default indentation for paragraphs in text_view. |
| void |
setTabs(TabArray tabs) setTabs |
| TabArray |
getTabs() Get tabs |
| void |
appendText(String text) Simply appends some text to this view |
| void |
appendText(String text, bit ensureVisible) Simply appends some text to this view |
| void |
insertText(String text) Simply appends some on the cursor position |