Skip to content

Mutable constant, Strength&weight in Constraint. #66

Open

Description

@brestac

Currently, the only way to change the strength or constant in a Constraint is to replace a constraint with a new one with new values.

In a constraint-based UI, the only way to change the size or position of an element is to change the constant of the constraint managing the layout. This is why changing a constant should be simple and efficient.

FYI, set_constant is implemented in a branch of rhea : https://github.com/Nocte-/rhea/blob/0.3/rhea/simplex_solver.cpp#L188

Activity

  1. slightlyoff commented on Feb 16, 2015

    @slightlyoff
    Owner

    I like this a lot better than the add/remove churn. We should do this.

  2. added this to the 0.1 milestone on Feb 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions