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
550 B
25 lines
550 B
8 years ago
|
package cairo
|
||
|
|
||
|
// #cgo pkg-config: cairo cairo-gobject
|
||
|
// #include <stdlib.h>
|
||
|
// #include <cairo.h>
|
||
|
// #include <cairo-gobject.h>
|
||
|
import "C"
|
||
|
import (
|
||
|
"unsafe"
|
||
|
)
|
||
|
|
||
|
// LineJoin is a representation of Cairo's cairo_line_join_t.
|
||
|
type LineJoin int
|
||
|
|
||
|
const (
|
||
|
LINE_JOIN_MITER LineJoin = C.CAIRO_LINE_JOIN_MITER
|
||
|
LINE_JOIN_ROUND LineJoin = C.CAIRO_LINE_JOIN_ROUND
|
||
|
LINE_JOIN_BEVEL LineJoin = C.CAIRO_LINE_JOIN_BEVEL
|
||
|
)
|
||
|
|
||
|
func marshalLineJoin(p uintptr) (interface{}, error) {
|
||
|
c := C.g_value_get_enum((*C.GValue)(unsafe.Pointer(p)))
|
||
|
return LineJoin(c), nil
|
||
|
}
|