Archive Browser
Download DesignerSnapLinesDemo.zip, last updated 19/04/2019 (8.39 KB)
Download- md5: 85fd7e0029eb045c195ad6eafab1a2f1
- sha1: 4deddf404012c1456079d45d3072d41eb7c84495
- sha256: d613c6fb34461e57632fceb6bdbd48ea1b4cb050f151d16d4a94c5c6a5446022
using System;
using System.Runtime.InteropServices;
// ReSharper disable InconsistentNaming
// ReSharper disable FieldCanBeMadeReadOnly.Global
namespace DesignerSnapLinesDemo
{
internal static class NativeMethods
{
#region Externals
[DllImport("gdi32.dll", CharSet = CharSet.Auto, SetLastError = true)]
public static extern bool DeleteObject(IntPtr hObject);
[DllImport("gdi32.dll", CharSet = CharSet.Auto)]
public static extern bool GetTextMetrics(IntPtr hdc, out TEXTMETRICW lptm);
[DllImport("gdi32.dll", CharSet = CharSet.Auto)]
public static extern IntPtr SelectObject(IntPtr hdc, IntPtr hgdiObj);
#endregion
#region Nested type: TEXTMETRICW
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct TEXTMETRICW
{
public int tmHeight;
public int tmAscent;
public int tmDescent;
public int tmInternalLeading;
public int tmExternalLeading;
public int tmAveCharWidth;
public int tmMaxCharWidth;
public int tmWeight;
public int tmOverhang;
public int tmDigitizedAspectX;
public int tmDigitizedAspectY;
public ushort tmFirstChar;
public ushort tmLastChar;
public ushort tmDefaultChar;
public ushort tmBreakChar;
public byte tmItalic;
public byte tmUnderlined;
public byte tmStruckOut;
public byte tmPitchAndFamily;
public byte tmCharSet;
}
#endregion
}
}
Donate
This software may be used free of charge, but as with all free software there are costs involved to develop and maintain.
If this site or its services have saved you time, please consider a donation to help with running costs and timely updates.
Donate