mirror of https://github.com/subgraph/fw-daemon
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
539 B
25 lines
539 B
package cairo
|
|
|
|
// #cgo pkg-config: cairo cairo-gobject
|
|
// #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
|
|
}
|