This source file includes following definitions.
- is_fixed_to_bottom_edge_
#include "cc/layers/layer_position_constraint.h"
namespace cc {
LayerPositionConstraint::LayerPositionConstraint()
: is_fixed_position_(false),
is_fixed_to_right_edge_(false),
is_fixed_to_bottom_edge_(false) {
}
bool LayerPositionConstraint::operator==(
const LayerPositionConstraint& other) const {
if (!is_fixed_position_ && !other.is_fixed_position_)
return true;
return is_fixed_position_ == other.is_fixed_position_ &&
is_fixed_to_right_edge_ == other.is_fixed_to_right_edge_ &&
is_fixed_to_bottom_edge_ == other.is_fixed_to_bottom_edge_;
}
bool LayerPositionConstraint::operator!=(
const LayerPositionConstraint& other) const {
return !(*this == other);
}
}