Safe Haskell | None |
---|
- delete :: HG3DClass -> IO ()
- getName :: HG3DClass -> IO String
- getTypeName :: HG3DClass -> IO String
- isCodepointAvailable :: HG3DClass -> Int -> IO Bool
- setAutoScaled :: HG3DClass -> Bool -> IO ()
- isAutoScaled :: HG3DClass -> IO Bool
- getLineSpacing :: HG3DClass -> Float -> IO Float
- getFontHeight :: HG3DClass -> Float -> IO Float
- getBaseline :: HG3DClass -> Float -> IO Float
- getTextExtent :: HG3DClass -> String -> Float -> IO Float
- getCharAtPixel :: HG3DClass -> String -> Float -> Float -> IO Int
- getCharAtPixel2 :: HG3DClass -> String -> Int -> Float -> Float -> IO Int
- setDefaultResourceGroup :: String -> IO ()
- getDefaultResourceGroup :: IO String
- delete'_ :: HG3DClassPtr -> IO ()
- getName'_ :: HG3DClassPtr -> Ptr CChar -> IO ()
- getTypeName'_ :: HG3DClassPtr -> Ptr CChar -> IO ()
- isCodepointAvailable'_ :: HG3DClassPtr -> CInt -> Ptr CInt -> IO ()
- setAutoScaled'_ :: HG3DClassPtr -> CInt -> IO ()
- isAutoScaled'_ :: HG3DClassPtr -> Ptr CInt -> IO ()
- getLineSpacing'_ :: HG3DClassPtr -> CFloat -> Ptr CFloat -> IO ()
- getFontHeight'_ :: HG3DClassPtr -> CFloat -> Ptr CFloat -> IO ()
- getBaseline'_ :: HG3DClassPtr -> CFloat -> Ptr CFloat -> IO ()
- getTextExtent'_ :: HG3DClassPtr -> Ptr CChar -> CFloat -> Ptr CFloat -> IO ()
- getCharAtPixel'_ :: HG3DClassPtr -> Ptr CChar -> CFloat -> CFloat -> Ptr CInt -> IO ()
- getCharAtPixel2'_ :: HG3DClassPtr -> Ptr CChar -> CInt -> CFloat -> CFloat -> Ptr CInt -> IO ()
- setDefaultResourceGroup'_ :: Ptr CChar -> IO ()
- getDefaultResourceGroup'_ :: Ptr CChar -> IO ()
Documentation
Destructor.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> IO String |
Return the string holding the font name.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> IO String |
Return the type of the font.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> Int | cp - utf32 code point that is the subject of the query. |
-> IO Bool | return value - true if the font contains a mapping for code point |
Return whether this Font
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> Bool | auto_scaled - |
-> IO () |
Return whether this Font
Enable or disable auto-scaling for this Font
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> Float | y_scale - Scaling factor to be applied to the line spacing, where 1.0f is considered to be |
-> IO Float | return value - Number of pixels between vertical base lines, i.e. The minimum pixel space between two lines of text. |
Return the pixel line spacing value for.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> Float | y_scale - Scaling factor to be applied to the height, where 1.0f is considered to be |
-> IO Float | return value - float value describing the pixel height of the font without any additional padding. |
return the exact pixel height of the font.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> Float | y_scale - Scaling factor to be applied to the baseline distance, where 1.0f is considered to be |
-> IO Float | return value - pixel spacing from top of front glyphs to baseline |
Return the number of pixels from the top of the highest glyph to the baseline.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> String | text - String object containing the text to return the rendered pixel width for. |
-> Float | x_scale - Scaling factor to be applied to each glyph's x axis when measuring the extent, where 1.0f is considered to be |
-> IO Float | return value - Number of pixels that |
Return the pixel width of the specified text if rendered with this Font
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> String | text - String object containing the text. |
-> Float | pixel - Specifies the (horizontal) pixel offset to return the character index for. |
-> Float | x_scale - Scaling factor to be applied to each glyph's x axis when measuring the text extent, where 1.0f is considered to be |
-> IO Int | return value - Returns a character index into String |
Return the index of the closest text character in String textpixel
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> String | text - String object containing the text. |
-> Int | start_char - index of the first character to consider. This is the lowest value that will be returned from the call. |
-> Float | pixel - Specifies the (horizontal) pixel offset to return the character index for. |
-> Float | x_scale - Scaling factor to be applied to each glyph's x axis when measuring the text extent, where 1.0f is considered to be |
-> IO Int | return value - Returns a character index into String |
Return the index of the closest text character in String textstart_charpixel
:: String | resourceGroup - String describing the default resource group identifier to be used. |
-> IO () | return value - Nothing. |
Returns the default resource group currently set for Fonts.
Sets the default resource group to be used when loading font data.
delete'_ :: HG3DClassPtr -> IO ()Source
getTypeName'_ :: HG3DClassPtr -> Ptr CChar -> IO ()Source
isCodepointAvailable'_ :: HG3DClassPtr -> CInt -> Ptr CInt -> IO ()Source
setAutoScaled'_ :: HG3DClassPtr -> CInt -> IO ()Source
isAutoScaled'_ :: HG3DClassPtr -> Ptr CInt -> IO ()Source
getLineSpacing'_ :: HG3DClassPtr -> CFloat -> Ptr CFloat -> IO ()Source
getFontHeight'_ :: HG3DClassPtr -> CFloat -> Ptr CFloat -> IO ()Source
getBaseline'_ :: HG3DClassPtr -> CFloat -> Ptr CFloat -> IO ()Source
getTextExtent'_ :: HG3DClassPtr -> Ptr CChar -> CFloat -> Ptr CFloat -> IO ()Source
getCharAtPixel'_ :: HG3DClassPtr -> Ptr CChar -> CFloat -> CFloat -> Ptr CInt -> IO ()Source
getCharAtPixel2'_ :: HG3DClassPtr -> Ptr CChar -> CInt -> CFloat -> CFloat -> Ptr CInt -> IO ()Source
setDefaultResourceGroup'_ :: Ptr CChar -> IO ()Source
getDefaultResourceGroup'_ :: Ptr CChar -> IO ()Source