libparted 3.6
Loading...
Searching...
No Matches
Data Structures | Typedefs | Functions
constraint.in.h File Reference

Go to the source code of this file.

Data Structures

struct  _PedConstraint
 

Typedefs

typedef struct _PedConstraint PedConstraint
 

Functions

PedConstraintped_constraint_any (const PedDevice *dev)
 Return a constraint that any region on the given device will satisfy.
 
void ped_constraint_destroy (PedConstraint *constraint)
 Release the memory allocated for a PedConstraint constructed with ped_constraint_new().
 
void ped_constraint_done (PedConstraint *constraint)
 Release the memory allocated for a PedConstraint constructed with ped_constraint_init().
 
PedConstraintped_constraint_duplicate (const PedConstraint *constraint)
 Duplicate a constraint.
 
PedConstraintped_constraint_exact (const PedGeometry *geom)
 Return a constraint that only the given region will satisfy.
 
int ped_constraint_init (PedConstraint *constraint, const PedAlignment *start_align, const PedAlignment *end_align, const PedGeometry *start_range, const PedGeometry *end_range, PedSector min_size, PedSector max_size)
 Initializes a pre-allocated piece of memory to contain a constraint with the supplied default values.
 
PedConstraintped_constraint_intersect (const PedConstraint *a, const PedConstraint *b)
 Return a constraint that requires a region to satisfy both a and b.
 
int ped_constraint_is_solution (const PedConstraint *constraint, const PedGeometry *geom) _GL_ATTRIBUTE_PURE
 Check whether geom satisfies the given constraint.
 
PedConstraintped_constraint_new (const PedAlignment *start_align, const PedAlignment *end_align, const PedGeometry *start_range, const PedGeometry *end_range, PedSector min_size, PedSector max_size)
 Convenience wrapper for ped_constraint_init().
 
PedConstraintped_constraint_new_from_max (const PedGeometry *max)
 Return a constraint that requires a region to be entirely contained inside max.
 
PedConstraintped_constraint_new_from_min (const PedGeometry *min)
 Return a constraint that requires a region to entirely contain min.
 
PedConstraintped_constraint_new_from_min_max (const PedGeometry *min, const PedGeometry *max)
 Return a constraint that requires a region to be entirely contained inside max, and to entirely contain min.
 
PedGeometryped_constraint_solve_max (const PedConstraint *constraint)
 Find the largest region that satisfies a constraint.
 
PedGeometryped_constraint_solve_nearest (const PedConstraint *constraint, const PedGeometry *geom)
 Return the nearest region to geom that satisfy a constraint.
 

Typedef Documentation

◆ PedConstraint

typedef struct _PedConstraint PedConstraint