@Override void draw(Theme theme, GC gc, Rectangle bounds) { long /*int*/ toolbarHandle = theme.toolbarHandle; long /*int*/ gtkStyle = gtk_widget_get_style (toolbarHandle); long /*int*/ drawable = gc.getGCData().drawable; theme.transferClipping(gc, gtkStyle); int x = bounds.x, y = bounds.y, width = bounds.width, height = bounds.height; byte[] detail = Converter.wcsToMbcs(null, "toolbar", true); gtk_render_box (gtkStyle, drawable, getStateType(DrawData.WIDGET_WHOLE), OS.GTK_SHADOW_NONE, null, toolbarHandle, detail, x, y, width, height); if (clientArea != null) { clientArea.x = bounds.x; clientArea.y = bounds.y; clientArea.width = bounds.width; clientArea.height = bounds.height; } }
@Override void draw(Theme theme, GC gc, Rectangle bounds) { int /*long*/ toolbarHandle = theme.toolbarHandle; int /*long*/ gtkStyle = gtk_widget_get_style (toolbarHandle); int /*long*/ drawable = gc.getGCData().drawable; theme.transferClipping(gc, gtkStyle); int x = bounds.x, y = bounds.y, width = bounds.width, height = bounds.height; byte[] detail = Converter.wcsToMbcs(null, "toolbar", true); gtk_render_box (gtkStyle, drawable, getStateType(DrawData.WIDGET_WHOLE), OS.GTK_SHADOW_NONE, null, toolbarHandle, detail, x, y, width, height); if (clientArea != null) { clientArea.x = bounds.x; clientArea.y = bounds.y; clientArea.width = bounds.width; clientArea.height = bounds.height; } }
@Override void draw(Theme theme, GC gc, Rectangle bounds) { int /*long*/ toolbarHandle = theme.toolbarHandle; int /*long*/ gtkStyle = gtk_widget_get_style (toolbarHandle); int /*long*/ drawable = gc.getGCData().drawable; theme.transferClipping(gc, gtkStyle); int x = bounds.x, y = bounds.y, width = bounds.width, height = bounds.height; byte[] detail = Converter.wcsToMbcs(null, "toolbar", true); gtk_render_box (gtkStyle, drawable, getStateType(DrawData.WIDGET_WHOLE), OS.GTK_SHADOW_NONE, null, toolbarHandle, detail, x, y, width, height); if (clientArea != null) { clientArea.x = bounds.x; clientArea.y = bounds.y; clientArea.width = bounds.width; clientArea.height = bounds.height; } }