public FontFamilyAttribute(string family) { IntPtr strPtr = family.ToLibuiString(); Handle = new SafeTextAttributeHandle(LibuiLibrary.uiNewFamilyAttribute(strPtr)); Marshal.FreeHGlobal(strPtr); }
public BackgroundColorAttribute(Color color) { Handle = new SafeTextAttributeHandle(LibuiLibrary.uiNewBackgroundAttribute(color.R, color.G, color.B, color.A)); Color = color; }