コード例 #1
0
ファイル: gdkpixbuf.go プロジェクト: reusee/gtk-go
func (_self_ *PixbufSimpleAnim) SetLoop(loop bool) {
	_cgo_loop_ := (C.gboolean)(C.FALSE)
	if loop {
		_cgo_loop_ = (C.gboolean)(C.TRUE)
	}
	C.gdk_pixbuf_simple_anim_set_loop((*C.GdkPixbufSimpleAnim)(_self_._value_), _cgo_loop_)
	return
}
コード例 #2
0
ファイル: gdkpixbuf_traits.go プロジェクト: reusee/ggir
/*
Sets whether @animation should loop indefinitely when it reaches the end.
*/
func (self *TraitPixbufSimpleAnim) SetLoop(loop bool) {
	__cgo__loop := C.gboolean(0)
	if loop {
		__cgo__loop = C.gboolean(1)
	}
	C.gdk_pixbuf_simple_anim_set_loop(self.CPointer, __cgo__loop)
	return
}