Haxe API Documentation
Back |
Indexprivate class haxe.EnumFlags_Impl_
import haxe.EnumFlags
Available in flash8, neko, js, flash, php, cpp
- static inline function _new(?i : Int) : Int
- Initializes the bitflags to
i
. - static inline function has(this : Int, v : haxe.EnumFlags.T) : Bool
Checks if the index of enum instance v
is set.
This method is optimized if v
is an enum instance expression such as
SomeEnum.SomeCtor.
If v
is null, the result is unspecified.
- static inline function ofInt<T>(i : Int) : haxe.EnumFlags<T>
- Convert a integer bitflag into a typed one (this is a no-op, it does not
have any impact on speed).
- static inline function set(this : Int, v : haxe.EnumFlags.T) : Void
Sets the index of enum instance v
.
This method is optimized if v
is an enum instance expression such as
SomeEnum.SomeCtor.
If v
is null, the result is unspecified.
- static inline function toInt(this : Int) : Int
- Convert the typed bitflag into the corresponding int value (this is a
no-op, it doesn't have any impact on speed).
- static inline function unset(this : Int, v : haxe.EnumFlags.T) : Void
Unsets the index of enum instance v
.
This method is optimized if v
is an enum instance expression such as
SomeEnum.SomeCtor.
If v
is null, the result is unspecified.
Back |
Index