gtksource.gutter_renderer

Module for [GutterRenderer] class

Types 3

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
GutterRenderer self() nothrowReturns `this`, for use in `with` statements.
GutterRendererGidBuilder builder() static nothrowGet builder for [gtksource.gutter_renderer.GutterRenderer] Returns: New builder object
gtksource.types.GutterRendererAlignmentMode alignmentMode() @property nothrowGet `alignmentMode` property. Returns: The alignment mode of the renderer. This can be used to indicate that in the case a cell spans multiple lines (due to text wrapping) the alignment should work...
void alignmentMode(gtksource.types.GutterRendererAlignmentMode propval) @property nothrowSet `alignmentMode` property. Params: propval = The alignment mode of the renderer. This can be used to indicate that in the case a cell spans multiple lines (due to text wrapping) the alignment sh...
gdk.rgba.RGBA backgroundRgba() @property nothrow
void backgroundRgba(gdk.rgba.RGBA propval) @property nothrow
bool backgroundSet() @property nothrow
void backgroundSet(bool propval) @property nothrow
int size() @property nothrow
void size(int propval) @property nothrow
gtk.text_view.TextView view() @property nothrowGet `view` property. Returns: The view on which the renderer is placed.
bool visible() @property nothrowGet `visible` property. Returns: The visibility of the renderer.
void visible(bool propval) @property nothrowSet `visible` property. Params: propval = The visibility of the renderer.
gtk.types.TextWindowType windowType() @property nothrowGet `windowType` property. Returns: The window type of the view on which the renderer is placed (left, or right).
float xalign() @property nothrowGet `xalign` property. Returns: The horizontal alignment of the renderer. Set to 0 for a left alignment. 1 for a right alignment. And 0.5 for centering the cells. A value lower than 0 doesn't modif...
void xalign(float propval) @property nothrowSet `xalign` property. Params: propval = The horizontal alignment of the renderer. Set to 0 for a left alignment. 1 for a right alignment. And 0.5 for centering the cells. A value lower than 0 does...
int xpad() @property nothrowGet `xpad` property. Returns: The left and right padding of the renderer.
void xpad(int propval) @property nothrowSet `xpad` property. Params: propval = The left and right padding of the renderer.
float yalign() @property nothrowGet `yalign` property. Returns: The vertical alignment of the renderer. Set to 0 for a top alignment. 1 for a bottom alignment. And 0.5 for centering the cells. A value lower than 0 doesn't modify ...
void yalign(float propval) @property nothrowSet `yalign` property. Params: propval = The vertical alignment of the renderer. Set to 0 for a top alignment. 1 for a bottom alignment. And 0.5 for centering the cells. A value lower than 0 doesn'...
int ypad() @property nothrowGet `ypad` property. Returns: The top and bottom padding of the renderer.
void ypad(int propval) @property nothrowSet `ypad` property. Params: propval = The top and bottom padding of the renderer.
void activate(gtk.text_iter.TextIter iter, gdk.rectangle.Rectangle area, gdk.event.Event event) nothrowEmits the #GtkSourceGutterRenderer::activate signal of the renderer. This is called from #GtkSourceGutter and should never have to be called manually.
void begin(cairo.context.Context cr, gdk.rectangle.Rectangle backgroundArea, gdk.rectangle.Rectangle cellArea, gtk.text_iter.TextIter start, gtk.text_iter.TextIter end) nothrowCalled when drawing a region begins. The region to be drawn is indicated by start and end. The purpose is to allow the implementation to precompute some state before the draw method is called for e...
void draw(cairo.context.Context cr, gdk.rectangle.Rectangle backgroundArea, gdk.rectangle.Rectangle cellArea, gtk.text_iter.TextIter start, gtk.text_iter.TextIter end, gtksource.types.GutterRendererState state) nothrowMain renderering method. Implementations should implement this method to draw onto the cairo context. The background_area indicates the total area of the cell to be drawn. The cell_area indicates t...
void end() nothrowCalled when drawing a region of lines has ended.
void getAlignment(out float xalign, out float yalign) nothrowGet the x-alignment and y-alignment of the gutter renderer.
gtksource.types.GutterRendererAlignmentMode getAlignmentMode() nothrowGet the alignment mode. The alignment mode describes the manner in which the renderer is aligned (see :xalign and :yalign). Returns: a #GtkSourceGutterRendererAlignmentMode
bool getBackground(out gdk.rgba.RGBA color) nothrowGet the background color of the renderer.
void getPadding(out int xpad, out int ypad) nothrowGet the x-padding and y-padding of the gutter renderer.
int getSize() nothrowGet the size of the renderer. Returns: the size of the renderer.
gtk.text_view.TextView getView() nothrowGet the view associated to the gutter renderer Returns: a #GtkTextView
bool getVisible() nothrowGet whether the gutter renderer is visible. Returns: true if the renderer is visible, false otherwise
gtk.types.TextWindowType getWindowType() nothrowGet the #GtkTextWindowType associated with the gutter renderer. Returns: a #GtkTextWindowType
bool queryActivatable(gtk.text_iter.TextIter iter, gdk.rectangle.Rectangle area, gdk.event.Event event) nothrowGet whether the renderer is activatable at the location in event. This is called from #GtkSourceGutter to determine whether a renderer is activatable using the mouse pointer.
void queryData(gtk.text_iter.TextIter start, gtk.text_iter.TextIter end, gtksource.types.GutterRendererState state) nothrowEmit the #GtkSourceGutterRenderer::query-data signal. This function is called to query for data just before rendering a cell. This is called from the #GtkSourceGutter. Implementations can override...
bool queryTooltip(gtk.text_iter.TextIter iter, gdk.rectangle.Rectangle area, int x, int y, gtk.tooltip.Tooltip tooltip) nothrowEmits the #GtkSourceGutterRenderer::query-tooltip signal. This function is called from #GtkSourceGutter. Implementations can override the default signal handler or can connect to the signal externa...
void queueDraw() nothrowEmits the #GtkSourceGutterRenderer::queue-draw signal of the renderer. Call this from an implementation to inform that the renderer has changed such that it needs to redraw.
void setAlignment(float xalign, float yalign) nothrowSet the alignment of the gutter renderer. Both xalign and yalign can be -1, which means the values will not be changed (this allows changing only one of the values).
void setAlignmentMode(gtksource.types.GutterRendererAlignmentMode mode) nothrowSet the alignment mode. The alignment mode describes the manner in which the renderer is aligned (see :xalign and :yalign).
void setBackground(gdk.rgba.RGBA color) nothrowSet the background color of the renderer. If color is set to null, the renderer will not have a background color.
void setPadding(int xpad, int ypad) nothrowSet the padding of the gutter renderer. Both xpad and ypad can be -1, which means the values will not be changed (this allows changing only one of the values).
void setSize(int size) nothrowSets the size of the renderer. A value of -1 specifies that the size is to be determined dynamically.
void setVisible(bool visible) nothrowSet whether the gutter renderer is visible.
gulong connectActivate(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == gtk.text_iter.TextIter))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == gdk.rectangle.Rectangle))) && (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] == gdk.event.Event))) && (Parameters!T.length < 4 || (ParameterStorageClassTuple!T[3] == ParameterStorageClass.none && is(Parameters!T[3] : gtksource.gutter_renderer.GutterRenderer))) && Parameters!T.length < 5) nothrowConnect to `Activate` signal.
gulong connectQueryActivatable(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == bool) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == gtk.text_iter.TextIter))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == gdk.rectangle.Rectangle))) && (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] == gdk.event.Event))) && (Parameters!T.length < 4 || (ParameterStorageClassTuple!T[3] == ParameterStorageClass.none && is(Parameters!T[3] : gtksource.gutter_renderer.GutterRenderer))) && Parameters!T.length < 5) nothrowConnect to `QueryActivatable` signal.
gulong connectQueryData(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == gtk.text_iter.TextIter))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == gtk.text_iter.TextIter))) && (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] == gtksource.types.GutterRendererState))) && (Parameters!T.length < 4 || (ParameterStorageClassTuple!T[3] == ParameterStorageClass.none && is(Parameters!T[3] : gtksource.gutter_renderer.GutterRenderer))) && Parameters!T.length < 5) nothrowConnect to `QueryData` signal.
gulong connectQueryTooltip(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == bool) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == gtk.text_iter.TextIter))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == gdk.rectangle.Rectangle))) && (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] == int))) && (Parameters!T.length < 4 || (ParameterStorageClassTuple!T[3] == ParameterStorageClass.none && is(Parameters!T[3] == int))) && (Parameters!T.length < 5 || (ParameterStorageClassTuple!T[4] == ParameterStorageClass.none && is(Parameters!T[4] : gtk.tooltip.Tooltip))) && (Parameters!T.length < 6 || (ParameterStorageClassTuple!T[5] == ParameterStorageClass.none && is(Parameters!T[5] : gtksource.gutter_renderer.GutterRenderer))) && Parameters!T.length < 7) nothrowConnect to `QueryTooltip` signal.
gulong connectQueueDraw(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gtksource.gutter_renderer.GutterRenderer))) && Parameters!T.length < 2) nothrowConnect to `QueueDraw` signal.
Constructors
this(void * ptr, Flag!"Take" take)

Fluent builder implementation template for gtksource.gutter_renderer.GutterRenderer

Methods
T alignmentMode(gtksource.types.GutterRendererAlignmentMode propval) nothrowSet `alignmentMode` property. Params: propval = The alignment mode of the renderer. This can be used to indicate that in the case a cell spans multiple lines (due to text wrapping) the alignment sh...
T backgroundRgba(gdk.rgba.RGBA propval) nothrow
T backgroundSet(bool propval) nothrow
T size(int propval) nothrow
T visible(bool propval) nothrowSet `visible` property. Params: propval = The visibility of the renderer. Returns: Builder instance for fluent chaining
T xalign(float propval) nothrowSet `xalign` property. Params: propval = The horizontal alignment of the renderer. Set to 0 for a left alignment. 1 for a right alignment. And 0.5 for centering the cells. A value lower than 0 does...
T xpad(int propval) nothrowSet `xpad` property. Params: propval = The left and right padding of the renderer. Returns: Builder instance for fluent chaining
T yalign(float propval) nothrowSet `yalign` property. Params: propval = The vertical alignment of the renderer. Set to 0 for a top alignment. 1 for a bottom alignment. And 0.5 for centering the cells. A value lower than 0 doesn'...
T ypad(int propval) nothrowSet `ypad` property. Params: propval = The top and bottom padding of the renderer. Returns: Builder instance for fluent chaining
Methods
GutterRenderer build() nothrowCreate object from builder. Returns: New object