Qth.Core.Rect

Contents

Documentation

rect :: Int -> Int -> Int -> Int -> Rect #

rectF :: Double -> Double -> Double -> Double -> RectF #

rectP :: QhrectP ia a => ia -> IRect a #

rectq :: Rect -> IO (QRect ()) #

rectFq :: RectF -> IO (QRectF ()) #

rectQ :: QRect () -> IO Rect #

rectQF :: QRectF () -> IO RectF #

left :: IRect a -> a #

top :: IRect a -> a #

right :: IRect a -> a #

rightq :: Rect -> Int #

bottom :: IRect a -> a #

bottomq :: Rect -> Int #

topLeft :: IRect a -> IPoint a #

center :: Qhcenter a => IRect a -> IPoint a #

rectSize :: IRect a -> ISize a #

getCoords :: IRect a -> (a, a, a, a) #

setLeft :: IRect a -> a -> IRect a #

setTop :: IRect a -> a -> IRect a #

setRight :: IRect a -> a -> IRect a #

setBottom :: IRect a -> a -> IRect a #

setTopLeft :: IRect a -> IPoint a -> IRect a #

setTopRight :: IRect a -> IPoint a -> IRect a #

setSize :: IRect a -> ISize a -> IRect a #

moveLeft :: IRect a -> a -> IRect a #

moveTop :: IRect a -> a -> IRect a #

moveRight :: IRect a -> a -> IRect a #

moveBottom :: IRect a -> a -> IRect a #

moveTopLeft :: IRect a -> IPoint a -> IRect a #

moveTo :: (Ord a, Num a) => IRect a -> a -> a -> IRect a #

moveToP :: IRect a -> IPoint a -> IRect a #

moveCenter :: (Ord a, Num a, Qhcenter a) => IRect a -> IPoint a -> IRect a #

adjust :: IRect a -> a -> a -> a -> a -> IRect a #

unite :: (Ord a, Num a) => IRect a -> IRect a -> IRect a #

intersect :: (Ord a, Num a) => IRect a -> IRect a -> IRect a #

contains :: Qhcontains a b => a -> b -> Bool #

intersects :: (Ord a, Num a) => IRect a -> IRect a -> Bool #

Orphan instances

QhtranslateF RectF # 
Instance details

Methods

translateF :: RectF -> Double -> Double -> RectF #

Qhtranslate Rect # 
Instance details

Methods

translate :: Rect -> Int -> Int -> Rect #

(Ord a, Num a) => Eq (IRect a) # 
Instance details

Methods

(==) :: IRect a -> IRect a -> Bool

(/=) :: IRect a -> IRect a -> Bool

(Ord a, Num a) => Num (IRect a) # 
Instance details

Methods

(+) :: IRect a -> IRect a -> IRect a

(-) :: IRect a -> IRect a -> IRect a

(*) :: IRect a -> IRect a -> IRect a

negate :: IRect a -> IRect a

abs :: IRect a -> IRect a

signum :: IRect a -> IRect a

fromInteger :: Integer -> IRect a

(Ord a, Num a) => Show (IRect a) # 
Instance details

Methods

showsPrec :: Int -> IRect a -> ShowS

show :: IRect a -> String

showList :: [IRect a] -> ShowS

(Ord a, Num a) => Bits (IRect a) # 
Instance details

Methods

(.&.) :: IRect a -> IRect a -> IRect a

(.|.) :: IRect a -> IRect a -> IRect a

xor :: IRect a -> IRect a -> IRect a

complement :: IRect a -> IRect a

shift :: IRect a -> Int -> IRect a

rotate :: IRect a -> Int -> IRect a

zeroBits :: IRect a

bit :: Int -> IRect a

setBit :: IRect a -> Int -> IRect a

clearBit :: IRect a -> Int -> IRect a

complementBit :: IRect a -> Int -> IRect a

testBit :: IRect a -> Int -> Bool

bitSizeMaybe :: IRect a -> Maybe Int

bitSize :: IRect a -> Int

isSigned :: IRect a -> Bool

shiftL :: IRect a -> Int -> IRect a

unsafeShiftL :: IRect a -> Int -> IRect a

shiftR :: IRect a -> Int -> IRect a

unsafeShiftR :: IRect a -> Int -> IRect a

rotateL :: IRect a -> Int -> IRect a

rotateR :: IRect a -> Int -> IRect a

popCount :: IRect a -> Int

QhisEV (IRect a) # 
Instance details

Methods

isEmpty :: IRect a -> Bool #

isValid :: IRect a -> Bool #

QhisNull (IRect a) # 
Instance details

Methods

isNull :: IRect a -> Bool #

(Ord a, Num a) => Qhitranslate (IRect a) a # 
Instance details

Methods

itranslate :: IRect a -> a -> a -> IRect a #

Qhwh (IRect a) a # 
Instance details

Methods

width :: IRect a -> a #

height :: IRect a -> a #

setWidth :: IRect a -> a -> IRect a #

setHeight :: IRect a -> a -> IRect a #

Qhxy (IRect a) a # 
Instance details

Methods

x :: IRect a -> a #

y :: IRect a -> a #

setX :: IRect a -> a -> IRect a #

setY :: IRect a -> a -> IRect a #

(Ord a, Num a) => QhtranslateP (IRect a) (IPoint a) # 
Instance details

Methods

translateP :: IRect a -> IPoint a -> IRect a #