diff options
Diffstat (limited to 'vendor/github.com/gotk3/gotk3/cairo/linecap.go')
-rw-r--r-- | vendor/github.com/gotk3/gotk3/cairo/linecap.go | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/vendor/github.com/gotk3/gotk3/cairo/linecap.go b/vendor/github.com/gotk3/gotk3/cairo/linecap.go new file mode 100644 index 0000000..553465a --- /dev/null +++ b/vendor/github.com/gotk3/gotk3/cairo/linecap.go @@ -0,0 +1,23 @@ +package cairo + +// #include <stdlib.h> +// #include <cairo.h> +// #include <cairo-gobject.h> +import "C" +import ( + "unsafe" +) + +// LineCap is a representation of Cairo's cairo_line_cap_t. +type LineCap int + +const ( + LINE_CAP_BUTT LineCap = C.CAIRO_LINE_CAP_BUTT + LINE_CAP_ROUND LineCap = C.CAIRO_LINE_CAP_ROUND + LINE_CAP_SQUARE LineCap = C.CAIRO_LINE_CAP_SQUARE +) + +func marshalLineCap(p uintptr) (interface{}, error) { + c := C.g_value_get_enum((*C.GValue)(unsafe.Pointer(p))) + return LineCap(c), nil +} |