Package ch.bailu.gtk.gsk
Klasse PathMeasure
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.type.Record
ch.bailu.gtk.gsk.PathMeasure
- Alle implementierten Schnittstellen:
PointerInterface
Performs measurements on paths such as determining the length of the path.
Many measuring operations require sampling the path length
at intermediate points. Therefore, a `GskPathMeasure` has
a tolerance that determines what precision is required
for such approximations.
A `GskPathMeasure` struct is a reference counted struct
and should be treated as opaque.
Many measuring operations require sampling the path length
at intermediate points. Therefore, a `GskPathMeasure` has
a tolerance that determines what precision is required
for such approximations.
A `GskPathMeasure` struct is a reference counted struct
and should be treated as opaque.
-
Feldübersicht
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungPathMeasure
(Path path) Creates a measure object for the given @path with the
default tolerance.PathMeasure
(PointerContainer pointer) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic ClassHandler
static int
float
Gets the length of the path being measured.static long
static TypeSystem.TypeSize
getPath()
Returns the path that the measure was created for.boolean
Gets the point at the given distance into the path.float
Returns the tolerance that the measure was created with.static long
static TypeSystem.TypeSize
static PathMeasure
newWithTolerancePathMeasure
(Path path, float tolerance) Creates a measure object for the given @path and @tolerance.ref()
Increases the reference count of a `GskPathMeasure` by one.void
unref()
Decreases the reference count of a `GskPathMeasure` by one.Von Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Von Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Von Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Konstruktordetails
-
PathMeasure
-
PathMeasure
Creates a measure object for the given @path with the
default tolerance.- Parameter:
path
- the path to measure
-
-
Methodendetails
-
getClassHandler
-
newWithTolerancePathMeasure
Creates a measure object for the given @path and @tolerance.- Parameter:
path
- the path to measuretolerance
- the tolerance for measuring operations- Gibt zurück:
- a new `GskPathMeasure` representing @path
-
getLength
public float getLength()Gets the length of the path being measured.
The length is cached, so this function does not do any work.- Gibt zurück:
- the length of the path measured by @self
-
getPath
Returns the path that the measure was created for.- Gibt zurück:
- the path of @self
-
getPoint
Gets the point at the given distance into the path.
An empty path has no points, so false is returned in that case.- Parameter:
distance
- the distanceresult
- return location for the point- Gibt zurück:
- true if @result was set
-
getTolerance
public float getTolerance()Returns the tolerance that the measure was created with.- Gibt zurück:
- the tolerance of @self
-
ref
Increases the reference count of a `GskPathMeasure` by one.- Gibt zurück:
- the passed in `GskPathMeasure`.
-
unref
public void unref()Decreases the reference count of a `GskPathMeasure` by one.
If the resulting reference count is zero, frees the object. -
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-