forked from Leak_Technologies/VideoTools
Vendor gotk3 library to ensure consistent GTK3 bindings across environments and simplify dependency management. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
24 lines
499 B
Go
24 lines
499 B
Go
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
|
|
}
|