2 * This file is part of gtkD.
4 * gtkD 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 * gtkD 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 gtkD; 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
73 import tango
.io
.Stdout
; // use the tango loging?
77 private import gtkc
.gtktypes
;
79 private import gtkc
.gtk
;
82 private import glib
.Str
;
83 private import gtk
.Style
;
84 private import gdk
.Window
;
85 private import gdk
.Rectangle
;
86 private import gdk
.Pixbuf
;
87 private import gtk
.IconSource
;
88 private import gtk
.Widget
;
89 private import gdk
.Font
;
90 private import gdk
.Drawable
;
98 private import gobject
.ObjectG
;
99 public class Style
: ObjectG
102 /** the main Gtk struct */
103 protected GtkStyle
* gtkStyle
;
106 public GtkStyle
* getStyleStruct()
112 /** the main Gtk struct as a void* */
113 protected void* getStruct()
115 return cast(void*)gtkStyle
;
119 * Sets our main struct and passes it to the parent class
121 public this (GtkStyle
* gtkStyle
)
125 if ( gtkStyle
is null )
130 Stdout("struct gtkStyle is null on constructor").newline
;
134 printf("struct gtkStyle is null on constructor");
141 assert(gtkStyle
!is null, "struct gtkStyle is null on constructor");
143 super(cast(GObject
*)gtkStyle
);
144 this.gtkStyle
= gtkStyle
;
150 // imports for the signal processing
151 private import gobject
.Signals
;
152 private import gtkc
.gdktypes
;
153 int[char[]] connectedSignals
;
155 void delegate(Style
)[] onRealizeListeners
;
156 void addOnRealize(void delegate(Style
) dlg
, ConnectFlags connectFlags
=cast(ConnectFlags
)0)
158 if ( !("realize" in connectedSignals
) )
163 cast(GCallback
)&callBackRealize
,
167 connectedSignals
["realize"] = 1;
169 onRealizeListeners
~= dlg
;
171 extern(C
) static void callBackRealize(GtkStyle
* styleStruct
, Style style
)
173 bool consumed
= false;
175 foreach ( void delegate(Style
) dlg
; style
.onRealizeListeners
)
183 void delegate(Style
)[] onUnrealizeListeners
;
184 void addOnUnrealize(void delegate(Style
) dlg
, ConnectFlags connectFlags
=cast(ConnectFlags
)0)
186 if ( !("unrealize" in connectedSignals
) )
191 cast(GCallback
)&callBackUnrealize
,
195 connectedSignals
["unrealize"] = 1;
197 onUnrealizeListeners
~= dlg
;
199 extern(C
) static void callBackUnrealize(GtkStyle
* styleStruct
, Style style
)
201 bool consumed
= false;
203 foreach ( void delegate(Style
) dlg
; style
.onUnrealizeListeners
)
215 * Creates a new GtkStyle.
221 // GtkStyle* gtk_style_new (void);
222 this(cast(GtkStyle
*)gtk_style_new() );
231 // GtkStyle* gtk_style_copy (GtkStyle *style);
232 return new Style( gtk_style_copy(gtkStyle
) );
236 * Attaches a style to a window; this process allocates the
237 * colors and creates the GC's for the style - it specializes
238 * it to a particular visual and colormap. The process may
239 * involve the creation of a new style if the style has already
240 * been attached to a window with a different style and colormap.
241 * Since this function may return a new object, you have to use it
242 * in the following way:
243 * style = gtk_style_attach (style, window)
249 * Either style, or a newly-created GtkStyle.
250 * If the style is newly created, the style parameter
251 * will be unref'ed, and the new style will have
252 * a reference count belonging to the caller.
254 public Style
attach(Window window
)
256 // GtkStyle* gtk_style_attach (GtkStyle *style, GdkWindow *window);
257 return new Style( gtk_style_attach(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct()) );
261 * Detaches a style from a window. If the style is not attached
262 * to any windows anymore, it is unrealized. See gtk_style_attach().
268 // void gtk_style_detach (GtkStyle *style);
269 gtk_style_detach(gtkStyle
);
274 * gtk_style_ref is deprecated and should not be used in newly-written code.
275 * Deprecated equivalent of g_object_ref().
283 // GtkStyle* gtk_style_ref (GtkStyle *style);
284 return new Style( gtk_style_ref(gtkStyle
) );
289 * gtk_style_unref is deprecated and should not be used in newly-written code.
290 * Deprecated equivalent of g_object_unref().
296 // void gtk_style_unref (GtkStyle *style);
297 gtk_style_unref(gtkStyle
);
301 * Sets the background of window to the background color or pixmap
302 * specified by style for the given state.
310 public void setBackground(Window window
, GtkStateType stateType
)
312 // void gtk_style_set_background (GtkStyle *style, GdkWindow *window, GtkStateType state_type);
313 gtk_style_set_background(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
);
327 public void applyDefaultBackground(Window window
, int setBg
, GtkStateType stateType
, Rectangle area
, int x
, int y
, int width
, int height
)
329 // 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);
330 gtk_style_apply_default_background(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), setBg
, stateType
, (area
is null) ?
null : area
.getRectangleStruct(), x
, y
, width
, height
);
335 * Looks up color_name in the style's logical color mappings,
336 * filling in color and returning TRUE if found, otherwise
337 * returning FALSE. Do not cache the found mapping, because
338 * it depends on the GtkStyle and might change when a theme
343 * the name of the logical color to look up
345 * the GdkColor to fill in
347 * TRUE if the mapping was found.
350 public int lookupColor(char[] colorName
, GdkColor
* color
)
352 // gboolean gtk_style_lookup_color (GtkStyle *style, const gchar *color_name, GdkColor *color);
353 return gtk_style_lookup_color(gtkStyle
, Str
.toStringz(colorName
), color
);
361 public GtkIconSet
* lookupIconSet(char[] stockId
)
363 // GtkIconSet* gtk_style_lookup_icon_set (GtkStyle *style, const gchar *stock_id);
364 return gtk_style_lookup_icon_set(gtkStyle
, Str
.toStringz(stockId
));
368 * Renders the icon specified by source at the given size
369 * according to the given parameters and returns the result in a
374 * the GtkIconSource specifying the icon to render
380 * the size to render the icon at. A size of (GtkIconSize)-1
381 * means render at the size of the source and don't scale.
387 * a newly-created GdkPixbuf containing the rendered icon
389 public Pixbuf
renderIcon(IconSource source
, GtkTextDirection direction
, GtkStateType state
, GtkIconSize size
, Widget widget
, char[] detail
)
391 // GdkPixbuf* gtk_style_render_icon (GtkStyle *style, const GtkIconSource *source, GtkTextDirection direction, GtkStateType state, GtkIconSize size, GtkWidget *widget, const gchar *detail);
392 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
)) );
397 * gtk_style_get_font is deprecated and should not be used in newly-written code.
398 * Gets the GdkFont to use for the given style. This is
399 * meant only as a replacement for direct access to style->font
400 * and should not be used in new code. New code should
401 * use style->font_desc instead.
405 * the GdkFont for the style. This font is owned
406 * by the style; if you want to keep around a copy, you must
407 * call gdk_font_ref().
409 public Font
getFont()
411 // GdkFont* gtk_style_get_font (GtkStyle *style);
412 return new Font( gtk_style_get_font(gtkStyle
) );
417 * gtk_style_set_font is deprecated and should not be used in newly-written code.
418 * Sets the GdkFont to use for a given style. This is
419 * meant only as a replacement for direct access to style->font
420 * and should not be used in new code. New code should
421 * use style->font_desc instead.
425 * a GdkFont, or NULL to use the GdkFont corresponding
426 * to style->font_desc.
428 public void setFont(Font font
)
430 // void gtk_style_set_font (GtkStyle *style, GdkFont *font);
431 gtk_style_set_font(gtkStyle
, (font
is null) ?
null : font
.getFontStruct());
436 * gtk_draw_hline is deprecated and should not be used in newly-written code. Use gtk_paint_hline() instead.
437 * Draws a horizontal line from (x1, y) to (x2, y) in window
438 * using the given style and state.
446 * the starting x coordinate
448 * the ending x coordinate
452 public void drawHline(Window window
, GtkStateType stateType
, int x1
, int x2
, int y
)
454 // void gtk_draw_hline (GtkStyle *style, GdkWindow *window, GtkStateType state_type, gint x1, gint x2, gint y);
455 gtk_draw_hline(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, x1
, x2
, y
);
460 * gtk_draw_vline is deprecated and should not be used in newly-written code. Use gtk_paint_vline() instead.
461 * Draws a vertical line from (x, y1_) to (x, y2_) in window
462 * using the given style and state.
470 * the starting y coordinate
472 * the ending y coordinate
476 public void drawVline(Window window
, GtkStateType stateType
, int y1_
, int y2_
, int x
)
478 // void gtk_draw_vline (GtkStyle *style, GdkWindow *window, GtkStateType state_type, gint y1_, gint y2_, gint x);
479 gtk_draw_vline(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, y1_
, y2_
, x
);
484 * gtk_draw_shadow is deprecated and should not be used in newly-written code. Use gtk_paint_shadow() instead.
485 * Draws a shadow around the given rectangle in window
486 * using the given style and state and shadow type.
494 * type of shadow to draw
496 * x origin of the rectangle
498 * y origin of the rectangle
500 * width of the rectangle
502 * width of the rectangle
504 public void drawShadow(Window window
, GtkStateType stateType
, GtkShadowType shadowType
, int x
, int y
, int width
, int height
)
506 // void gtk_draw_shadow (GtkStyle *style, GdkWindow *window, GtkStateType state_type, GtkShadowType shadow_type, gint x, gint y, gint width, gint height);
507 gtk_draw_shadow(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, shadowType
, x
, y
, width
, height
);
512 * gtk_draw_polygon is deprecated and should not be used in newly-written code. Use gtk_paint_polygon() instead.
513 * Draws a polygon on window with the given parameters.
521 * type of shadow to draw
523 * an array of GdkPoints
527 * TRUE if the polygon should be filled
529 public void drawPolygon(Window window
, GtkStateType stateType
, GtkShadowType shadowType
, GdkPoint
* points
, int npoints
, int fill
)
531 // void gtk_draw_polygon (GtkStyle *style, GdkWindow *window, GtkStateType state_type, GtkShadowType shadow_type, GdkPoint *points, gint npoints, gboolean fill);
532 gtk_draw_polygon(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, shadowType
, points
, npoints
, fill
);
537 * gtk_draw_arrow is deprecated and should not be used in newly-written code. Use gtk_paint_arrow() instead.
538 * Draws an arrow in the given rectangle on window using the given
539 * parameters. arrow_type determines the direction of the arrow.
547 * the type of shadow to draw
549 * the type of arrow to draw
551 * TRUE if the arrow tip should be filled
553 * x origin of the rectangle to draw the arrow in
555 * y origin of the rectangle to draw the arrow in
557 * width of the rectangle to draw the arrow in
559 * height of the rectangle to draw the arrow in
561 public void drawArrow(Window window
, GtkStateType stateType
, GtkShadowType shadowType
, GtkArrowType arrowType
, int fill
, int x
, int y
, int width
, int height
)
563 // 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);
564 gtk_draw_arrow(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, shadowType
, arrowType
, fill
, x
, y
, width
, height
);
569 * gtk_draw_diamond is deprecated and should not be used in newly-written code. Use gtk_paint_diamond() instead.
570 * Draws a diamond in the given rectangle on window using the given
579 * the type of shadow to draw
581 * x origin of the rectangle to draw the diamond in
583 * y origin of the rectangle to draw the diamond in
585 * width of the rectangle to draw the diamond in
587 * height of the rectangle to draw the diamond in
589 public void drawDiamond(Window window
, GtkStateType stateType
, GtkShadowType shadowType
, int x
, int y
, int width
, int height
)
591 // void gtk_draw_diamond (GtkStyle *style, GdkWindow *window, GtkStateType state_type, GtkShadowType shadow_type, gint x, gint y, gint width, gint height);
592 gtk_draw_diamond(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, shadowType
, x
, y
, width
, height
);
597 * gtk_draw_string is deprecated and should not be used in newly-written code. Use gtk_paint_layout() instead.
598 * Draws a text string on window with the given parameters.
612 public void drawString(Window window
, GtkStateType stateType
, int x
, int y
, char[] string
)
614 // void gtk_draw_string (GtkStyle *style, GdkWindow *window, GtkStateType state_type, gint x, gint y, const gchar *string);
615 gtk_draw_string(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, x
, y
, Str
.toStringz(string
));
620 * gtk_draw_box is deprecated and should not be used in newly-written code. Use gtk_paint_box() instead.
621 * Draws a box on window with the given parameters.
629 * the type of shadow to draw
631 * x origin of the box
633 * y origin of the box
635 * the width of the box
637 * the height of the box
639 public void drawBox(Window window
, GtkStateType stateType
, GtkShadowType shadowType
, int x
, int y
, int width
, int height
)
641 // void gtk_draw_box (GtkStyle *style, GdkWindow *window, GtkStateType state_type, GtkShadowType shadow_type, gint x, gint y, gint width, gint height);
642 gtk_draw_box(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, shadowType
, x
, y
, width
, height
);
647 * gtk_draw_box_gap is deprecated and should not be used in newly-written code. Use gtk_paint_box_gap() instead.
648 * Draws a box in window using the given style and state and shadow type,
649 * leaving a gap in one side.
657 * type of shadow to draw
659 * x origin of the rectangle
661 * y origin of the rectangle
663 * width of the rectangle
665 * width of the rectangle
667 * side in which to leave the gap
669 * starting position of the gap
673 public void drawBoxGap(Window window
, GtkStateType stateType
, GtkShadowType shadowType
, int x
, int y
, int width
, int height
, GtkPositionType gapSide
, int gapX
, int gapWidth
)
675 // 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);
676 gtk_draw_box_gap(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, shadowType
, x
, y
, width
, height
, gapSide
, gapX
, gapWidth
);
681 * gtk_draw_check is deprecated and should not be used in newly-written code. Use gtk_paint_check() instead.
682 * Draws a check button indicator in the given rectangle on window with
683 * the given parameters.
691 * the type of shadow to draw
693 * x origin of the rectangle to draw the check in
695 * y origin of the rectangle to draw the check in
697 * the width of the rectangle to draw the check in
699 * the height of the rectangle to draw the check in
701 public void drawCheck(Window window
, GtkStateType stateType
, GtkShadowType shadowType
, int x
, int y
, int width
, int height
)
703 // void gtk_draw_check (GtkStyle *style, GdkWindow *window, GtkStateType state_type, GtkShadowType shadow_type, gint x, gint y, gint width, gint height);
704 gtk_draw_check(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, shadowType
, x
, y
, width
, height
);
709 * gtk_draw_extension is deprecated and should not be used in newly-written code. Use gtk_paint_extension() instead.
710 * Draws an extension, i.e. a notebook tab.
718 * type of shadow to draw
720 * x origin of the extension
722 * y origin of the extension
724 * width of the extension
726 * width of the extension
728 * the side on to which the extension is attached
730 public void drawExtension(Window window
, GtkStateType stateType
, GtkShadowType shadowType
, int x
, int y
, int width
, int height
, GtkPositionType gapSide
)
732 // 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);
733 gtk_draw_extension(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, shadowType
, x
, y
, width
, height
, gapSide
);
738 * gtk_draw_flat_box is deprecated and should not be used in newly-written code. Use gtk_paint_flat_box() instead.
739 * Draws a flat box on window with the given parameters.
747 * the type of shadow to draw
749 * x origin of the box
751 * y origin of the box
753 * the width of the box
755 * the height of the box
757 public void drawFlatBox(Window window
, GtkStateType stateType
, GtkShadowType shadowType
, int x
, int y
, int width
, int height
)
759 // void gtk_draw_flat_box (GtkStyle *style, GdkWindow *window, GtkStateType state_type, GtkShadowType shadow_type, gint x, gint y, gint width, gint height);
760 gtk_draw_flat_box(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, shadowType
, x
, y
, width
, height
);
765 * gtk_draw_focus is deprecated and should not be used in newly-written code. Use gtk_paint_focus() instead.
766 * Draws a focus indicator around the given rectangle on window using the
773 * the x origin of the rectangle around which to draw a focus indicator
775 * the y origin of the rectangle around which to draw a focus indicator
777 * the width of the rectangle around which to draw a focus indicator
779 * the height of the rectangle around which to draw a focus indicator
781 public void drawFocus(Window window
, int x
, int y
, int width
, int height
)
783 // void gtk_draw_focus (GtkStyle *style, GdkWindow *window, gint x, gint y, gint width, gint height);
784 gtk_draw_focus(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), x
, y
, width
, height
);
789 * gtk_draw_handle is deprecated and should not be used in newly-written code. Use gtk_paint_handle() instead.
790 * Draws a handle as used in GtkHandleBox and GtkPaned.
798 * type of shadow to draw
800 * x origin of the handle
802 * y origin of the handle
806 * height of the handle
808 * the orientation of the handle
810 public void drawHandle(Window window
, GtkStateType stateType
, GtkShadowType shadowType
, int x
, int y
, int width
, int height
, GtkOrientation orientation
)
812 // void gtk_draw_handle (GtkStyle *style, GdkWindow *window, GtkStateType state_type, GtkShadowType shadow_type, gint x, gint y, gint width, gint height, GtkOrientation orientation);
813 gtk_draw_handle(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, shadowType
, x
, y
, width
, height
, orientation
);
818 * gtk_draw_option is deprecated and should not be used in newly-written code. Use gtk_paint_option() instead.
819 * Draws a radio button indicator in the given rectangle on window with
820 * the given parameters.
828 * the type of shadow to draw
830 * x origin of the rectangle to draw the option in
832 * y origin of the rectangle to draw the option in
834 * the width of the rectangle to draw the option in
836 * the height of the rectangle to draw the option in
838 public void drawOption(Window window
, GtkStateType stateType
, GtkShadowType shadowType
, int x
, int y
, int width
, int height
)
840 // void gtk_draw_option (GtkStyle *style, GdkWindow *window, GtkStateType state_type, GtkShadowType shadow_type, gint x, gint y, gint width, gint height);
841 gtk_draw_option(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, shadowType
, x
, y
, width
, height
);
846 * gtk_draw_shadow_gap is deprecated and should not be used in newly-written code. Use gtk_paint_shadow_gap() instead.
847 * Draws a shadow around the given rectangle in window
848 * using the given style and state and shadow type, leaving a
857 * type of shadow to draw
859 * x origin of the rectangle
861 * y origin of the rectangle
863 * width of the rectangle
865 * width of the rectangle
867 * side in which to leave the gap
869 * starting position of the gap
873 public void drawShadowGap(Window window
, GtkStateType stateType
, GtkShadowType shadowType
, int x
, int y
, int width
, int height
, GtkPositionType gapSide
, int gapX
, int gapWidth
)
875 // 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);
876 gtk_draw_shadow_gap(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, shadowType
, x
, y
, width
, height
, gapSide
, gapX
, gapWidth
);
881 * gtk_draw_slider is deprecated and should not be used in newly-written code.
892 public void drawSlider(Window window
, GtkStateType stateType
, GtkShadowType shadowType
, int x
, int y
, int width
, int height
, GtkOrientation orientation
)
894 // void gtk_draw_slider (GtkStyle *style, GdkWindow *window, GtkStateType state_type, GtkShadowType shadow_type, gint x, gint y, gint width, gint height, GtkOrientation orientation);
895 gtk_draw_slider(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, shadowType
, x
, y
, width
, height
, orientation
);
900 * gtk_draw_tab is deprecated and should not be used in newly-written code. Use gtk_paint_tab() instead.
901 * Draws an option menu tab (i.e. the up and down pointing arrows)
902 * in the given rectangle on window using the given parameters.
910 * the type of shadow to draw
912 * x origin of the rectangle to draw the tab in
914 * y origin of the rectangle to draw the tab in
916 * the width of the rectangle to draw the tab in
918 * the height of the rectangle to draw the tab in
920 public void drawTab(Window window
, GtkStateType stateType
, GtkShadowType shadowType
, int x
, int y
, int width
, int height
)
922 // void gtk_draw_tab (GtkStyle *style, GdkWindow *window, GtkStateType state_type, GtkShadowType shadow_type, gint x, gint y, gint width, gint height);
923 gtk_draw_tab(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, shadowType
, x
, y
, width
, height
);
928 * gtk_draw_expander is deprecated and should not be used in newly-written code. Use gtk_paint_expander() instead.
929 * Draws an expander as used in GtkTreeView.
937 * the x position to draw the expander at
939 * the y position to draw the expander at
941 * the style to draw the expander in
943 public void drawExpander(Window window
, GtkStateType stateType
, int x
, int y
, GtkExpanderStyle expanderStyle
)
945 // void gtk_draw_expander (GtkStyle *style, GdkWindow *window, GtkStateType state_type, gint x, gint y, GtkExpanderStyle expander_style);
946 gtk_draw_expander(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, x
, y
, expanderStyle
);
951 * gtk_draw_layout is deprecated and should not be used in newly-written code.
960 public void drawLayout(Window window
, GtkStateType stateType
, int useText
, int x
, int y
, PangoLayout
* layout
)
962 // void gtk_draw_layout (GtkStyle *style, GdkWindow *window, GtkStateType state_type, gboolean use_text, gint x, gint y, PangoLayout *layout);
963 gtk_draw_layout(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, useText
, x
, y
, layout
);
968 * gtk_draw_resize_grip is deprecated and should not be used in newly-written code. Use gtk_paint_resize_grip() instead.
969 * Draws a resize grip in the given rectangle on window using the given
978 * the edge in which to draw the resize grip
980 * the x origin of the rectangle in which to draw the resize grip
982 * the y origin of the rectangle in which to draw the resize grip
984 * the width of the rectangle in which to draw the resize grip
986 * the height of the rectangle in which to draw the resize grip
988 public void drawResizeGrip(Window window
, GtkStateType stateType
, GdkWindowEdge edge
, int x
, int y
, int width
, int height
)
990 // void gtk_draw_resize_grip (GtkStyle *style, GdkWindow *window, GtkStateType state_type, GdkWindowEdge edge, gint x, gint y, gint width, gint height);
991 gtk_draw_resize_grip(gtkStyle
, (window
is null) ?
null : window
.getWindowStruct(), stateType
, edge
, x
, y
, width
, height
);
995 * Draws an arrow in the given rectangle on window using the given
996 * parameters. arrow_type determines the direction of the arrow.
1004 * the type of shadow to draw
1006 * clip rectangle, or NULL if the
1007 * output should not be clipped
1009 * the widget (may be NULL)
1011 * a style detail (may be NULL)
1013 * the type of arrow to draw
1015 * TRUE if the arrow tip should be filled
1017 * x origin of the rectangle to draw the arrow in
1019 * y origin of the rectangle to draw the arrow in
1021 * width of the rectangle to draw the arrow in
1023 * height of the rectangle to draw the arrow in
1025 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
)
1027 // 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);
1028 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
);
1032 * Draws a box on window with the given parameters.
1040 * the 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 box
1051 * y origin of the box
1053 * the width of the box
1055 * the height of the box
1057 public void paintBox(Window window
, GtkStateType stateType
, GtkShadowType shadowType
, Rectangle area
, Widget widget
, char[] detail
, int x
, int y
, int width
, int height
)
1059 // 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);
1060 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
);
1064 * Draws a box in window using the given style and state and shadow type,
1065 * leaving a gap in one side.
1073 * type of shadow to draw
1075 * clip rectangle, or NULL if the
1076 * output should not be clipped
1078 * the widget (may be NULL)
1080 * a style detail (may be NULL)
1082 * x origin of the rectangle
1084 * y origin of the rectangle
1086 * width of the rectangle
1088 * width of the rectangle
1090 * side in which to leave the gap
1092 * starting position of the gap
1096 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
)
1098 // 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);
1099 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
);
1103 * Draws a check button indicator in the given rectangle on window with
1104 * the given parameters.
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 check in
1123 * y origin of the rectangle to draw the check in
1125 * the width of the rectangle to draw the check in
1127 * the height of the rectangle to draw the check in
1129 public void paintCheck(Window window
, GtkStateType stateType
, GtkShadowType shadowType
, Rectangle area
, Widget widget
, char[] detail
, int x
, int y
, int width
, int height
)
1131 // 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);
1132 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
);
1136 * Draws a diamond in the given rectangle on window using the given
1145 * the type of shadow to draw
1147 * clip rectangle, or NULL if the
1148 * output should not be clipped
1150 * the widget (may be NULL)
1152 * a style detail (may be NULL)
1154 * x origin of the rectangle to draw the diamond in
1156 * y origin of the rectangle to draw the diamond in
1158 * width of the rectangle to draw the diamond in
1160 * height of the rectangle to draw the diamond in
1162 public void paintDiamond(Window window
, GtkStateType stateType
, GtkShadowType shadowType
, Rectangle area
, Widget widget
, char[] detail
, int x
, int y
, int width
, int height
)
1164 // 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);
1165 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
);
1169 * Draws an extension, i.e. a notebook tab.
1177 * type of shadow to draw
1179 * clip rectangle, or NULL if the
1180 * output should not be clipped
1182 * the widget (may be NULL)
1184 * a style detail (may be NULL)
1186 * x origin of the extension
1188 * y origin of the extension
1190 * width of the extension
1192 * width of the extension
1194 * the side on to which the extension is attached
1196 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
)
1198 // 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);
1199 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
);
1203 * Draws a flat box on window with the given parameters.
1211 * the type of shadow to draw
1213 * clip rectangle, or NULL if the
1214 * output should not be clipped
1216 * the widget (may be NULL)
1218 * a style detail (may be NULL)
1220 * x origin of the box
1222 * y origin of the box
1224 * the width of the box
1226 * the height of the box
1228 public void paintFlatBox(Window window
, GtkStateType stateType
, GtkShadowType shadowType
, Rectangle area
, Widget widget
, char[] detail
, int x
, int y
, int width
, int height
)
1230 // 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);
1231 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
);
1235 * Draws a focus indicator around the given rectangle on window using the
1244 * clip rectangle, or NULL if the
1245 * output should not be clipped
1247 * the widget (may be NULL)
1249 * a style detail (may be NULL)
1251 * the x origin of the rectangle around which to draw a focus indicator
1253 * the y origin of the rectangle around which to draw a focus indicator
1255 * the width of the rectangle around which to draw a focus indicator
1257 * the height of the rectangle around which to draw a focus indicator
1259 public void paintFocus(Window window
, GtkStateType stateType
, Rectangle area
, Widget widget
, char[] detail
, int x
, int y
, int width
, int height
)
1261 // 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);
1262 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
);
1266 * Draws a handle as used in GtkHandleBox and GtkPaned.
1274 * type of shadow to draw
1276 * clip rectangle, or NULL if the
1277 * output should not be clipped
1279 * the widget (may be NULL)
1281 * a style detail (may be NULL)
1283 * x origin of the handle
1285 * y origin of the handle
1287 * with of the handle
1289 * height of the handle
1291 * the orientation of the handle
1293 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
)
1295 // 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);
1296 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
);
1300 * Draws a horizontal line from (x1, y) to (x2, y) in window
1301 * using the given style and state.
1309 * rectangle to which the output is clipped, or NULL if the
1310 * output should not be clipped
1312 * the widget (may be NULL)
1314 * a style detail (may be NULL)
1316 * the starting x coordinate
1318 * the ending x coordinate
1322 public void paintHline(Window window
, GtkStateType stateType
, Rectangle area
, Widget widget
, char[] detail
, int x1
, int x2
, int y
)
1324 // void gtk_paint_hline (GtkStyle *style, GdkWindow *window, GtkStateType state_type, GdkRectangle *area, GtkWidget *widget, const gchar *detail, gint x1, gint x2, gint y);
1325 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
);
1329 * Draws a radio button indicator in the given rectangle on window with
1330 * the given parameters.
1338 * the type of shadow to draw
1340 * clip rectangle, or NULL if the
1341 * output should not be clipped
1343 * the widget (may be NULL)
1345 * a style detail (may be NULL)
1347 * x origin of the rectangle to draw the option in
1349 * y origin of the rectangle to draw the option in
1351 * the width of the rectangle to draw the option in
1353 * the height of the rectangle to draw the option in
1355 public void paintOption(Window window
, GtkStateType stateType
, GtkShadowType shadowType
, Rectangle area
, Widget widget
, char[] detail
, int x
, int y
, int width
, int height
)
1357 // 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);
1358 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
);
1362 * Draws a polygon on window with the given parameters.
1370 * type of shadow to draw
1372 * clip rectangle, or NULL if the
1373 * output should not be clipped
1375 * the widget (may be NULL)
1377 * a style detail (may be NULL)
1379 * an array of GdkPoints
1383 * TRUE if the polygon should be filled
1385 public void paintPolygon(Window window
, GtkStateType stateType
, GtkShadowType shadowType
, Rectangle area
, Widget widget
, char[] detail
, GdkPoint
* points
, int npoints
, int fill
)
1387 // 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);
1388 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
);
1392 * Draws a shadow around the given rectangle in window
1393 * using the given style and state and shadow type.
1401 * type of shadow to draw
1403 * clip rectangle or NULL if the
1404 * output should not be clipped
1406 * the widget (may be NULL)
1408 * a style detail (may be NULL)
1410 * x origin of the rectangle
1412 * y origin of the rectangle
1414 * width of the rectangle
1416 * width of the rectangle
1418 public void paintShadow(Window window
, GtkStateType stateType
, GtkShadowType shadowType
, Rectangle area
, Widget widget
, char[] detail
, int x
, int y
, int width
, int height
)
1420 // 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);
1421 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
);
1425 * Draws a shadow around the given rectangle in window
1426 * using the given style and state and shadow type, leaving a
1435 * type of shadow to draw
1437 * clip rectangle, or NULL if the
1438 * output should not be clipped
1440 * the widget (may be NULL)
1442 * a style detail (may be NULL)
1444 * x origin of the rectangle
1446 * y origin of the rectangle
1448 * width of the rectangle
1450 * width of the rectangle
1452 * side in which to leave the gap
1454 * starting position of the gap
1458 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
)
1460 // 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);
1461 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
);
1465 * Draws a slider in the given rectangle on window using the
1466 * given style and orientation.
1476 * clip rectangle, or NULL if the
1477 * output should not be clipped
1479 * the widget (may be NULL)
1481 * a style detail (may be NULL)
1483 * the x origin of the rectangle in which to draw a slider
1485 * the y origin of the rectangle in which to draw a slider
1487 * the width of the rectangle in which to draw a slider
1489 * the height of the rectangle in which to draw a slider
1491 * the orientation to be used
1493 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
)
1495 // 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);
1496 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
);
1501 * gtk_paint_string is deprecated and should not be used in newly-written code. Use gtk_paint_layout() instead.
1502 * Draws a text string on window with the given parameters.
1510 * clip rectangle, or NULL if the
1511 * output should not be clipped
1513 * the widget (may be NULL)
1515 * a style detail (may be NULL)
1521 * the string to draw
1523 public void paintString(Window window
, GtkStateType stateType
, Rectangle area
, Widget widget
, char[] detail
, int x
, int y
, char[] string
)
1525 // 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);
1526 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
));
1530 * Draws an option menu tab (i.e. the up and down pointing arrows)
1531 * in the given rectangle on window using the given parameters.
1539 * the type of shadow to draw
1541 * clip rectangle, or NULL if the
1542 * output should not be clipped
1544 * the widget (may be NULL)
1546 * a style detail (may be NULL)
1548 * x origin of the rectangle to draw the tab in
1550 * y origin of the rectangle to draw the tab in
1552 * the width of the rectangle to draw the tab in
1554 * the height of the rectangle to draw the tab in
1556 public void paintTab(Window window
, GtkStateType stateType
, GtkShadowType shadowType
, Rectangle area
, Widget widget
, char[] detail
, int x
, int y
, int width
, int height
)
1558 // 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);
1559 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
);
1563 * Draws a vertical line from (x, y1_) to (x, y2_) in window
1564 * using the given style and state.
1572 * rectangle to which the output is clipped, or NULL if the
1573 * output should not be clipped
1575 * the widget (may be NULL)
1577 * a style detail (may be NULL)
1579 * the starting y coordinate
1581 * the ending y coordinate
1585 public void paintVline(Window window
, GtkStateType stateType
, Rectangle area
, Widget widget
, char[] detail
, int y1_
, int y2_
, int x
)
1587 // void gtk_paint_vline (GtkStyle *style, GdkWindow *window, GtkStateType state_type, GdkRectangle *area, GtkWidget *widget, const gchar *detail, gint y1_, gint y2_, gint x);
1588 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
);
1592 * Draws an expander as used in GtkTreeView. x and y specify the
1593 * center the expander. The size of the expander is determined by the
1594 * "expander-size" style property of widget. (If widget is not
1595 * specified or doesn't have an "expander-size" property, an
1596 * unspecified default size will be used, since the caller doesn't
1597 * have sufficient information to position the expander, this is
1598 * likely not useful.) The expander is expander_size pixels tall
1599 * in the collapsed position and expander_size pixels wide in the
1600 * expanded position.
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)
1615 * the x position to draw the expander at
1617 * the y position to draw the expander at
1619 * the style to draw the expander in; determines
1620 * whether the expander is collapsed, expanded, or in an
1621 * intermediate state.
1623 public void paintExpander(Window window
, GtkStateType stateType
, Rectangle area
, Widget widget
, char[] detail
, int x
, int y
, GtkExpanderStyle expanderStyle
)
1625 // 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);
1626 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
);
1630 * Draws a layout on window using the given parameters.
1638 * whether to use the text or foreground
1639 * graphics context of style
1641 * clip rectangle, or NULL if the
1642 * output should not be clipped
1644 * the widget (may be NULL)
1646 * a style detail (may be NULL)
1652 * the layout to draw
1654 public void paintLayout(Window window
, GtkStateType stateType
, int useText
, Rectangle area
, Widget widget
, char[] detail
, int x
, int y
, PangoLayout
* layout
)
1656 // 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);
1657 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
);
1661 * Draws a resize grip in the given rectangle on window using the given
1670 * clip rectangle, or NULL if the
1671 * output should not be clipped
1673 * the widget (may be NULL)
1675 * a style detail (may be NULL)
1677 * the edge in which to draw the resize grip
1679 * the x origin of the rectangle in which to draw the resize grip
1681 * the y origin of the rectangle in which to draw the resize grip
1683 * the width of the rectangle in which to draw the resize grip
1685 * the height of the rectangle in which to draw the resize grip
1687 public void paintResizeGrip(Window window
, GtkStateType stateType
, Rectangle area
, Widget widget
, char[] detail
, GdkWindowEdge edge
, int x
, int y
, int width
, int height
)
1689 // 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);
1690 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
);
1694 * Draws a text caret on drawable at location. This is not a style function
1695 * but merely a convenience function for drawing the standard cursor shape.
1701 * rectangle to which the output is clipped, or NULL if the
1702 * output should not be clipped
1704 * location where to draw the cursor (location->width is ignored)
1706 * if the cursor should be the primary cursor color.
1708 * whether the cursor is left-to-right or
1709 * right-to-left. Should never be GTK_TEXT_DIR_NONE
1711 * TRUE to draw a directional arrow on the
1712 * cursor. Should be FALSE unless the cursor is split.
1715 public static void drawInsertionCursor(Widget widget
, Drawable drawable
, Rectangle area
, Rectangle location
, int isPrimary
, GtkTextDirection direction
, int drawArrow
)
1717 // void gtk_draw_insertion_cursor (GtkWidget *widget, GdkDrawable *drawable, GdkRectangle *area, GdkRectangle *location, gboolean is_primary, GtkTextDirection direction, gboolean draw_arrow);
1718 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
);
1723 * Copies a GtkBorder structure.
1727 * a copy of border_.
1729 public static GtkBorder
* borderCopy(GtkBorder
* border
)
1731 // GtkBorder* gtk_border_copy (const GtkBorder *border_);
1732 return gtk_border_copy(border
);
1736 * Frees a GtkBorder structure.
1740 public static void borderFree(GtkBorder
* border
)
1742 // void gtk_border_free (GtkBorder *border_);
1743 gtk_border_free(border
);