TapableComponent class
TapableComponent based on Flame's PositionComponent which uses the Tapable mixin and globalPosition rather than localPosition
- Inheritance
- Object
- Component
- PositionComponent
- TapableComponent
- Mixed in types
Constructors
Properties
- anchor ↔ Anchor
-
read / write, inherited
- angle ↔ double
-
read / write, inherited
- debugColor → Color
-
read-only, inherited
- debugMode ↔ bool
-
read / write, inherited
- debugTextConfig → TextConfig
-
read-only, inherited
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- height ↔ double
-
read / write, inherited
- renderFlipX ↔ bool
-
read / write, inherited
- renderFlipY ↔ bool
-
read / write, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- width ↔ double
-
read / write, inherited
- x ↔ double
-
read / write, inherited
- y ↔ double
-
read / write, inherited
Methods
-
angleBetween(
PositionComponent c) → double -
inherited
-
checkTapOverlap(
Offset o) → bool -
inherited
-
destroy(
) → bool -
Whether this should be destroyed or not. [...]
inherited
-
distance(
PositionComponent c) → double -
inherited
-
handleTapCancel(
) → void -
inherited
-
handleTapDown(
TapDownDetails details) → void -
override
-
handleTapUp(
TapUpDetails details) → void -
override
-
isHud(
) → bool -
Whether this component is HUD object or not. [...]
inherited
-
loaded(
) → bool -
Whether this component has been loaded yet. If not loaded, BaseGame will not try to render it. [...]
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
onTapCancel(
) → void -
inherited
-
onTapDown(
TapDownDetails details) → void -
inherited
-
onTapUp(
TapUpDetails details) → void -
inherited
-
prepareCanvas(
Canvas canvas) → void -
inherited
-
priority(
) → int -
Render priority of this component. This allows you to control the order in which your components are rendered. [...]
inherited
-
render(
Canvas c) → void -
Renders this component on the provided Canvas
c
.inherited -
renderDebugMode(
Canvas canvas) → void -
inherited
-
resize(
Size size) → void -
This is a hook called by BaseGame to let this component know that the screen (or flame draw area) has been update. [...]
inherited
-
setByPosition(
Position position) → void -
inherited
-
setByRect(
Rect rect) → void -
inherited
-
setBySize(
Position size) → void -
inherited
-
tapableChildren(
) → Iterable< Tapable> -
Overwrite this to add children to this Tapable. [...]
inherited
-
toPosition(
) → Position -
inherited
-
toRect(
) → Rect -
inherited
-
toSize(
) → Position -
inherited
-
toString(
) → String -
A string representation of this object. [...]
inherited
-
update(
double t) → void -
This method is called periodically by the game engine to request that your component updates itself. [...]
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited