Esempio n. 1
0
 public static extern int TNK_IMP_Xt_XParseColorW(out XColor color,
                     IntPtr widget, [MarshalAs(UnmanagedType.LPStr)] string name);
Esempio n. 2
0
        public static XColor XParseColor(IWidget widget, string name)
        {
            XColor color = new XColor();
            color.pixel = NativeMethods.TNK_IMP_Xt_XParseColorM(widget.NativeHandle.Widget, name);

            return color;
        }
Esempio n. 3
0
 public static extern int TNK_IMP_Xt_XAllocColor(out XColor color,
                     IntPtr widget, byte r, byte g, byte b, byte a);
Esempio n. 4
0
        public XtArg(string _Name, XColor _Val)
        {
            name = _Name;
            color = _Val.pixel;

            type = XtArgType.Color;

            compoundStr = IntPtr.Zero;
            longVal = 0;
            uintVal = 0;
            ulongVal = 0;
            intVal = 0;
            strVal = "";
            ptrVal = IntPtr.Zero;
            callback = null;
        }