SourceClass Vec2b
from egui import Vec2bclass Vec2b:Two bools, one for each axis (X and Y).
Constants§
FALSE: Final[Vec2b]§
TRUE: Final[Vec2b]§
Properties§
@property
def x(self, /) -> bool§
@x.setter
def x(self, /, x: bool) -> None§
@property
def y(self, /) -> bool§
@y.setter
def y(self, /, y: bool) -> None§
Methods§
Sourcedef all(self, /) -> bool§
Are both x and y true?
Sourcedef any(self, /) -> bool§
@staticmethod
def splat(value: bool) -> Vec2b§
def to_tuple(self, /) -> tuple[bool, bool]§
Sourcedef to_vec2(self, /) -> Vec2§
Convert to a float Vec2 where the components are 1.0 for True and 0.0 for False.