mirror of
https://github.com/rive-app/rive-flutter.git
synced 2025-08-06 16:40:27 +08:00

just trying to flush through some of the bits coming out of running generate core runtime & generate core runtime without making a mess in other pr's . this is split into four commits which might be helpful when looking at the changes here. Diffs= ad72cfce5 Run generate (#5490) 7ee5f7d5a Increases the margin for the approx call to some of the wangs formula… (#5506) 2f224da7f Runtime ellipsis (#5482) Co-authored-by: Maxwell Talbot <talbot.maxwell@gmail.com>
67 lines
1.8 KiB
Dart
67 lines
1.8 KiB
Dart
/// Core automatically generated
|
|
/// lib/src/generated/text/text_style_feature_base.dart.
|
|
/// Do not modify manually.
|
|
|
|
import 'package:rive/src/rive_core/component.dart';
|
|
|
|
abstract class TextStyleFeatureBase extends Component {
|
|
static const int typeKey = 164;
|
|
@override
|
|
int get coreType => TextStyleFeatureBase.typeKey;
|
|
@override
|
|
Set<int> get coreTypes =>
|
|
{TextStyleFeatureBase.typeKey, ComponentBase.typeKey};
|
|
|
|
/// --------------------------------------------------------------------------
|
|
/// Tag field with key 356.
|
|
static const int tagInitialValue = 0;
|
|
int _tag = tagInitialValue;
|
|
static const int tagPropertyKey = 356;
|
|
int get tag => _tag;
|
|
|
|
/// Change the [_tag] field value.
|
|
/// [tagChanged] will be invoked only if the field's value has changed.
|
|
set tag(int value) {
|
|
if (_tag == value) {
|
|
return;
|
|
}
|
|
int from = _tag;
|
|
_tag = value;
|
|
if (hasValidated) {
|
|
tagChanged(from, value);
|
|
}
|
|
}
|
|
|
|
void tagChanged(int from, int to);
|
|
|
|
/// --------------------------------------------------------------------------
|
|
/// FeatureValue field with key 357.
|
|
static const int featureValueInitialValue = 1;
|
|
int _featureValue = featureValueInitialValue;
|
|
static const int featureValuePropertyKey = 357;
|
|
int get featureValue => _featureValue;
|
|
|
|
/// Change the [_featureValue] field value.
|
|
/// [featureValueChanged] will be invoked only if the field's value has
|
|
/// changed.
|
|
set featureValue(int value) {
|
|
if (_featureValue == value) {
|
|
return;
|
|
}
|
|
int from = _featureValue;
|
|
_featureValue = value;
|
|
if (hasValidated) {
|
|
featureValueChanged(from, value);
|
|
}
|
|
}
|
|
|
|
void featureValueChanged(int from, int to);
|
|
|
|
@override
|
|
void copy(covariant TextStyleFeatureBase source) {
|
|
super.copy(source);
|
|
_tag = source._tag;
|
|
_featureValue = source._featureValue;
|
|
}
|
|
}
|