[][src]Crate msdfgen_sys

Unsafe bindings to msdfgen

This crate provides generated unsafe Rust bindings to msdfgen C library.

Probably this isn't that you really need. See safe bindings.

Structs

__gnu_cxx___alloc_traits
__gnu_cxx___alloc_traits_rebind
__gnu_cxx___normal_iterator
__gnu_cxx_new_allocator
__gnu_cxx_new_allocator_rebind
msdfgen_Contour

A single closed contour of a shape.

msdfgen_CubicSegment

A cubic Bezier curve.

msdfgen_EdgeHolder

Container for a single edge of dynamic type.

msdfgen_EdgeSegment

An abstract edge segment.

msdfgen_EdgeSegment__bindgen_vtable
msdfgen_LinearSegment

A line segment.

msdfgen_QuadraticSegment

A quadratic Bezier curve.

msdfgen_Scanline

Represents a horizontal scanline intersecting a shape.

msdfgen_Scanline_Intersection

An intersection with the scanline.

msdfgen_Shape

Vector shape representation.

msdfgen_SignedDistance

Represents a signed distance and alignment, which together can be compared to uniquely determine the closest edge segment.

msdfgen_Vector2

A 2-dimensional euclidean vector with double precision. Implementation based on the Vector2 template from Artery Engine. @author Viktor Chlumsky

std__Vector_base
std__Vector_base__Vector_impl
std___allocator_traits_base
std___allocator_traits_base___rebind
std___and_
std___detector
std___get_first_arg
std___iterator_traits
std___replace_first_arg
std___undefined
std_aligned_storage_type__bindgen_ty_1
std_allocator
std_allocator_rebind
std_allocator_traits
std_allocator_traits__Diff
std_allocator_traits__Ptr
std_allocator_traits__Size
std_allocator_traits___construct_helper
std_is_empty
std_iterator
std_iterator_traits
std_make_unsigned
std_pointer_traits
std_pointer_traits___rebind
std_reverse_iterator
std_vector
std_vector__Temporary_value

Constants

MSDFGEN_CUBIC_SEARCH_STARTS
MSDFGEN_CUBIC_SEARCH_STEPS
MSDFGEN_VERSION
msdfgen_EdgeColor_BLACK
msdfgen_EdgeColor_BLUE
msdfgen_EdgeColor_CYAN
msdfgen_EdgeColor_GREEN
msdfgen_EdgeColor_MAGENTA
msdfgen_EdgeColor_RED
msdfgen_EdgeColor_WHITE
msdfgen_EdgeColor_YELLOW
msdfgen_FillRule_FILL_NEGATIVE
msdfgen_FillRule_FILL_NONZERO
msdfgen_FillRule_FILL_ODD
msdfgen_FillRule_FILL_POSITIVE
msdfgen_SegmentKind_CUBIC
msdfgen_SegmentKind_LINEAR
msdfgen_SegmentKind_QUADRATIC

Statics

msdfgen_SignedDistance_INFINITE

Functions

msdfgen_Contour_addEdge

Adds an edge to the contour.

msdfgen_Contour_addEdge1
msdfgen_Contour_addEdge2

Creates a new edge in the contour and returns its reference.

msdfgen_Contour_bounds

Adjusts the bounding box to fit the contour.

msdfgen_Contour_constructor
msdfgen_Contour_destructor
msdfgen_Contour_miterBounds

Adjusts the bounding box to fit the contour border's mitered corners.

msdfgen_Contour_winding

Computes the winding of the contour. Returns 1 if positive, -1 if negative.

msdfgen_CubicSegment_CubicSegment
msdfgen_CubicSegment_bounds
msdfgen_CubicSegment_clone
msdfgen_CubicSegment_direction
msdfgen_CubicSegment_moveEndPoint
msdfgen_CubicSegment_moveStartPoint
msdfgen_CubicSegment_point
msdfgen_CubicSegment_scanlineIntersections
msdfgen_CubicSegment_signedDistance
msdfgen_CubicSegment_splitInThirds
msdfgen_EdgeHolder_EdgeHolder
msdfgen_EdgeHolder_EdgeHolder1
msdfgen_EdgeHolder_EdgeHolder2
msdfgen_EdgeHolder_EdgeHolder3
msdfgen_EdgeHolder_EdgeHolder4
msdfgen_EdgeHolder_EdgeHolder5
msdfgen_EdgeHolder_EdgeHolder6
msdfgen_EdgeHolder_EdgeHolder_destructor
msdfgen_EdgeHolder_setSegment
msdfgen_EdgeSegment_distanceToPseudoDistance

Converts a previously retrieved signed distance from origin to pseudo-distance.

msdfgen_EdgeSegment_getKind
msdfgen_LinearSegment_LinearSegment
msdfgen_LinearSegment_bounds
msdfgen_LinearSegment_clone
msdfgen_LinearSegment_direction
msdfgen_LinearSegment_moveEndPoint
msdfgen_LinearSegment_moveStartPoint
msdfgen_LinearSegment_point
msdfgen_LinearSegment_scanlineIntersections
msdfgen_LinearSegment_signedDistance
msdfgen_LinearSegment_splitInThirds
msdfgen_QuadraticSegment_QuadraticSegment
msdfgen_QuadraticSegment_bounds
msdfgen_QuadraticSegment_clone
msdfgen_QuadraticSegment_direction
msdfgen_QuadraticSegment_moveEndPoint
msdfgen_QuadraticSegment_moveStartPoint
msdfgen_QuadraticSegment_point
msdfgen_QuadraticSegment_scanlineIntersections
msdfgen_QuadraticSegment_signedDistance
msdfgen_QuadraticSegment_splitInThirds
msdfgen_Scanline_Scanline
msdfgen_Scanline_countIntersections

Returns the number of intersections left of x.

msdfgen_Scanline_destructor
msdfgen_Scanline_filled

Decides whether the scanline is filled at x based on fill rule.

msdfgen_Scanline_overlap
msdfgen_Scanline_setIntersections

Populates the intersection list.

msdfgen_Scanline_setIntersections1
msdfgen_Scanline_sumIntersections

Returns the total sign of intersections left of x.

msdfgen_Shape_Shape
msdfgen_Shape_addContour

Adds a contour.

msdfgen_Shape_addContour1
msdfgen_Shape_addContour2

Adds a blank contour and returns its reference.

msdfgen_Shape_bounds

Adjusts the bounding box to fit the shape.

msdfgen_Shape_destructor
msdfgen_Shape_miterBounds

Adjusts the bounding box to fit the shape border's mitered corners.

msdfgen_Shape_normalize

Normalizes the shape geometry for distance field generation.

msdfgen_Shape_scanline

Outputs the scanline that intersects the shape at y.

msdfgen_Shape_validate

Performs basic checks to determine if the object represents a valid shape.

msdfgen_SignedDistance_SignedDistance
msdfgen_SignedDistance_SignedDistance1
msdfgen_Vector2_reset

Sets the vector to zero.

msdfgen_Vector2_set

Sets individual elements of the vector.

msdfgen_Vector2_length

Returns the vector's length.

msdfgen_Vector2_direction

Returns the angle of the vector in radians (atan2).

msdfgen_Vector2_normalize

Returns the normalized vector - one that has the same direction but unit length.

msdfgen_Vector2_getOrthogonal

Returns a vector with the same length that is orthogonal to this one.

msdfgen_Vector2_getOrthonormal

Returns a vector with unit length that is orthogonal to this one.

msdfgen_Vector2_project

Returns a vector projected along this one.

msdfgen_Vector2_Vector2
msdfgen_Vector2_Vector21
msdfgen_distanceSignCorrection

Fixes the sign of the input signed distance field, so that it matches the shape's rasterized fill.

msdfgen_distanceSignCorrection1
msdfgen_edgeColoringSimple

Assigns colors to edges of the shape in accordance to the multi-channel distance field technique. May split some edges if necessary. angleThreshold specifies the maximum angle (in radians) to be considered a corner, for example 3 (~172 degrees). Values below 1/2 PI will be treated as the external angle.

msdfgen_estimateSDFError

Estimates the portion of the area that will be filled incorrectly when rendering using the SDF.

msdfgen_estimateSDFError1
msdfgen_generateMSDF

Generates a multi-channel signed distance field. Edge colors must be assigned first! (See edgeColoringSimple)

msdfgen_generateMSDF_legacy
msdfgen_generatePseudoSDF

Generates a single-channel signed pseudo-distance field.

msdfgen_generatePseudoSDF_legacy
msdfgen_generateSDF

Generates a conventional single-channel signed distance field.

msdfgen_generateSDF_legacy
msdfgen_interpretFillRule

Resolves the number of intersection into a binary fill value based on fill rule.

msdfgen_msdfErrorCorrection

Resolves multi-channel signed distance field values that may cause interpolation artifacts. (Already called by generateMSDF)

msdfgen_rasterize

Rasterizes the shape into a monochrome bitmap.

msdfgen_renderSDF

Reconstructs the shape's appearance into output from the distance field sdf.

msdfgen_renderSDF1
msdfgen_renderSDF2
msdfgen_renderSDF3
msdfgen_scanlineSDF

Analytically constructs a scanline at y evaluating fill by linear interpolation of the SDF.

msdfgen_scanlineSDF1
msdfgen_simulate8bit

Snaps the values of the floating-point bitmaps into one of the 256 values representable in a standard 8-bit bitmap.

msdfgen_simulate8bit1

Type Definitions

__gnu_cxx___alloc_traits__Base_type
__gnu_cxx___alloc_traits___is_custom_pointer
__gnu_cxx___alloc_traits_allocator_type
__gnu_cxx___alloc_traits_const_pointer
__gnu_cxx___alloc_traits_const_reference
__gnu_cxx___alloc_traits_difference_type
__gnu_cxx___alloc_traits_pointer
__gnu_cxx___alloc_traits_rebind_other
__gnu_cxx___alloc_traits_reference
__gnu_cxx___alloc_traits_size_type
__gnu_cxx___alloc_traits_value_type
__gnu_cxx___normal_iterator___traits_type
__gnu_cxx___normal_iterator_difference_type
__gnu_cxx___normal_iterator_iterator_category
__gnu_cxx___normal_iterator_iterator_type
__gnu_cxx___normal_iterator_pointer
__gnu_cxx___normal_iterator_reference
__gnu_cxx___normal_iterator_value_type
__gnu_cxx_new_allocator_const_pointer
__gnu_cxx_new_allocator_const_reference
__gnu_cxx_new_allocator_difference_type
__gnu_cxx_new_allocator_pointer
__gnu_cxx_new_allocator_propagate_on_container_move_assignment
__gnu_cxx_new_allocator_rebind_other
__gnu_cxx_new_allocator_reference
__gnu_cxx_new_allocator_size_type
__gnu_cxx_new_allocator_value_type
__off64_t
__off_t
msdfgen_EdgeColor

Edge color specifies which color channels an edge belongs to.

msdfgen_FillRule

Fill rule dictates how intersection total is interpreted during rasterization.

msdfgen_Point2

A vector may also represent a point, which shall be differentiated semantically using the alias Point2.

msdfgen_SegmentKind
msdfgen_byte
size_t
std__Vector_base__Tp_alloc_type
std__Vector_base_allocator_type
std__Vector_base_pointer
std___alloc_rebind
std___allocator_base
std___allocator_traits_base___c_pointer
std___allocator_traits_base___cv_pointer
std___allocator_traits_base___equal
std___allocator_traits_base___pocca
std___allocator_traits_base___pocma
std___allocator_traits_base___pocs
std___allocator_traits_base___pointer
std___allocator_traits_base___v_pointer
std___detected_or
std___detected_or_t
std___detector_type
std___detector_value_t
std___get_first_arg_t
std___get_first_arg_type
std_allocator_const_pointer
std_allocator_const_reference
std_allocator_difference_type
std_allocator_is_always_equal
std_allocator_pointer
std_allocator_propagate_on_container_move_assignment
std_allocator_rebind_other
std_allocator_reference
std_allocator_size_type
std_allocator_traits__Diff_type
std_allocator_traits__Ptr_type
std_allocator_traits___construct_helper_type
std_allocator_traits___has_construct
std_allocator_traits_allocator_type
std_allocator_traits_const_pointer
std_allocator_traits_const_void_pointer
std_allocator_traits_difference_type
std_allocator_traits_is_always_equal
std_allocator_traits_pointer
std_allocator_traits_propagate_on_container_copy_assignment
std_allocator_traits_propagate_on_container_move_assignment
std_allocator_traits_propagate_on_container_swap
std_allocator_traits_rebind_alloc
std_allocator_traits_rebind_traits
std_allocator_traits_size_type
std_allocator_traits_value_type
std_allocator_traits_void_pointer
std_allocator_value_type
std_false_type
std_integral_constant_type
std_integral_constant_value_type
std_iterator_difference_type
std_iterator_iterator_category
std_iterator_pointer
std_iterator_reference
std_iterator_value_type
std_make_unsigned_type
std_pointer_traits___difference_type
std_pointer_traits___element_type
std_pointer_traits_difference_type
std_pointer_traits_element_type
std_pointer_traits_pointer
std_pointer_traits_rebind
std_reverse_iterator___traits_type
std_reverse_iterator_difference_type
std_reverse_iterator_iterator_type
std_reverse_iterator_pointer
std_reverse_iterator_reference
std_size_t
std_true_type
std_vector__Alloc_traits
std_vector__Base
std_vector__Tp_alloc_type
std_vector_allocator_type
std_vector_const_iterator
std_vector_const_pointer
std_vector_const_reference
std_vector_const_reverse_iterator
std_vector_difference_type
std_vector_iterator
std_vector_pointer
std_vector_reference
std_vector_reverse_iterator
std_vector_size_type
std_vector_value_type

Unions

std_aligned_storage_type