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.
		
		
		
		
		
			
		
			
				
					
					
						
							24 lines
						
					
					
						
							509 B
						
					
					
				
			
		
		
	
	
							24 lines
						
					
					
						
							509 B
						
					
					
				package cairo
 | 
						|
 | 
						|
// #cgo pkg-config: cairo cairo-gobject
 | 
						|
// #include <stdlib.h>
 | 
						|
// #include <cairo.h>
 | 
						|
// #include <cairo-gobject.h>
 | 
						|
import "C"
 | 
						|
import (
 | 
						|
	"unsafe"
 | 
						|
)
 | 
						|
 | 
						|
// FillRule is a representation of Cairo's cairo_fill_rule_t.
 | 
						|
type FillRule int
 | 
						|
 | 
						|
const (
 | 
						|
	FILL_RULE_WINDING  FillRule = C.CAIRO_FILL_RULE_WINDING
 | 
						|
	FILL_RULE_EVEN_ODD FillRule = C.CAIRO_FILL_RULE_EVEN_ODD
 | 
						|
)
 | 
						|
 | 
						|
func marshalFillRule(p uintptr) (interface{}, error) {
 | 
						|
	c := C.g_value_get_enum((*C.GValue)(unsafe.Pointer(p)))
 | 
						|
	return FillRule(c), nil
 | 
						|
}
 |