/*! \brief Set the internal to OS conversion factor. * \param[in] factor x,y scale factors * \returns Nothing */ public static void SetScaleFactor(OS.Coord factor) { OS.ThrowOnError(NativeMethods.Font_SetScaleFactor(factor.X, factor.Y)); }
/*! \brief Set the internal to OS conversion factor. * \param[in] factorX x scale factor * \param[in] factorY y scale factor * \returns Nothing */ public static void SetScaleFactor(int factorX, int factorY) { OS.ThrowOnError(NativeMethods.Font_SetScaleFactor(factorX, factorY)); }
/*! \brief Define font cursor for Font Manager * \param[in] colour Colour (exclusively ORd onto screen) * \param[in] height Height in OS units * \param[in] flags bit 4 set => pos in OS units, else millipoints * \param[in] pos x,y coordinates * \returns Nothing */ public static void DefineCaret(uint colour, int height, uint flags, OS.Coord pos) { OS.ThrowOnError(NativeMethods.Font_Caret(colour, height, flags, pos.X, pos.Y)); }
/*! \brief Read the internal to OS conversion factor. * \param[out] factor x,y scale factors */ public static void ReadScaleFactor(OS.Coord factor) { OS.ThrowOnError(NativeMethods.Font_ReadScaleFactor(out factor.X, out factor.Y)); }
/*! \brief Convert OS coordinates to internal coordinates * \param[in] os x,y coordinates in OS units * \param[out] points x,y coordinates in millipoints * \returns Nothing */ public static void ConvertToPoints(OS.Coord os, OS.Coord points) { OS.ThrowOnError(NativeMethods.Font_ConvertToPoints(os.X, os.Y, out points.X, out points.Y)); }
/*! \brief Convert internal coordinates to OS coordinates * \param[in] points x,y coordinates in millipoints * \param[out] os x,y coordinates in OS units * \returns Nothing */ public static void ConvertToOS(OS.Coord points, OS.Coord os) { OS.ThrowOnError(NativeMethods.Font_ConvertToOS(points.X, points.Y, out os.X, out os.Y)); }
/*! \brief Select the font to be subsequently used. * \param[in] font Font to use. * \return Nothing */ public static void SetFont(Font.Instance font) { OS.ThrowOnError(NativeMethods.Font_SetFont(font.Handle)); }
/*! \brief Set the extent of the given open file. * \note Calls SWI "OS_Args",3. */ public static void SetFileExt(IntPtr fileHandle, long fileExt) { OS.ThrowOnError(NativeMethods.OSArgs_SetFileExt(fileHandle, (int)fileExt)); }
/*! \brief Ensure data has been written to a file, or all files on the temporary filing * system. * \note Calls SWI "OS_Args", 255. */ public static void EnsureData(IntPtr fileHandle) { OS.ThrowOnError(NativeMethods.OSArgs_EnsureData(fileHandle)); }