shapes

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2026 License: CC0-1.0 Imports: 5 Imported by: 0

Documentation

Overview

Package shapes provides Go bindings for android.graphics.drawable.shapes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(env *jni.Env) error

Init resolves all JNI class and method references for this package. It is safe to call multiple times (uses sync.Once internally). Exported for E2E testing on Android.

Types

type ArcShape

type ArcShape struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

ArcShape wraps android.graphics.drawable.shapes.ArcShape.

func NewArcShape

func NewArcShape(vm *jni.VM, arg0 float32, arg1 float32) (*ArcShape, error)

NewArcShape creates a new android.graphics.drawable.shapes.ArcShape instance.

func (*ArcShape) Clone0

func (m *ArcShape) Clone0() (*jni.Object, error)

Clone0 calls android.graphics.drawable.shapes.ArcShape.clone.

func (*ArcShape) Clone0_1

func (m *ArcShape) Clone0_1() (*jni.Object, error)

Clone0_1 calls android.graphics.drawable.shapes.ArcShape.clone.

func (*ArcShape) Clone0_2

func (m *ArcShape) Clone0_2() (*jni.Object, error)

Clone0_2 calls android.graphics.drawable.shapes.ArcShape.clone.

func (*ArcShape) Clone0_3

func (m *ArcShape) Clone0_3() (*jni.Object, error)

Clone0_3 calls android.graphics.drawable.shapes.ArcShape.clone.

func (*ArcShape) Draw

func (m *ArcShape) Draw(arg0 *jni.Object, arg1 *jni.Object) error

Draw calls android.graphics.drawable.shapes.ArcShape.draw.

func (*ArcShape) Equals

func (m *ArcShape) Equals(arg0 *jni.Object) (bool, error)

Equals calls android.graphics.drawable.shapes.ArcShape.equals.

func (*ArcShape) GetOutline

func (m *ArcShape) GetOutline(arg0 *jni.Object) error

GetOutline calls android.graphics.drawable.shapes.ArcShape.getOutline.

func (*ArcShape) GetStartAngle

func (m *ArcShape) GetStartAngle() (float32, error)

GetStartAngle calls android.graphics.drawable.shapes.ArcShape.getStartAngle.

func (*ArcShape) GetSweepAngle

func (m *ArcShape) GetSweepAngle() (float32, error)

GetSweepAngle calls android.graphics.drawable.shapes.ArcShape.getSweepAngle.

func (*ArcShape) HashCode

func (m *ArcShape) HashCode() (int32, error)

HashCode calls android.graphics.drawable.shapes.ArcShape.hashCode.

type OvalShape

type OvalShape struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

OvalShape wraps android.graphics.drawable.shapes.OvalShape.

func NewOvalShape

func NewOvalShape(vm *jni.VM) (*OvalShape, error)

NewOvalShape creates a new android.graphics.drawable.shapes.OvalShape instance.

func (*OvalShape) Clone0

func (m *OvalShape) Clone0() (*jni.Object, error)

Clone0 calls android.graphics.drawable.shapes.OvalShape.clone.

func (*OvalShape) Clone0_1

func (m *OvalShape) Clone0_1() (*jni.Object, error)

Clone0_1 calls android.graphics.drawable.shapes.OvalShape.clone.

func (*OvalShape) Clone0_2

func (m *OvalShape) Clone0_2() (*jni.Object, error)

Clone0_2 calls android.graphics.drawable.shapes.OvalShape.clone.

func (*OvalShape) Clone0_3

func (m *OvalShape) Clone0_3() (*jni.Object, error)

Clone0_3 calls android.graphics.drawable.shapes.OvalShape.clone.

func (*OvalShape) Draw

func (m *OvalShape) Draw(arg0 *jni.Object, arg1 *jni.Object) error

Draw calls android.graphics.drawable.shapes.OvalShape.draw.

func (*OvalShape) GetOutline

func (m *OvalShape) GetOutline(arg0 *jni.Object) error

GetOutline calls android.graphics.drawable.shapes.OvalShape.getOutline.

type PathShape

type PathShape struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

PathShape wraps android.graphics.drawable.shapes.PathShape.

func NewPathShape

func NewPathShape(vm *jni.VM, arg0 *jni.Object, arg1 float32, arg2 float32) (*PathShape, error)

NewPathShape creates a new android.graphics.drawable.shapes.PathShape instance.

func (*PathShape) Clone0

func (m *PathShape) Clone0() (*jni.Object, error)

Clone0 calls android.graphics.drawable.shapes.PathShape.clone.

func (*PathShape) Clone0_1

func (m *PathShape) Clone0_1() (*jni.Object, error)

Clone0_1 calls android.graphics.drawable.shapes.PathShape.clone.

func (*PathShape) Clone0_2

func (m *PathShape) Clone0_2() (*jni.Object, error)

Clone0_2 calls android.graphics.drawable.shapes.PathShape.clone.

func (*PathShape) Draw

func (m *PathShape) Draw(arg0 *jni.Object, arg1 *jni.Object) error

Draw calls android.graphics.drawable.shapes.PathShape.draw.

func (*PathShape) Equals

func (m *PathShape) Equals(arg0 *jni.Object) (bool, error)

Equals calls android.graphics.drawable.shapes.PathShape.equals.

func (*PathShape) HashCode

func (m *PathShape) HashCode() (int32, error)

HashCode calls android.graphics.drawable.shapes.PathShape.hashCode.

type RectShape

type RectShape struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

RectShape wraps android.graphics.drawable.shapes.RectShape.

func NewRectShape

func NewRectShape(vm *jni.VM) (*RectShape, error)

NewRectShape creates a new android.graphics.drawable.shapes.RectShape instance.

func (*RectShape) Clone0

func (m *RectShape) Clone0() (*jni.Object, error)

Clone0 calls android.graphics.drawable.shapes.RectShape.clone.

func (*RectShape) Clone0_1

func (m *RectShape) Clone0_1() (*jni.Object, error)

Clone0_1 calls android.graphics.drawable.shapes.RectShape.clone.

func (*RectShape) Clone0_2

func (m *RectShape) Clone0_2() (*jni.Object, error)

Clone0_2 calls android.graphics.drawable.shapes.RectShape.clone.

func (*RectShape) Draw

func (m *RectShape) Draw(arg0 *jni.Object, arg1 *jni.Object) error

Draw calls android.graphics.drawable.shapes.RectShape.draw.

func (*RectShape) Equals

func (m *RectShape) Equals(arg0 *jni.Object) (bool, error)

Equals calls android.graphics.drawable.shapes.RectShape.equals.

func (*RectShape) GetOutline

func (m *RectShape) GetOutline(arg0 *jni.Object) error

GetOutline calls android.graphics.drawable.shapes.RectShape.getOutline.

func (*RectShape) HashCode

func (m *RectShape) HashCode() (int32, error)

HashCode calls android.graphics.drawable.shapes.RectShape.hashCode.

type RoundRectShape

type RoundRectShape struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

RoundRectShape wraps android.graphics.drawable.shapes.RoundRectShape.

func NewRoundRectShape

func NewRoundRectShape(vm *jni.VM, arg0 *jni.Object, arg1 *jni.Object, arg2 *jni.Object) (*RoundRectShape, error)

NewRoundRectShape creates a new android.graphics.drawable.shapes.RoundRectShape instance.

func (*RoundRectShape) Clone0

func (m *RoundRectShape) Clone0() (*jni.Object, error)

Clone0 calls android.graphics.drawable.shapes.RoundRectShape.clone.

func (*RoundRectShape) Clone0_1

func (m *RoundRectShape) Clone0_1() (*jni.Object, error)

Clone0_1 calls android.graphics.drawable.shapes.RoundRectShape.clone.

func (*RoundRectShape) Clone0_2

func (m *RoundRectShape) Clone0_2() (*jni.Object, error)

Clone0_2 calls android.graphics.drawable.shapes.RoundRectShape.clone.

func (*RoundRectShape) Clone0_3

func (m *RoundRectShape) Clone0_3() (*jni.Object, error)

Clone0_3 calls android.graphics.drawable.shapes.RoundRectShape.clone.

func (*RoundRectShape) Draw

func (m *RoundRectShape) Draw(arg0 *jni.Object, arg1 *jni.Object) error

Draw calls android.graphics.drawable.shapes.RoundRectShape.draw.

func (*RoundRectShape) Equals

func (m *RoundRectShape) Equals(arg0 *jni.Object) (bool, error)

Equals calls android.graphics.drawable.shapes.RoundRectShape.equals.

func (*RoundRectShape) GetOutline

func (m *RoundRectShape) GetOutline(arg0 *jni.Object) error

GetOutline calls android.graphics.drawable.shapes.RoundRectShape.getOutline.

func (*RoundRectShape) HashCode

func (m *RoundRectShape) HashCode() (int32, error)

HashCode calls android.graphics.drawable.shapes.RoundRectShape.hashCode.

type Shape

type Shape struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

Shape wraps android.graphics.drawable.shapes.Shape.

func (*Shape) Clone0

func (m *Shape) Clone0() (*jni.Object, error)

Clone0 calls android.graphics.drawable.shapes.Shape.clone.

func (*Shape) Clone0_1

func (m *Shape) Clone0_1() (*jni.Object, error)

Clone0_1 calls android.graphics.drawable.shapes.Shape.clone.

func (*Shape) Draw

func (m *Shape) Draw(arg0 *jni.Object, arg1 *jni.Object) error

Draw calls android.graphics.drawable.shapes.Shape.draw.

func (*Shape) Equals

func (m *Shape) Equals(arg0 *jni.Object) (bool, error)

Equals calls android.graphics.drawable.shapes.Shape.equals.

func (*Shape) GetHeight

func (m *Shape) GetHeight() (float32, error)

GetHeight calls android.graphics.drawable.shapes.Shape.getHeight.

func (*Shape) GetOutline

func (m *Shape) GetOutline(arg0 *jni.Object) error

GetOutline calls android.graphics.drawable.shapes.Shape.getOutline.

func (*Shape) GetWidth

func (m *Shape) GetWidth() (float32, error)

GetWidth calls android.graphics.drawable.shapes.Shape.getWidth.

func (*Shape) HasAlpha

func (m *Shape) HasAlpha() (bool, error)

HasAlpha calls android.graphics.drawable.shapes.Shape.hasAlpha.

func (*Shape) HashCode

func (m *Shape) HashCode() (int32, error)

HashCode calls android.graphics.drawable.shapes.Shape.hashCode.

func (*Shape) Resize

func (m *Shape) Resize(arg0 float32, arg1 float32) error

Resize calls android.graphics.drawable.shapes.Shape.resize.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL