Beispiel #1
0
        public FontFamilyAttribute(string family)
        {
            IntPtr strPtr = family.ToLibuiString();

            Handle = new SafeTextAttributeHandle(LibuiLibrary.uiNewFamilyAttribute(strPtr));
            Marshal.FreeHGlobal(strPtr);
        }
Beispiel #2
0
 public BackgroundColorAttribute(Color color)
 {
     Handle = new SafeTextAttributeHandle(LibuiLibrary.uiNewBackgroundAttribute(color.R, color.G, color.B, color.A));
     Color  = color;
 }