AdvancedButtonComponent constructor
AdvancedButtonComponent({
- void onPressed()?,
- void onReleased()?,
- void onChangeState(
- ButtonState state
- PositionComponent? defaultSkin,
- PositionComponent? downSkin,
- PositionComponent? hoverSkin,
- PositionComponent? disabledSkin,
- PositionComponent? defaultLabel,
- PositionComponent? disabledLabel,
- Vector2? size,
- Vector2? position,
- Vector2? scale,
- double? angle,
- Anchor? anchor,
- Iterable<
Component> ? children, - int? priority,
Implementation
AdvancedButtonComponent({
this.onPressed,
this.onReleased,
this.onChangeState,
PositionComponent? defaultSkin,
PositionComponent? downSkin,
PositionComponent? hoverSkin,
PositionComponent? disabledSkin,
PositionComponent? defaultLabel,
PositionComponent? disabledLabel,
super.size,
super.position,
super.scale,
super.angle,
super.anchor,
super.children,
super.priority,
}) {
this.defaultSkin = defaultSkin;
this.downSkin = downSkin;
this.hoverSkin = hoverSkin;
this.disabledSkin = disabledSkin;
this.defaultLabel = defaultLabel;
this.disabledLabel = disabledLabel;
size.addListener(_updateSizes);
}