---
name: "GDraw.drawable"
section: "3o"
platform: "linux"
package: "liblablgtk2-ocaml-doc"
version: "2.4.0v0.2tv-8"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/GDraw.drawable"
---

# GDraw.drawable(3o)

Functions for drawing points, lines, arcs, and text

## NAME

GDraw.drawable - Functions for drawing points, lines, arcs, and text

## Class

Class   GDraw.drawable

## Documentation

*class drawable :* **?colormap:Gdk.colormap -\> \[\> \`drawable \] Gobject.obj -\> object end**

Functions for drawing points, lines, arcs, and text

**Parameters:**

"colormap"

**Gdk.colormap option**

""

**(\[\> \`drawable \] as 'a) Gobject.obj**

*val gc :* **Gdk.gc**

*val w :* **'a Gobject.obj**

*method arc :* **x:int -\>** **y:int -\>** **width:int -\>** **height:int -\> ?filled:bool -\> ?start:float -\> ?angle:float -\> unit -\> unit**

*method color :* **GDraw.color -\> Gdk.color**

*method depth :* **int**

*method gc\_values :* **Gdk.GC.values**

*method line :* **x:int -\> y:int -\> x:int -\> y:int -\> unit**

*method point :* **x:int -\> y:int -\> unit**

*method polygon :* **?filled:bool -\> (int \* int) list -\> unit**

*method put\_layout :* **x:int -\>** **y:int -\> ?fore:GDraw.color -\> ?back:GDraw.color -\> Pango.layout -\> unit**

*method put\_image :* **x:int -\>** **y:int -\>** **?xsrc:int -\> ?ysrc:int -\> ?width:int -\> ?height:int -\> Gdk.image -\> unit**

*method put\_pixmap :* **x:int -\>** **y:int -\>** **?xsrc:int -\> ?ysrc:int -\> ?width:int -\> ?height:int -\> Gdk.pixmap -\> unit**

*method put\_rgb\_data :* **width:int -\>** **height:int -\>** **?x:int -\>** **?y:int -\>** **?dither:Gdk.Tags.rgb\_dither -\> ?row\_stride:int -\> Gpointer.region -\> unit**

*method put\_pixbuf :* **x:int -\>** **y:int -\>** **?width:int -\>** **?height:int -\>** **?dither:Gdk.Tags.rgb\_dither -\>** **?x\_dither:int -\>** **?y\_dither:int -\> ?src\_x:int -\> ?src\_y:int -\> GdkPixbuf.pixbuf -\> unit**

*method rectangle :* **x:int -\> y:int -\> width:int -\> height:int -\> ?filled:bool -\> unit -\> unit**

*method set\_background :* **GDraw.color -\> unit**

*method set\_foreground :* **GDraw.color -\> unit**

*method set\_clip\_region :* **Gdk.region -\> unit**

*method set\_clip\_origin :* **x:int -\> y:int -\> unit**

*method set\_clip\_mask :* **Gdk.bitmap -\> unit**

*method set\_clip\_rectangle :* **Gdk.Rectangle.t -\> unit**

*method set\_line\_attributes :* **?width:int -\>** **?style:Gdk.GC.gdkLineStyle -\>** **?cap:Gdk.GC.gdkCapStyle -\> ?join:Gdk.GC.gdkJoinStyle -\> unit -\> unit**

*method size :* **int \* int**

*method string :* **string -\> font:Gdk.font -\> x:int -\> y:int -\> unit**

*method points :* **(int \* int) list -\> unit**

*method lines :* **(int \* int) list -\> unit**

*method segments :* **((int \* int) \* (int \* int)) list -\> unit**
