2 * This file is part of duit.
4 * duit is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation; either version 2.1 of the License, or
7 * (at your option) any later version.
9 * duit is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public License
15 * along with duit; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 // generated automatically - do not change
20 // find conversion definition on APILookup.txt
21 // implement new conversion functionalities on the wrap.utils pakage
24 * Conversion parameters:
25 * inFile = GtkStyle.html
55 * - GdkDrawable* -> Drawable
57 * - GdkPixbuf* -> Pixbuf
58 * - GdkRectangle* -> Rectangle
59 * - GdkWindow* -> Window
60 * - GtkIconSource* -> IconSource
61 * - GtkStyle* -> Style
62 * - GtkWidget* -> Widget
68 private import gtk
.gtktypes
;
70 private import lib
.gtk
;
72 private import glib
.Str
;
73 private import gtk
.Style
;
74 private import gdk
.Window
;
75 private import gdk
.Rectangle
;
76 private import gdk
.Pixbuf
;
77 private import gtk
.IconSource
;
78 private import gtk
.Widget
;
79 private import gdk
.Font
;
80 private import gdk
.Drawable
;
85 private import gobject
.ObjectG
;
86 public class Style
: ObjectG
89 /** the main Gtk struct */
90 protected GtkStyle
* gtkStyle
;
93 public GtkStyle
* getStyleStruct()
99 /** the main Gtk struct as a void* */
100 protected void* getStruct()
102 return cast(void*)gtkStyle
;
106 * Sets our main struct and passes it to the parent class
108 public this (GtkStyle
* gtkStyle
)
110 super(cast(GObject
*)gtkStyle
);
111 this.gtkStyle
= gtkStyle
;
117 // imports for the signal processing
118 private import gobject
.Signals
;
119 private import gdk
.gdktypes
;
120 int[char[]] connectedSignals
;
122 void delegate(Style
)[] onRealizeListeners
;
123 void addOnRealize(void delegate(Style
) dlg
)
125 if ( !("realize" in connectedSignals
) )
130 cast(GCallback
)&callBackRealize
,
133 cast(ConnectFlags
)0);
134 connectedSignals
["realize"] = 1;
136 onRealizeListeners
~= dlg
;
138 extern(C
) static void callBackRealize(GtkStyle
* styleStruct
, Style style
)
140 bit consumed
= false;
142 foreach ( void delegate(Style
) dlg
; style
.onRealizeListeners
)
150 void delegate(Style
)[] onUnrealizeListeners
;
151 void addOnUnrealize(void delegate(Style
) dlg
)
153 if ( !("unrealize" in connectedSignals
) )
158 cast(GCallback
)&callBackUnrealize
,
161 cast(ConnectFlags
)0);
162 connectedSignals
["unrealize"] = 1;
164 onUnrealizeListeners
~= dlg
;
166 extern(C
) static void callBackUnrealize(GtkStyle
* styleStruct
, Style style
)
168 bit consumed
= false;
170 foreach ( void delegate(Style
) dlg
; style
.onUnrealizeListeners
)
182 * Creates a new GtkStyle.
188 // GtkStyle* gtk_style_new (void);
189 this(cast(GtkStyle
*)gtk_style_new() );
198 // GtkStyle* gtk_style_copy (GtkStyle *style);
199 return new Style( gtk_style_copy(gtkStyle
) );
203 * Attaches a style to a window; this process allocates the
204 * colors and creates the GC's for the style - it specializes
205 * it to a particular visual and colormap. The process may
206 * involve the creation of a new style if the style has already
207 * been attached to a window with a different style and colormap.
208 * Since this function may return a new object, you have to use it
209 * in the following way:
210 * style = gtk_style_attach (style, window)
216 * Either style, or a newly-created GtkStyle.
217 * If the style is newly created, the style parameter
218 * will be dereferenced, and the new style will have
219 * a reference count belonging to the caller.
221 public Style
attach(Window window
)
223 // GtkStyle* gtk_style_attach (GtkStyle *style, GdkWindow *window);
224 return new Style( gtk_style_attach(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct()) );
228 * Detaches a style from a window. If the style is not attached
229 * to any windows anymore, it is unrealized. See gtk_style_attach().
235 // void gtk_style_detach (GtkStyle *style);
236 gtk_style_detach(gtkStyle
);
241 * gtk_style_ref is deprecated and should not be used in newly-written code.
242 * Deprecated equivalent of g_object_ref().
250 // GtkStyle* gtk_style_ref (GtkStyle *style);
251 return new Style( gtk_style_ref(gtkStyle
) );
256 * gtk_style_unref is deprecated and should not be used in newly-written code.
257 * Deprecated equivalent of g_object_unref().
263 // void gtk_style_unref (GtkStyle *style);
264 gtk_style_unref(gtkStyle
);
268 * Sets the background of window to the background color or pixmap
269 * specified by style for the given state.
277 public void setBackground(Window window
, GtkStateType stateType
)
279 // void gtk_style_set_background (GtkStyle *style, GdkWindow *window, GtkStateType state_type);
280 gtk_style_set_background(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
);
294 public void applyDefaultBackground(Window window
, int setBg
, GtkStateType stateType
, Rectangle area
, int x
, int y
, int width
, int height
)
296 // void gtk_style_apply_default_background (GtkStyle *style, GdkWindow *window, gboolean set_bg, GtkStateType state_type, GdkRectangle *area, gint x, gint y, gint width, gint height);
297 gtk_style_apply_default_background(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), setBg
, stateType
, (area
is null) ?
null : area
.getRectangleStruct(), x
, y
, width
, height
);
302 * Looks up color_name in the style's logical color mappings,
303 * filling in color and returning TRUE if found, otherwise
304 * returning FALSE. Do not cache the found mapping, because
305 * it depends on the GtkStyle and might change when a theme
310 * the name of the logical color to look up
312 * the GdkColor to fill in
314 * TRUE if the mapping was found.
317 public int lookupColor(char[] colorName
, GdkColor
* color
)
319 // gboolean gtk_style_lookup_color (GtkStyle *style, const gchar *color_name, GdkColor *color);
320 return gtk_style_lookup_color(gtkStyle
, Str
.toStringz(colorName
), color
);
328 public GtkIconSet
* lookupIconSet(char[] stockId
)
330 // GtkIconSet* gtk_style_lookup_icon_set (GtkStyle *style, const gchar *stock_id);
331 return gtk_style_lookup_icon_set(gtkStyle
, Str
.toStringz(stockId
));
335 * Renders the icon specified by source at the given size
336 * according to the given parameters and returns the result in a
341 * the GtkIconSource specifying the icon to render
347 * the size to render the icon at. A size of (GtkIconSize)-1
348 * means render at the size of the source and don't scale.
354 * a newly-created GdkPixbuf containing the rendered icon
356 public Pixbuf
renderIcon(IconSource source
, GtkTextDirection direction
, GtkStateType state
, GtkIconSize size
, Widget widget
, char[] detail
)
358 // GdkPixbuf* gtk_style_render_icon (GtkStyle *style, const GtkIconSource *source, GtkTextDirection direction, GtkStateType state, GtkIconSize size, GtkWidget *widget, const gchar *detail);
359 return new Pixbuf( gtk_style_render_icon(gtkStyle
, (source
is null) ?
null : source
.getIconSourceStruct(), direction
, state
, size
, (widget
is null) ?
null : widget
.getWidgetStruct(), Str
.toStringz(detail
)) );
364 * gtk_style_get_font is deprecated and should not be used in newly-written code.
365 * Gets the GdkFont to use for the given style. This is
366 * meant only as a replacement for direct access to style->font
367 * and should not be used in new code. New code should
368 * use style->font_desc instead.
372 * the GdkFont for the style. This font is owned
373 * by the style; if you want to keep around a copy, you must
374 * call gdk_font_ref().
376 public Font
getFont()
378 // GdkFont* gtk_style_get_font (GtkStyle *style);
379 return new Font( gtk_style_get_font(gtkStyle
) );
384 * gtk_style_set_font is deprecated and should not be used in newly-written code.
385 * Sets the GdkFont to use for a given style. This is
386 * meant only as a replacement for direct access to style->font
387 * and should not be used in new code. New code should
388 * use style->font_desc instead.
392 * a GdkFont, or NULL to use the GdkFont corresponding
393 * to style->font_desc.
395 public void setFont(Font font
)
397 // void gtk_style_set_font (GtkStyle *style, GdkFont *font);
398 gtk_style_set_font(gtkStyle
, (font
is null) ?
null : font
.getFontStruct());
403 * gtk_draw_hline is deprecated and should not be used in newly-written code. Use gtk_paint_hline() instead.
404 * Draws a horizontal line from (x1, y) to (x2, y) in window
405 * using the given style and state.
413 * the starting x coordinate
415 * the ending x coordinate
419 public void drawHline(Window window
, GtkStateType stateType
, int x1
, int x2
, int y
)
421 // void gtk_draw_hline (GtkStyle *style, GdkWindow *window, GtkStateType state_type, gint x1, gint x2, gint y);
422 gtk_draw_hline(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, x1
, x2
, y
);
427 * gtk_draw_vline is deprecated and should not be used in newly-written code. Use gtk_paint_vline() instead.
428 * Draws a vertical line from (x, y1_) to (x, y2_) in window
429 * using the given style and state.
437 * the starting y coordinate
439 * the ending y coordinate
443 public void drawVline(Window window
, GtkStateType stateType
, int y1_
, int y2_
, int x
)
445 // void gtk_draw_vline (GtkStyle *style, GdkWindow *window, GtkStateType state_type, gint y1_, gint y2_, gint x);
446 gtk_draw_vline(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, y1_
, y2_
, x
);
451 * gtk_draw_shadow is deprecated and should not be used in newly-written code. Use gtk_paint_shadow() instead.
452 * Draws a shadow around the given rectangle in window
453 * using the given style and state and shadow type.
461 * type of shadow to draw
463 * x origin of the rectangle
465 * y origin of the rectangle
467 * width of the rectangle
469 * width of the rectangle
471 public void drawShadow(Window window
, GtkStateType stateType
, GtkShadowType shadowType
, int x
, int y
, int width
, int height
)
473 // void gtk_draw_shadow (GtkStyle *style, GdkWindow *window, GtkStateType state_type, GtkShadowType shadow_type, gint x, gint y, gint width, gint height);
474 gtk_draw_shadow(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, shadowType
, x
, y
, width
, height
);
479 * gtk_draw_polygon is deprecated and should not be used in newly-written code. Use gtk_paint_polygon() instead.
480 * Draws a polygon on window with the given parameters.
488 * type of shadow to draw
490 * an array of GdkPoints
494 * TRUE if the polygon should be filled
496 public void drawPolygon(Window window
, GtkStateType stateType
, GtkShadowType shadowType
, GdkPoint
* points
, int npoints
, int fill
)
498 // void gtk_draw_polygon (GtkStyle *style, GdkWindow *window, GtkStateType state_type, GtkShadowType shadow_type, GdkPoint *points, gint npoints, gboolean fill);
499 gtk_draw_polygon(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, shadowType
, points
, npoints
, fill
);
504 * gtk_draw_arrow is deprecated and should not be used in newly-written code. Use gtk_paint_arrow() instead.
505 * Draws an arrow in the given rectangle on window using the given
506 * parameters. arrow_type determines the direction of the arrow.
514 * the type of shadow to draw
516 * the type of arrow to draw
518 * TRUE if the arrow tip should be filled
520 * x origin of the rectangle to draw the arrow in
522 * y origin of the rectangle to draw the arrow in
524 * width of the rectangle to draw the arrow in
526 * height of the rectangle to draw the arrow in
528 public void drawArrow(Window window
, GtkStateType stateType
, GtkShadowType shadowType
, GtkArrowType arrowType
, int fill
, int x
, int y
, int width
, int height
)
530 // void gtk_draw_arrow (GtkStyle *style, GdkWindow *window, GtkStateType state_type, GtkShadowType shadow_type, GtkArrowType arrow_type, gboolean fill, gint x, gint y, gint width, gint height);
531 gtk_draw_arrow(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, shadowType
, arrowType
, fill
, x
, y
, width
, height
);
536 * gtk_draw_diamond is deprecated and should not be used in newly-written code. Use gtk_paint_diamond() instead.
537 * Draws a diamond in the given rectangle on window using the given
546 * the type of shadow to draw
548 * x origin of the rectangle to draw the diamond in
550 * y origin of the rectangle to draw the diamond in
552 * width of the rectangle to draw the diamond in
554 * height of the rectangle to draw the diamond in
556 public void drawDiamond(Window window
, GtkStateType stateType
, GtkShadowType shadowType
, int x
, int y
, int width
, int height
)
558 // void gtk_draw_diamond (GtkStyle *style, GdkWindow *window, GtkStateType state_type, GtkShadowType shadow_type, gint x, gint y, gint width, gint height);
559 gtk_draw_diamond(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, shadowType
, x
, y
, width
, height
);
564 * gtk_draw_string is deprecated and should not be used in newly-written code. Use gtk_paint_layout() instead.
565 * Draws a text string on window with the given parameters.
579 public void drawString(Window window
, GtkStateType stateType
, int x
, int y
, char[] string
)
581 // void gtk_draw_string (GtkStyle *style, GdkWindow *window, GtkStateType state_type, gint x, gint y, const gchar *string);
582 gtk_draw_string(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, x
, y
, Str
.toStringz(string
));
587 * gtk_draw_box is deprecated and should not be used in newly-written code. Use gtk_paint_box() instead.
588 * Draws a box on window with the given parameters.
596 * the type of shadow to draw
598 * x origin of the box
600 * y origin of the box
602 * the width of the box
604 * the height of the box
606 public void drawBox(Window window
, GtkStateType stateType
, GtkShadowType shadowType
, int x
, int y
, int width
, int height
)
608 // void gtk_draw_box (GtkStyle *style, GdkWindow *window, GtkStateType state_type, GtkShadowType shadow_type, gint x, gint y, gint width, gint height);
609 gtk_draw_box(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, shadowType
, x
, y
, width
, height
);
614 * gtk_draw_box_gap is deprecated and should not be used in newly-written code. Use gtk_paint_box_gap() instead.
615 * Draws a box in window using the given style and state and shadow type,
616 * leaving a gap in one side.
624 * type of shadow to draw
626 * x origin of the rectangle
628 * y origin of the rectangle
630 * width of the rectangle
632 * width of the rectangle
634 * side in which to leave the gap
636 * starting position of the gap
640 public void drawBoxGap(Window window
, GtkStateType stateType
, GtkShadowType shadowType
, int x
, int y
, int width
, int height
, GtkPositionType gapSide
, int gapX
, int gapWidth
)
642 // void gtk_draw_box_gap (GtkStyle *style, GdkWindow *window, GtkStateType state_type, GtkShadowType shadow_type, gint x, gint y, gint width, gint height, GtkPositionType gap_side, gint gap_x, gint gap_width);
643 gtk_draw_box_gap(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, shadowType
, x
, y
, width
, height
, gapSide
, gapX
, gapWidth
);
648 * gtk_draw_check is deprecated and should not be used in newly-written code. Use gtk_paint_check() instead.
649 * Draws a check button indicator in the given rectangle on window with
650 * the given parameters.
658 * the type of shadow to draw
660 * x origin of the rectangle to draw the check in
662 * y origin of the rectangle to draw the check in
664 * the width of the rectangle to draw the check in
666 * the height of the rectangle to draw the check in
668 public void drawCheck(Window window
, GtkStateType stateType
, GtkShadowType shadowType
, int x
, int y
, int width
, int height
)
670 // void gtk_draw_check (GtkStyle *style, GdkWindow *window, GtkStateType state_type, GtkShadowType shadow_type, gint x, gint y, gint width, gint height);
671 gtk_draw_check(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, shadowType
, x
, y
, width
, height
);
676 * gtk_draw_extension is deprecated and should not be used in newly-written code. Use gtk_paint_extension() instead.
677 * Draws an extension, i.e. a notebook tab.
685 * type of shadow to draw
687 * x origin of the extension
689 * y origin of the extension
691 * width of the extension
693 * width of the extension
695 * the side on to which the extension is attached
697 public void drawExtension(Window window
, GtkStateType stateType
, GtkShadowType shadowType
, int x
, int y
, int width
, int height
, GtkPositionType gapSide
)
699 // void gtk_draw_extension (GtkStyle *style, GdkWindow *window, GtkStateType state_type, GtkShadowType shadow_type, gint x, gint y, gint width, gint height, GtkPositionType gap_side);
700 gtk_draw_extension(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, shadowType
, x
, y
, width
, height
, gapSide
);
705 * gtk_draw_flat_box is deprecated and should not be used in newly-written code. Use gtk_paint_flat_box() instead.
706 * Draws a flat box on window with the given parameters.
714 * the type of shadow to draw
716 * x origin of the box
718 * y origin of the box
720 * the width of the box
722 * the height of the box
724 public void drawFlatBox(Window window
, GtkStateType stateType
, GtkShadowType shadowType
, int x
, int y
, int width
, int height
)
726 // void gtk_draw_flat_box (GtkStyle *style, GdkWindow *window, GtkStateType state_type, GtkShadowType shadow_type, gint x, gint y, gint width, gint height);
727 gtk_draw_flat_box(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, shadowType
, x
, y
, width
, height
);
732 * gtk_draw_focus is deprecated and should not be used in newly-written code. Use gtk_paint_focus() instead.
733 * Draws a focus indicator around the given rectangle on window using the
740 * the x origin of the rectangle around which to draw a focus indicator
742 * the y origin of the rectangle around which to draw a focus indicator
744 * the width of the rectangle around which to draw a focus indicator
746 * the height of the rectangle around which to draw a focus indicator
748 public void drawFocus(Window window
, int x
, int y
, int width
, int height
)
750 // void gtk_draw_focus (GtkStyle *style, GdkWindow *window, gint x, gint y, gint width, gint height);
751 gtk_draw_focus(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), x
, y
, width
, height
);
756 * gtk_draw_handle is deprecated and should not be used in newly-written code. Use gtk_paint_handle() instead.
757 * Draws a handle as used in GtkHandleBox and GtkPaned.
765 * type of shadow to draw
767 * x origin of the handle
769 * y origin of the handle
773 * height of the handle
775 * the orientation of the handle
777 public void drawHandle(Window window
, GtkStateType stateType
, GtkShadowType shadowType
, int x
, int y
, int width
, int height
, GtkOrientation orientation
)
779 // void gtk_draw_handle (GtkStyle *style, GdkWindow *window, GtkStateType state_type, GtkShadowType shadow_type, gint x, gint y, gint width, gint height, GtkOrientation orientation);
780 gtk_draw_handle(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, shadowType
, x
, y
, width
, height
, orientation
);
785 * gtk_draw_option is deprecated and should not be used in newly-written code. Use gtk_paint_option() instead.
786 * Draws a radio button indicator in the given rectangle on window with
787 * the given parameters.
795 * the type of shadow to draw
797 * x origin of the rectangle to draw the option in
799 * y origin of the rectangle to draw the option in
801 * the width of the rectangle to draw the option in
803 * the height of the rectangle to draw the option in
805 public void drawOption(Window window
, GtkStateType stateType
, GtkShadowType shadowType
, int x
, int y
, int width
, int height
)
807 // void gtk_draw_option (GtkStyle *style, GdkWindow *window, GtkStateType state_type, GtkShadowType shadow_type, gint x, gint y, gint width, gint height);
808 gtk_draw_option(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, shadowType
, x
, y
, width
, height
);
813 * gtk_draw_shadow_gap is deprecated and should not be used in newly-written code. Use gtk_paint_shadow_gap() instead.
814 * Draws a shadow around the given rectangle in window
815 * using the given style and state and shadow type, leaving a
824 * type of shadow to draw
826 * x origin of the rectangle
828 * y origin of the rectangle
830 * width of the rectangle
832 * width of the rectangle
834 * side in which to leave the gap
836 * starting position of the gap
840 public void drawShadowGap(Window window
, GtkStateType stateType
, GtkShadowType shadowType
, int x
, int y
, int width
, int height
, GtkPositionType gapSide
, int gapX
, int gapWidth
)
842 // void gtk_draw_shadow_gap (GtkStyle *style, GdkWindow *window, GtkStateType state_type, GtkShadowType shadow_type, gint x, gint y, gint width, gint height, GtkPositionType gap_side, gint gap_x, gint gap_width);
843 gtk_draw_shadow_gap(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, shadowType
, x
, y
, width
, height
, gapSide
, gapX
, gapWidth
);
848 * gtk_draw_slider is deprecated and should not be used in newly-written code.
859 public void drawSlider(Window window
, GtkStateType stateType
, GtkShadowType shadowType
, int x
, int y
, int width
, int height
, GtkOrientation orientation
)
861 // void gtk_draw_slider (GtkStyle *style, GdkWindow *window, GtkStateType state_type, GtkShadowType shadow_type, gint x, gint y, gint width, gint height, GtkOrientation orientation);
862 gtk_draw_slider(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, shadowType
, x
, y
, width
, height
, orientation
);
867 * gtk_draw_tab is deprecated and should not be used in newly-written code. Use gtk_paint_tab() instead.
868 * Draws an option menu tab (i.e. the up and down pointing arrows)
869 * in the given rectangle on window using the given parameters.
877 * the type of shadow to draw
879 * x origin of the rectangle to draw the tab in
881 * y origin of the rectangle to draw the tab in
883 * the width of the rectangle to draw the tab in
885 * the height of the rectangle to draw the tab in
887 public void drawTab(Window window
, GtkStateType stateType
, GtkShadowType shadowType
, int x
, int y
, int width
, int height
)
889 // void gtk_draw_tab (GtkStyle *style, GdkWindow *window, GtkStateType state_type, GtkShadowType shadow_type, gint x, gint y, gint width, gint height);
890 gtk_draw_tab(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, shadowType
, x
, y
, width
, height
);
895 * gtk_draw_expander is deprecated and should not be used in newly-written code. Use gtk_paint_expander() instead.
896 * Draws an expander as used in GtkTreeView.
904 * the x position to draw the expander at
906 * the y position to draw the expander at
908 * the style to draw the expander in
910 public void drawExpander(Window window
, GtkStateType stateType
, int x
, int y
, GtkExpanderStyle expanderStyle
)
912 // void gtk_draw_expander (GtkStyle *style, GdkWindow *window, GtkStateType state_type, gint x, gint y, GtkExpanderStyle expander_style);
913 gtk_draw_expander(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, x
, y
, expanderStyle
);
918 * gtk_draw_layout is deprecated and should not be used in newly-written code.
927 public void drawLayout(Window window
, GtkStateType stateType
, int useText
, int x
, int y
, PangoLayout
* layout
)
929 // void gtk_draw_layout (GtkStyle *style, GdkWindow *window, GtkStateType state_type, gboolean use_text, gint x, gint y, PangoLayout *layout);
930 gtk_draw_layout(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, useText
, x
, y
, layout
);
935 * gtk_draw_resize_grip is deprecated and should not be used in newly-written code. Use gtk_paint_resize_grip() instead.
936 * Draws a resize grip in the given rectangle on window using the given
945 * the edge in which to draw the resize grip
947 * the x origin of the rectangle in which to draw the resize grip
949 * the y origin of the rectangle in which to draw the resize grip
951 * the width of the rectangle in which to draw the resize grip
953 * the height of the rectangle in which to draw the resize grip
955 public void drawResizeGrip(Window window
, GtkStateType stateType
, GdkWindowEdge edge
, int x
, int y
, int width
, int height
)
957 // void gtk_draw_resize_grip (GtkStyle *style, GdkWindow *window, GtkStateType state_type, GdkWindowEdge edge, gint x, gint y, gint width, gint height);
958 gtk_draw_resize_grip(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, edge
, x
, y
, width
, height
);
962 * Draws an arrow in the given rectangle on window using the given
963 * parameters. arrow_type determines the direction of the arrow.
971 * the type of shadow to draw
973 * clip rectangle, or NULL if the
974 * output should not be clipped
976 * the widget (may be NULL)
978 * a style detail (may be NULL)
980 * the type of arrow to draw
982 * TRUE if the arrow tip should be filled
984 * x origin of the rectangle to draw the arrow in
986 * y origin of the rectangle to draw the arrow in
988 * width of the rectangle to draw the arrow in
990 * height of the rectangle to draw the arrow in
992 public void paintArrow(Window window
, GtkStateType stateType
, GtkShadowType shadowType
, Rectangle area
, Widget widget
, char[] detail
, GtkArrowType arrowType
, int fill
, int x
, int y
, int width
, int height
)
994 // void gtk_paint_arrow (GtkStyle *style, GdkWindow *window, GtkStateType state_type, GtkShadowType shadow_type, GdkRectangle *area, GtkWidget *widget, const gchar *detail, GtkArrowType arrow_type, gboolean fill, gint x, gint y, gint width, gint height);
995 gtk_paint_arrow(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, shadowType
, (area
is null) ?
null : area
.getRectangleStruct(), (widget
is null) ?
null : widget
.getWidgetStruct(), Str
.toStringz(detail
), arrowType
, fill
, x
, y
, width
, height
);
999 * Draws a box on window with the given parameters.
1007 * the type of shadow to draw
1009 * clip rectangle, or NULL if the
1010 * output should not be clipped
1012 * the widget (may be NULL)
1014 * a style detail (may be NULL)
1016 * x origin of the box
1018 * y origin of the box
1020 * the width of the box
1022 * the height of the box
1024 public void paintBox(Window window
, GtkStateType stateType
, GtkShadowType shadowType
, Rectangle area
, Widget widget
, char[] detail
, int x
, int y
, int width
, int height
)
1026 // void gtk_paint_box (GtkStyle *style, GdkWindow *window, GtkStateType state_type, GtkShadowType shadow_type, GdkRectangle *area, GtkWidget *widget, const gchar *detail, gint x, gint y, gint width, gint height);
1027 gtk_paint_box(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, shadowType
, (area
is null) ?
null : area
.getRectangleStruct(), (widget
is null) ?
null : widget
.getWidgetStruct(), Str
.toStringz(detail
), x
, y
, width
, height
);
1031 * Draws a box in window using the given style and state and shadow type,
1032 * leaving a gap in one side.
1040 * type of shadow to draw
1042 * clip rectangle, or NULL if the
1043 * output should not be clipped
1045 * the widget (may be NULL)
1047 * a style detail (may be NULL)
1049 * x origin of the rectangle
1051 * y origin of the rectangle
1053 * width of the rectangle
1055 * width of the rectangle
1057 * side in which to leave the gap
1059 * starting position of the gap
1063 public void paintBoxGap(Window window
, GtkStateType stateType
, GtkShadowType shadowType
, Rectangle area
, Widget widget
, char[] detail
, int x
, int y
, int width
, int height
, GtkPositionType gapSide
, int gapX
, int gapWidth
)
1065 // void gtk_paint_box_gap (GtkStyle *style, GdkWindow *window, GtkStateType state_type, GtkShadowType shadow_type, GdkRectangle *area, GtkWidget *widget, gchar *detail, gint x, gint y, gint width, gint height, GtkPositionType gap_side, gint gap_x, gint gap_width);
1066 gtk_paint_box_gap(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, shadowType
, (area
is null) ?
null : area
.getRectangleStruct(), (widget
is null) ?
null : widget
.getWidgetStruct(), Str
.toStringz(detail
), x
, y
, width
, height
, gapSide
, gapX
, gapWidth
);
1070 * Draws a check button indicator in the given rectangle on window with
1071 * the given parameters.
1079 * the type of shadow to draw
1081 * clip rectangle, or NULL if the
1082 * output should not be clipped
1084 * the widget (may be NULL)
1086 * a style detail (may be NULL)
1088 * x origin of the rectangle to draw the check in
1090 * y origin of the rectangle to draw the check in
1092 * the width of the rectangle to draw the check in
1094 * the height of the rectangle to draw the check in
1096 public void paintCheck(Window window
, GtkStateType stateType
, GtkShadowType shadowType
, Rectangle area
, Widget widget
, char[] detail
, int x
, int y
, int width
, int height
)
1098 // void gtk_paint_check (GtkStyle *style, GdkWindow *window, GtkStateType state_type, GtkShadowType shadow_type, GdkRectangle *area, GtkWidget *widget, const gchar *detail, gint x, gint y, gint width, gint height);
1099 gtk_paint_check(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, shadowType
, (area
is null) ?
null : area
.getRectangleStruct(), (widget
is null) ?
null : widget
.getWidgetStruct(), Str
.toStringz(detail
), x
, y
, width
, height
);
1103 * Draws a diamond in the given rectangle on window using the given
1112 * the type of shadow to draw
1114 * clip rectangle, or NULL if the
1115 * output should not be clipped
1117 * the widget (may be NULL)
1119 * a style detail (may be NULL)
1121 * x origin of the rectangle to draw the diamond in
1123 * y origin of the rectangle to draw the diamond in
1125 * width of the rectangle to draw the diamond in
1127 * height of the rectangle to draw the diamond in
1129 public void paintDiamond(Window window
, GtkStateType stateType
, GtkShadowType shadowType
, Rectangle area
, Widget widget
, char[] detail
, int x
, int y
, int width
, int height
)
1131 // void gtk_paint_diamond (GtkStyle *style, GdkWindow *window, GtkStateType state_type, GtkShadowType shadow_type, GdkRectangle *area, GtkWidget *widget, const gchar *detail, gint x, gint y, gint width, gint height);
1132 gtk_paint_diamond(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, shadowType
, (area
is null) ?
null : area
.getRectangleStruct(), (widget
is null) ?
null : widget
.getWidgetStruct(), Str
.toStringz(detail
), x
, y
, width
, height
);
1136 * Draws an extension, i.e. a notebook tab.
1144 * type of shadow to draw
1146 * clip rectangle, or NULL if the
1147 * output should not be clipped
1149 * the widget (may be NULL)
1151 * a style detail (may be NULL)
1153 * x origin of the extension
1155 * y origin of the extension
1157 * width of the extension
1159 * width of the extension
1161 * the side on to which the extension is attached
1163 public void paintExtension(Window window
, GtkStateType stateType
, GtkShadowType shadowType
, Rectangle area
, Widget widget
, char[] detail
, int x
, int y
, int width
, int height
, GtkPositionType gapSide
)
1165 // void gtk_paint_extension (GtkStyle *style, GdkWindow *window, GtkStateType state_type, GtkShadowType shadow_type, GdkRectangle *area, GtkWidget *widget, gchar *detail, gint x, gint y, gint width, gint height, GtkPositionType gap_side);
1166 gtk_paint_extension(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, shadowType
, (area
is null) ?
null : area
.getRectangleStruct(), (widget
is null) ?
null : widget
.getWidgetStruct(), Str
.toStringz(detail
), x
, y
, width
, height
, gapSide
);
1170 * Draws a flat box on window with the given parameters.
1178 * the type of shadow to draw
1180 * clip rectangle, or NULL if the
1181 * output should not be clipped
1183 * the widget (may be NULL)
1185 * a style detail (may be NULL)
1187 * x origin of the box
1189 * y origin of the box
1191 * the width of the box
1193 * the height of the box
1195 public void paintFlatBox(Window window
, GtkStateType stateType
, GtkShadowType shadowType
, Rectangle area
, Widget widget
, char[] detail
, int x
, int y
, int width
, int height
)
1197 // void gtk_paint_flat_box (GtkStyle *style, GdkWindow *window, GtkStateType state_type, GtkShadowType shadow_type, GdkRectangle *area, GtkWidget *widget, const gchar *detail, gint x, gint y, gint width, gint height);
1198 gtk_paint_flat_box(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, shadowType
, (area
is null) ?
null : area
.getRectangleStruct(), (widget
is null) ?
null : widget
.getWidgetStruct(), Str
.toStringz(detail
), x
, y
, width
, height
);
1202 * Draws a focus indicator around the given rectangle on window using the
1211 * clip rectangle, or NULL if the
1212 * output should not be clipped
1214 * the widget (may be NULL)
1216 * a style detail (may be NULL)
1218 * the x origin of the rectangle around which to draw a focus indicator
1220 * the y origin of the rectangle around which to draw a focus indicator
1222 * the width of the rectangle around which to draw a focus indicator
1224 * the height of the rectangle around which to draw a focus indicator
1226 public void paintFocus(Window window
, GtkStateType stateType
, Rectangle area
, Widget widget
, char[] detail
, int x
, int y
, int width
, int height
)
1228 // void gtk_paint_focus (GtkStyle *style, GdkWindow *window, GtkStateType state_type, GdkRectangle *area, GtkWidget *widget, const gchar *detail, gint x, gint y, gint width, gint height);
1229 gtk_paint_focus(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, (area
is null) ?
null : area
.getRectangleStruct(), (widget
is null) ?
null : widget
.getWidgetStruct(), Str
.toStringz(detail
), x
, y
, width
, height
);
1233 * Draws a handle as used in GtkHandleBox and GtkPaned.
1241 * type of shadow to draw
1243 * clip rectangle, or NULL if the
1244 * output should not be clipped
1246 * the widget (may be NULL)
1248 * a style detail (may be NULL)
1250 * x origin of the handle
1252 * y origin of the handle
1254 * with of the handle
1256 * height of the handle
1258 * the orientation of the handle
1260 public void paintHandle(Window window
, GtkStateType stateType
, GtkShadowType shadowType
, Rectangle area
, Widget widget
, char[] detail
, int x
, int y
, int width
, int height
, GtkOrientation orientation
)
1262 // void gtk_paint_handle (GtkStyle *style, GdkWindow *window, GtkStateType state_type, GtkShadowType shadow_type, GdkRectangle *area, GtkWidget *widget, const gchar *detail, gint x, gint y, gint width, gint height, GtkOrientation orientation);
1263 gtk_paint_handle(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, shadowType
, (area
is null) ?
null : area
.getRectangleStruct(), (widget
is null) ?
null : widget
.getWidgetStruct(), Str
.toStringz(detail
), x
, y
, width
, height
, orientation
);
1267 * Draws a horizontal line from (x1, y) to (x2, y) in window
1268 * using the given style and state.
1276 * rectangle to which the output is clipped, or NULL if the
1277 * output should not be clipped
1279 * the widget (may be NULL)
1281 * a style detail (may be NULL)
1283 * the starting x coordinate
1285 * the ending x coordinate
1289 public void paintHline(Window window
, GtkStateType stateType
, Rectangle area
, Widget widget
, char[] detail
, int x1
, int x2
, int y
)
1291 // void gtk_paint_hline (GtkStyle *style, GdkWindow *window, GtkStateType state_type, GdkRectangle *area, GtkWidget *widget, const gchar *detail, gint x1, gint x2, gint y);
1292 gtk_paint_hline(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, (area
is null) ?
null : area
.getRectangleStruct(), (widget
is null) ?
null : widget
.getWidgetStruct(), Str
.toStringz(detail
), x1
, x2
, y
);
1296 * Draws a radio button indicator in the given rectangle on window with
1297 * the given parameters.
1305 * the type of shadow to draw
1307 * clip rectangle, or NULL if the
1308 * output should not be clipped
1310 * the widget (may be NULL)
1312 * a style detail (may be NULL)
1314 * x origin of the rectangle to draw the option in
1316 * y origin of the rectangle to draw the option in
1318 * the width of the rectangle to draw the option in
1320 * the height of the rectangle to draw the option in
1322 public void paintOption(Window window
, GtkStateType stateType
, GtkShadowType shadowType
, Rectangle area
, Widget widget
, char[] detail
, int x
, int y
, int width
, int height
)
1324 // void gtk_paint_option (GtkStyle *style, GdkWindow *window, GtkStateType state_type, GtkShadowType shadow_type, GdkRectangle *area, GtkWidget *widget, const gchar *detail, gint x, gint y, gint width, gint height);
1325 gtk_paint_option(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, shadowType
, (area
is null) ?
null : area
.getRectangleStruct(), (widget
is null) ?
null : widget
.getWidgetStruct(), Str
.toStringz(detail
), x
, y
, width
, height
);
1329 * Draws a polygon on window with the given parameters.
1337 * type of shadow to draw
1339 * clip rectangle, or NULL if the
1340 * output should not be clipped
1342 * the widget (may be NULL)
1344 * a style detail (may be NULL)
1346 * an array of GdkPoints
1350 * TRUE if the polygon should be filled
1352 public void paintPolygon(Window window
, GtkStateType stateType
, GtkShadowType shadowType
, Rectangle area
, Widget widget
, char[] detail
, GdkPoint
* points
, int npoints
, int fill
)
1354 // void gtk_paint_polygon (GtkStyle *style, GdkWindow *window, GtkStateType state_type, GtkShadowType shadow_type, GdkRectangle *area, GtkWidget *widget, const gchar *detail, GdkPoint *points, gint npoints, gboolean fill);
1355 gtk_paint_polygon(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, shadowType
, (area
is null) ?
null : area
.getRectangleStruct(), (widget
is null) ?
null : widget
.getWidgetStruct(), Str
.toStringz(detail
), points
, npoints
, fill
);
1359 * Draws a shadow around the given rectangle in window
1360 * using the given style and state and shadow type.
1368 * type of shadow to draw
1370 * clip rectangle or NULL if the
1371 * output should not be clipped
1373 * the widget (may be NULL)
1375 * a style detail (may be NULL)
1377 * x origin of the rectangle
1379 * y origin of the rectangle
1381 * width of the rectangle
1383 * width of the rectangle
1385 public void paintShadow(Window window
, GtkStateType stateType
, GtkShadowType shadowType
, Rectangle area
, Widget widget
, char[] detail
, int x
, int y
, int width
, int height
)
1387 // void gtk_paint_shadow (GtkStyle *style, GdkWindow *window, GtkStateType state_type, GtkShadowType shadow_type, GdkRectangle *area, GtkWidget *widget, const gchar *detail, gint x, gint y, gint width, gint height);
1388 gtk_paint_shadow(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, shadowType
, (area
is null) ?
null : area
.getRectangleStruct(), (widget
is null) ?
null : widget
.getWidgetStruct(), Str
.toStringz(detail
), x
, y
, width
, height
);
1392 * Draws a shadow around the given rectangle in window
1393 * using the given style and state and shadow type, leaving a
1402 * type of shadow to draw
1404 * clip rectangle, or NULL if the
1405 * output should not be clipped
1407 * the widget (may be NULL)
1409 * a style detail (may be NULL)
1411 * x origin of the rectangle
1413 * y origin of the rectangle
1415 * width of the rectangle
1417 * width of the rectangle
1419 * side in which to leave the gap
1421 * starting position of the gap
1425 public void paintShadowGap(Window window
, GtkStateType stateType
, GtkShadowType shadowType
, Rectangle area
, Widget widget
, char[] detail
, int x
, int y
, int width
, int height
, GtkPositionType gapSide
, int gapX
, int gapWidth
)
1427 // void gtk_paint_shadow_gap (GtkStyle *style, GdkWindow *window, GtkStateType state_type, GtkShadowType shadow_type, GdkRectangle *area, GtkWidget *widget, gchar *detail, gint x, gint y, gint width, gint height, GtkPositionType gap_side, gint gap_x, gint gap_width);
1428 gtk_paint_shadow_gap(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, shadowType
, (area
is null) ?
null : area
.getRectangleStruct(), (widget
is null) ?
null : widget
.getWidgetStruct(), Str
.toStringz(detail
), x
, y
, width
, height
, gapSide
, gapX
, gapWidth
);
1432 * Draws a slider in the given rectangle on window using the
1433 * given style and orientation.
1443 * clip rectangle, or NULL if the
1444 * output should not be clipped
1446 * the widget (may be NULL)
1448 * a style detail (may be NULL)
1450 * the x origin of the rectangle in which to draw a slider
1452 * the y origin of the rectangle in which to draw a slider
1454 * the width of the rectangle in which to draw a slider
1456 * the height of the rectangle in which to draw a slider
1458 * the orientation to be used
1460 public void paintSlider(Window window
, GtkStateType stateType
, GtkShadowType shadowType
, Rectangle area
, Widget widget
, char[] detail
, int x
, int y
, int width
, int height
, GtkOrientation orientation
)
1462 // void gtk_paint_slider (GtkStyle *style, GdkWindow *window, GtkStateType state_type, GtkShadowType shadow_type, GdkRectangle *area, GtkWidget *widget, const gchar *detail, gint x, gint y, gint width, gint height, GtkOrientation orientation);
1463 gtk_paint_slider(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, shadowType
, (area
is null) ?
null : area
.getRectangleStruct(), (widget
is null) ?
null : widget
.getWidgetStruct(), Str
.toStringz(detail
), x
, y
, width
, height
, orientation
);
1468 * gtk_paint_string is deprecated and should not be used in newly-written code. Use gtk_paint_layout() instead.
1469 * Draws a text string on window with the given parameters.
1477 * clip rectangle, or NULL if the
1478 * output should not be clipped
1480 * the widget (may be NULL)
1482 * a style detail (may be NULL)
1488 * the string to draw
1490 public void paintString(Window window
, GtkStateType stateType
, Rectangle area
, Widget widget
, char[] detail
, int x
, int y
, char[] string
)
1492 // void gtk_paint_string (GtkStyle *style, GdkWindow *window, GtkStateType state_type, GdkRectangle *area, GtkWidget *widget, const gchar *detail, gint x, gint y, const gchar *string);
1493 gtk_paint_string(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, (area
is null) ?
null : area
.getRectangleStruct(), (widget
is null) ?
null : widget
.getWidgetStruct(), Str
.toStringz(detail
), x
, y
, Str
.toStringz(string
));
1497 * Draws an option menu tab (i.e. the up and down pointing arrows)
1498 * in the given rectangle on window using the given parameters.
1506 * the type of shadow to draw
1508 * clip rectangle, or NULL if the
1509 * output should not be clipped
1511 * the widget (may be NULL)
1513 * a style detail (may be NULL)
1515 * x origin of the rectangle to draw the tab in
1517 * y origin of the rectangle to draw the tab in
1519 * the width of the rectangle to draw the tab in
1521 * the height of the rectangle to draw the tab in
1523 public void paintTab(Window window
, GtkStateType stateType
, GtkShadowType shadowType
, Rectangle area
, Widget widget
, char[] detail
, int x
, int y
, int width
, int height
)
1525 // void gtk_paint_tab (GtkStyle *style, GdkWindow *window, GtkStateType state_type, GtkShadowType shadow_type, GdkRectangle *area, GtkWidget *widget, const gchar *detail, gint x, gint y, gint width, gint height);
1526 gtk_paint_tab(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, shadowType
, (area
is null) ?
null : area
.getRectangleStruct(), (widget
is null) ?
null : widget
.getWidgetStruct(), Str
.toStringz(detail
), x
, y
, width
, height
);
1530 * Draws a vertical line from (x, y1_) to (x, y2_) in window
1531 * using the given style and state.
1539 * rectangle to which the output is clipped, or NULL if the
1540 * output should not be clipped
1542 * the widget (may be NULL)
1544 * a style detail (may be NULL)
1546 * the starting y coordinate
1548 * the ending y coordinate
1552 public void paintVline(Window window
, GtkStateType stateType
, Rectangle area
, Widget widget
, char[] detail
, int y1_
, int y2_
, int x
)
1554 // void gtk_paint_vline (GtkStyle *style, GdkWindow *window, GtkStateType state_type, GdkRectangle *area, GtkWidget *widget, const gchar *detail, gint y1_, gint y2_, gint x);
1555 gtk_paint_vline(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, (area
is null) ?
null : area
.getRectangleStruct(), (widget
is null) ?
null : widget
.getWidgetStruct(), Str
.toStringz(detail
), y1_
, y2_
, x
);
1559 * Draws an expander as used in GtkTreeView. x and y specify the
1560 * center the expander. The size of the expander is determined by the
1561 * "expander-size" style property of widget. (If widget is not
1562 * specified or doesn't have an "expander-size" property, an
1563 * unspecified default size will be used, since the caller doesn't
1564 * have sufficient information to position the expander, this is
1565 * likely not useful.) The expander is expander_size pixels tall
1566 * in the collapsed position and expander_size pixels wide in the
1567 * expanded position.
1575 * clip rectangle, or NULL if the
1576 * output should not be clipped
1578 * the widget (may be NULL)
1580 * a style detail (may be NULL)
1582 * the x position to draw the expander at
1584 * the y position to draw the expander at
1586 * the style to draw the expander in; determines
1587 * whether the expander is collapsed, expanded, or in an
1588 * intermediate state.
1590 public void paintExpander(Window window
, GtkStateType stateType
, Rectangle area
, Widget widget
, char[] detail
, int x
, int y
, GtkExpanderStyle expanderStyle
)
1592 // void gtk_paint_expander (GtkStyle *style, GdkWindow *window, GtkStateType state_type, GdkRectangle *area, GtkWidget *widget, const gchar *detail, gint x, gint y, GtkExpanderStyle expander_style);
1593 gtk_paint_expander(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, (area
is null) ?
null : area
.getRectangleStruct(), (widget
is null) ?
null : widget
.getWidgetStruct(), Str
.toStringz(detail
), x
, y
, expanderStyle
);
1597 * Draws a layout on window using the given parameters.
1605 * whether to use the text or foreground
1606 * graphics context of style
1608 * clip rectangle, or NULL if the
1609 * output should not be clipped
1611 * the widget (may be NULL)
1613 * a style detail (may be NULL)
1619 * the layout to draw
1621 public void paintLayout(Window window
, GtkStateType stateType
, int useText
, Rectangle area
, Widget widget
, char[] detail
, int x
, int y
, PangoLayout
* layout
)
1623 // void gtk_paint_layout (GtkStyle *style, GdkWindow *window, GtkStateType state_type, gboolean use_text, GdkRectangle *area, GtkWidget *widget, const gchar *detail, gint x, gint y, PangoLayout *layout);
1624 gtk_paint_layout(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, useText
, (area
is null) ?
null : area
.getRectangleStruct(), (widget
is null) ?
null : widget
.getWidgetStruct(), Str
.toStringz(detail
), x
, y
, layout
);
1628 * Draws a resize grip in the given rectangle on window using the given
1637 * clip rectangle, or NULL if the
1638 * output should not be clipped
1640 * the widget (may be NULL)
1642 * a style detail (may be NULL)
1644 * the edge in which to draw the resize grip
1646 * the x origin of the rectangle in which to draw the resize grip
1648 * the y origin of the rectangle in which to draw the resize grip
1650 * the width of the rectangle in which to draw the resize grip
1652 * the height of the rectangle in which to draw the resize grip
1654 public void paintResizeGrip(Window window
, GtkStateType stateType
, Rectangle area
, Widget widget
, char[] detail
, GdkWindowEdge edge
, int x
, int y
, int width
, int height
)
1656 // void gtk_paint_resize_grip (GtkStyle *style, GdkWindow *window, GtkStateType state_type, GdkRectangle *area, GtkWidget *widget, const gchar *detail, GdkWindowEdge edge, gint x, gint y, gint width, gint height);
1657 gtk_paint_resize_grip(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, (area
is null) ?
null : area
.getRectangleStruct(), (widget
is null) ?
null : widget
.getWidgetStruct(), Str
.toStringz(detail
), edge
, x
, y
, width
, height
);
1661 * Draws a text caret on drawable at location. This is not a style function
1662 * but merely a convenience function for drawing the standard cursor shape.
1668 * rectangle to which the output is clipped, or NULL if the
1669 * output should not be clipped
1671 * location where to draw the cursor (location->width is ignored)
1673 * if the cursor should be the primary cursor color.
1675 * whether the cursor is left-to-right or
1676 * right-to-left. Should never be GTK_TEXT_DIR_NONE
1678 * TRUE to draw a directional arrow on the
1679 * cursor. Should be FALSE unless the cursor is split.
1682 public static void drawInsertionCursor(Widget widget
, Drawable drawable
, Rectangle area
, Rectangle location
, int isPrimary
, GtkTextDirection direction
, int drawArrow
)
1684 // void gtk_draw_insertion_cursor (GtkWidget *widget, GdkDrawable *drawable, GdkRectangle *area, GdkRectangle *location, gboolean is_primary, GtkTextDirection direction, gboolean draw_arrow);
1685 gtk_draw_insertion_cursor((widget
is null) ?
null : widget
.getWidgetStruct(), (drawable
is null) ?
null : drawable
.getDrawableStruct(), (area
is null) ?
null : area
.getRectangleStruct(), (location
is null) ?
null : location
.getRectangleStruct(), isPrimary
, direction
, drawArrow
);
1690 * Copies a GtkBorder structure.
1694 * a copy of border_.
1696 public static GtkBorder
* borderCopy(GtkBorder
* border
)
1698 // GtkBorder* gtk_border_copy (const GtkBorder *border_);
1699 return gtk_border_copy(border
);
1703 * Frees a GtkBorder structure.
1707 public static void borderFree(GtkBorder
* border
)
1709 // void gtk_border_free (GtkBorder *border_);
1710 gtk_border_free(border
);