Contents Up Previous Next

wxOGLConstraint

wxCompositeShape overview

An wxOGLConstraint object helps specify how child shapes are laid out with respect to siblings and parents.

Derived from

wxObject

See also

wxCompositeShape

Members

wxOGLConstraint::wxOGLConstraint
wxOGLConstraint::~wxOGLConstraint
wxOGLConstraint::Equals
wxOGLConstraint::Evaluate
wxOGLConstraint::SetSpacing


wxOGLConstraint::wxOGLConstraint

wxOGLConstraint()

Default constructor.

wxOGLConstraint(int type, wxShape *constraining, wxList& constrained)

Constructor.

Parameters

constraining

constrained

type


wxOGLConstraint::~wxOGLConstraint

~wxOGLConstraint()

Destructor.


wxOGLConstraint::Equals

bool Equals(double x, double y)

Returns TRUE if x and y are approximately equal (for the purposes of evaluating the constraint).


wxOGLConstraint::Evaluate

bool Evaluate()

Evaluates this constraint, returning TRUE if anything changed.


wxOGLConstraint::SetSpacing

void SetSpacing(double x, double y)

Sets the horizontal and vertical spacing for the constraint.