| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
SDL3.Sys.Bindgen.Rect
Description
Some helper functions for managing rectangles and 2D points, in both integer and floating point versions. The structure that defines a point (using integers).
- See also
sDL_GetRectEnclosingPoints,sDL_PointInRect
Since: 3.2.0
Documentation
- C declaration
struct SDL_Point, defined atSDL3/SDL_rect.h 49:16
Constructors
| SDL_Point | |
Instances
data SDL_FPoint Source #
The structure that defines a point (using floating point values).
- See also
sDL_GetRectEnclosingPointsFloat,sDL_PointInRectFloat- C declaration
struct SDL_FPoint, defined atSDL3/SDL_rect.h 63:16
Since: 3.2.0
Constructors
| SDL_FPoint | |
Instances
| Storable SDL_FPoint Source # | |||||
Defined in SDL3.Sys.Bindgen.Rect Methods sizeOf :: SDL_FPoint -> Int # alignment :: SDL_FPoint -> Int # peekElemOff :: Ptr SDL_FPoint -> Int -> IO SDL_FPoint # pokeElemOff :: Ptr SDL_FPoint -> Int -> SDL_FPoint -> IO () # peekByteOff :: Ptr b -> Int -> IO SDL_FPoint # pokeByteOff :: Ptr b -> Int -> SDL_FPoint -> IO () # peek :: Ptr SDL_FPoint -> IO SDL_FPoint # poke :: Ptr SDL_FPoint -> SDL_FPoint -> IO () # | |||||
| Generic SDL_FPoint Source # | |||||
Defined in SDL3.Sys.Bindgen.Rect Associated Types
| |||||
| Show SDL_FPoint Source # | |||||
Defined in SDL3.Sys.Bindgen.Rect Methods showsPrec :: Int -> SDL_FPoint -> ShowS # show :: SDL_FPoint -> String # showList :: [SDL_FPoint] -> ShowS # | |||||
| Eq SDL_FPoint Source # | |||||
Defined in SDL3.Sys.Bindgen.Rect | |||||
| ReadRaw SDL_FPoint Source # | |||||
Defined in SDL3.Sys.Bindgen.Rect Methods readRaw :: Ptr SDL_FPoint -> IO SDL_FPoint # | |||||
| StaticSize SDL_FPoint Source # | |||||
Defined in SDL3.Sys.Bindgen.Rect | |||||
| WriteRaw SDL_FPoint Source # | |||||
Defined in SDL3.Sys.Bindgen.Rect Methods writeRaw :: Ptr SDL_FPoint -> SDL_FPoint -> IO () # | |||||
| IsStruct SDL_FPoint Source # | |||||
Defined in SDL3.Sys.Bindgen.Rect Methods zero :: SDL_FPoint # | |||||
| HasCField SDL_FPoint "x" Source # | |||||
Defined in SDL3.Sys.Bindgen.Rect Associated Types
| |||||
| HasCField SDL_FPoint "y" Source # | |||||
Defined in SDL3.Sys.Bindgen.Rect Associated Types
| |||||
| ty ~ CFloat => HasField "x" SDL_FPoint ty Source # |
| ||||
Defined in SDL3.Sys.Bindgen.Rect Methods hasField :: SDL_FPoint -> (ty -> SDL_FPoint, ty) # | |||||
| ty ~ CFloat => HasField "y" SDL_FPoint ty Source # |
| ||||
Defined in SDL3.Sys.Bindgen.Rect Methods hasField :: SDL_FPoint -> (ty -> SDL_FPoint, ty) # | |||||
| ty ~ CFloat => HasField "x" (Ptr SDL_FPoint) (Ptr ty :: Type) Source # | |||||
Defined in SDL3.Sys.Bindgen.Rect Methods getField :: Ptr SDL_FPoint -> Ptr ty # | |||||
| ty ~ CFloat => HasField "y" (Ptr SDL_FPoint) (Ptr ty :: Type) Source # | |||||
Defined in SDL3.Sys.Bindgen.Rect Methods getField :: Ptr SDL_FPoint -> Ptr ty # | |||||
| type Rep SDL_FPoint Source # | |||||
Defined in SDL3.Sys.Bindgen.Rect type Rep SDL_FPoint = D1 ('MetaData "SDL_FPoint" "SDL3.Sys.Bindgen.Rect" "sdl3-bindgen-sys-0.0.1.0-inplace" 'False) (C1 ('MetaCons "SDL_FPoint" 'PrefixI 'True) (S1 ('MetaSel ('Just "x") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CFloat) :*: S1 ('MetaSel ('Just "y") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CFloat))) | |||||
| type CFieldType SDL_FPoint "x" Source # | |||||
Defined in SDL3.Sys.Bindgen.Rect | |||||
| type CFieldType SDL_FPoint "y" Source # | |||||
Defined in SDL3.Sys.Bindgen.Rect | |||||
A rectangle, with the origin at the upper left (using integers).
- See also
sDL_RectEmpty,sDL_RectsEqual,sDL_HasRectIntersection,sDL_GetRectIntersection,sDL_GetRectAndLineIntersection,sDL_GetRectUnion,sDL_GetRectEnclosingPoints- C declaration
struct SDL_Rect, defined atSDL3/SDL_rect.h 83:16
Since: 3.2.0
Constructors
| SDL_Rect | |
Instances
| Storable SDL_Rect Source # | |||||
Defined in SDL3.Sys.Bindgen.Rect | |||||
| Generic SDL_Rect Source # | |||||
Defined in SDL3.Sys.Bindgen.Rect Associated Types
| |||||
| Show SDL_Rect Source # | |||||
| Eq SDL_Rect Source # | |||||
| ReadRaw SDL_Rect Source # | |||||
| StaticSize SDL_Rect Source # | |||||
Defined in SDL3.Sys.Bindgen.Rect | |||||
| WriteRaw SDL_Rect Source # | |||||
| IsStruct SDL_Rect Source # | |||||
Defined in SDL3.Sys.Bindgen.Rect | |||||
| HasCField SDL_Rect "h" Source # | |||||
Defined in SDL3.Sys.Bindgen.Rect Associated Types
| |||||
| HasCField SDL_Rect "w" Source # | |||||
Defined in SDL3.Sys.Bindgen.Rect Associated Types
| |||||
| HasCField SDL_Rect "x" Source # | |||||
Defined in SDL3.Sys.Bindgen.Rect Associated Types
| |||||
| HasCField SDL_Rect "y" Source # | |||||
Defined in SDL3.Sys.Bindgen.Rect Associated Types
| |||||
| ty ~ CInt => HasField "h" SDL_Rect ty Source # |
| ||||
Defined in SDL3.Sys.Bindgen.Rect | |||||
| ty ~ CInt => HasField "w" SDL_Rect ty Source # |
| ||||
Defined in SDL3.Sys.Bindgen.Rect | |||||
| ty ~ CInt => HasField "x" SDL_Rect ty Source # |
| ||||
Defined in SDL3.Sys.Bindgen.Rect | |||||
| ty ~ CInt => HasField "y" SDL_Rect ty Source # |
| ||||
Defined in SDL3.Sys.Bindgen.Rect | |||||
| ty ~ CInt => HasField "h" (Ptr SDL_Rect) (Ptr ty :: Type) Source # | |||||
| ty ~ CInt => HasField "w" (Ptr SDL_Rect) (Ptr ty :: Type) Source # | |||||
| ty ~ CInt => HasField "x" (Ptr SDL_Rect) (Ptr ty :: Type) Source # | |||||
| ty ~ CInt => HasField "y" (Ptr SDL_Rect) (Ptr ty :: Type) Source # | |||||
| type Rep SDL_Rect Source # | |||||
Defined in SDL3.Sys.Bindgen.Rect type Rep SDL_Rect = D1 ('MetaData "SDL_Rect" "SDL3.Sys.Bindgen.Rect" "sdl3-bindgen-sys-0.0.1.0-inplace" 'False) (C1 ('MetaCons "SDL_Rect" 'PrefixI 'True) ((S1 ('MetaSel ('Just "x") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CInt) :*: S1 ('MetaSel ('Just "y") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CInt)) :*: (S1 ('MetaSel ('Just "w") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CInt) :*: S1 ('MetaSel ('Just "h") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CInt)))) | |||||
| type CFieldType SDL_Rect "h" Source # | |||||
Defined in SDL3.Sys.Bindgen.Rect | |||||
| type CFieldType SDL_Rect "w" Source # | |||||
Defined in SDL3.Sys.Bindgen.Rect | |||||
| type CFieldType SDL_Rect "x" Source # | |||||
Defined in SDL3.Sys.Bindgen.Rect | |||||
| type CFieldType SDL_Rect "y" Source # | |||||
Defined in SDL3.Sys.Bindgen.Rect | |||||
A rectangle stored using floating point values.
The origin of the coordinate space is in the top-left, with increasing values moving down and right. The properties x and y represent the coordinates of the top-left corner of the rectangle.
- See also
sDL_RectEmptyFloat,sDL_RectsEqualFloat,sDL_RectsEqualEpsilon,sDL_HasRectIntersectionFloat,sDL_GetRectIntersectionFloat,sDL_GetRectAndLineIntersectionFloat,sDL_GetRectUnionFloat,sDL_GetRectEnclosingPointsFloat,sDL_PointInRectFloat- C declaration
struct SDL_FRect, defined atSDL3/SDL_rect.h 109:16
Since: 3.2.0
Constructors
| SDL_FRect | |
Instances
| Storable SDL_FRect Source # | |||||
Defined in SDL3.Sys.Bindgen.Rect | |||||
| Generic SDL_FRect Source # | |||||
Defined in SDL3.Sys.Bindgen.Rect Associated Types
| |||||
| Show SDL_FRect Source # | |||||
| Eq SDL_FRect Source # | |||||
| ReadRaw SDL_FRect Source # | |||||
| StaticSize SDL_FRect Source # | |||||
Defined in SDL3.Sys.Bindgen.Rect | |||||
| WriteRaw SDL_FRect Source # | |||||
| IsStruct SDL_FRect Source # | |||||
Defined in SDL3.Sys.Bindgen.Rect | |||||
| HasCField SDL_FRect "h" Source # | |||||
Defined in SDL3.Sys.Bindgen.Rect Associated Types
| |||||
| HasCField SDL_FRect "w" Source # | |||||
Defined in SDL3.Sys.Bindgen.Rect Associated Types
| |||||
| HasCField SDL_FRect "x" Source # | |||||
Defined in SDL3.Sys.Bindgen.Rect Associated Types
| |||||
| HasCField SDL_FRect "y" Source # | |||||
Defined in SDL3.Sys.Bindgen.Rect Associated Types
| |||||
| ty ~ CFloat => HasField "h" SDL_FRect ty Source # |
| ||||
Defined in SDL3.Sys.Bindgen.Rect | |||||
| ty ~ CFloat => HasField "w" SDL_FRect ty Source # |
| ||||
Defined in SDL3.Sys.Bindgen.Rect | |||||
| ty ~ CFloat => HasField "x" SDL_FRect ty Source # |
| ||||
Defined in SDL3.Sys.Bindgen.Rect | |||||
| ty ~ CFloat => HasField "y" SDL_FRect ty Source # |
| ||||
Defined in SDL3.Sys.Bindgen.Rect | |||||
| ty ~ CFloat => HasField "h" (Ptr SDL_FRect) (Ptr ty :: Type) Source # | |||||
| ty ~ CFloat => HasField "w" (Ptr SDL_FRect) (Ptr ty :: Type) Source # | |||||
| ty ~ CFloat => HasField "x" (Ptr SDL_FRect) (Ptr ty :: Type) Source # | |||||
| ty ~ CFloat => HasField "y" (Ptr SDL_FRect) (Ptr ty :: Type) Source # | |||||
| type Rep SDL_FRect Source # | |||||
Defined in SDL3.Sys.Bindgen.Rect type Rep SDL_FRect = D1 ('MetaData "SDL_FRect" "SDL3.Sys.Bindgen.Rect" "sdl3-bindgen-sys-0.0.1.0-inplace" 'False) (C1 ('MetaCons "SDL_FRect" 'PrefixI 'True) ((S1 ('MetaSel ('Just "x") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CFloat) :*: S1 ('MetaSel ('Just "y") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CFloat)) :*: (S1 ('MetaSel ('Just "w") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CFloat) :*: S1 ('MetaSel ('Just "h") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CFloat)))) | |||||
| type CFieldType SDL_FRect "h" Source # | |||||
Defined in SDL3.Sys.Bindgen.Rect | |||||
| type CFieldType SDL_FRect "w" Source # | |||||
Defined in SDL3.Sys.Bindgen.Rect | |||||
| type CFieldType SDL_FRect "x" Source # | |||||
Defined in SDL3.Sys.Bindgen.Rect | |||||
| type CFieldType SDL_FRect "y" Source # | |||||
Defined in SDL3.Sys.Bindgen.Rect | |||||