示例#1
0
 public Color(TonNurako.Native.Xt.XColor xcolor)
 {
     //((koror >> 24) & 0xff),
         R = (byte)((xcolor.pixel >> 16) & 0xff);
         G = (byte)((xcolor.pixel >> 8) & 0xff);
         B = (byte)((xcolor.pixel) & 0xff);
         Pixel = (uint)xcolor.pixel;
 }
示例#2
0
 public static int XDrawArcs(IntPtr display, IntPtr d, IntPtr gc, TonNurako.Native.X11.XArc [] arcs, int narcs)
 {
     return NativeMethods.XDrawArcs(display,d,gc,arcs,narcs);
 }
示例#3
0
 public static extern int XFillRectangles(IntPtr display, IntPtr d, IntPtr gc, TonNurako.Native.X11.XRectangle [] rectangles, int nrectangles);
示例#4
0
 public static extern int XFillPolygon(IntPtr display, IntPtr d, IntPtr gc, TonNurako.Native.X11.XPoint [] points, int npoints, int shape, int mode);
示例#5
0
 public static extern int XFillArcs(IntPtr display, IntPtr d, IntPtr gc, TonNurako.Native.X11.XArc [] arcs, int narcs);
示例#6
0
 public static extern int XDrawSegments(IntPtr display, IntPtr d, IntPtr gc, TonNurako.Native.X11.XSegment [] segments, int nsegments);
示例#7
0
 /// <summary>
 /// リソースの追加
 /// </summary>
 /// <param name="arg">セットするリソース</param>
 /// <param name="val">値</param>
 public void Add(Enum arg, TonNurako.Data.Color val)
 {
     ulong pixel = val.Pixel;
     if (null != Widget) {
         pixel = val.ToXColor(Widget).pixel;
     }
     //リソースの保持用
     Native.Xt.XtArg args = new Native.Xt.XtArg(ToolkitOptionAttribute.GetToolkitName(arg) , pixel);
     //テーブルに追加
     resources.Add(args);
 }
示例#8
0
 public static Color FromName(TonNurako.Widgets.IWidget widget, string name)
 {
     return new Color(widget, name);
 }
示例#9
0
 public static int XFillPolygon(IntPtr display, IntPtr d, IntPtr gc, TonNurako.Native.X11.XPoint [] points, int npoints, int shape, int mode)
 {
     return NativeMethods.XFillPolygon(display,d,gc,points,npoints,shape,mode);
 }
示例#10
0
 public static int XDrawSegments(IntPtr display, IntPtr d, IntPtr gc, TonNurako.Native.X11.XSegment [] segments, int nsegments)
 {
     return NativeMethods.XDrawSegments(display,d,gc,segments,nsegments);
 }
示例#11
0
 public static int XDrawPoints(IntPtr display, IntPtr d, IntPtr gc, TonNurako.Native.X11.XPoint [] points, int npoints, int mode)
 {
     return NativeMethods.XDrawPoints(display,d,gc,points,npoints,mode);
 }
示例#12
0
 public static void XtAddEventHandler(Widgets.IWidget w, ulong event_mask, bool nonmaskable,
              TonNurako.Native.Xt.G.XtEventHandler proc, IntPtr client_data)
 {
     NativeMethods.XtAddEventHandler(w.NativeHandle.Widget, event_mask,nonmaskable,proc,client_data);
 }
示例#13
0
 internal static extern void XtRemoveEventHandler(IntPtr w, ulong event_mask,
         [MarshalAs(UnmanagedType.U1)] bool nonmaskable, TonNurako.Native.Xt.G.XtEventHandler proc, IntPtr client_data);
示例#14
0
        public void GetValue(Enum arg, out TonNurako.Data.Color val )
        {
            long pixel = 0;
            ExtremeSports.XtGetValues(Widget.NativeHandle, ToolkitOptionAttribute.GetToolkitName(arg), out pixel);

            val = new TonNurako.Data.Color((uint)pixel);
        }
示例#15
0
 public static int XFillRectangles(IntPtr display, IntPtr d, IntPtr gc, TonNurako.Native.X11.XRectangle [] rectangles, int nrectangles)
 {
     return NativeMethods.XFillRectangles(display,d,gc,rectangles,nrectangles);
 }
示例#16
0
 public Color(TonNurako.Widgets.IWidget widget, string xcolor)
 {
     Native.Xt.XColor c = Native.ExtremeSports.XParseColor(widget, xcolor);
     SetWidgetColor((uint)c.pixel);
     this.Widget = widget;
 }
示例#17
0
 public static extern int XDrawPoints(IntPtr display, IntPtr d, IntPtr gc, TonNurako.Native.X11.XPoint [] points, int npoints, int mode);
示例#18
0
 public TonNurako.Native.Xt.XColor ToXColor(TonNurako.Widgets.IWidget widget)
 {
     return Native.ExtremeSports.XAllocColor((null == widget.NativeHandle) ? this.Widget : widget, R, G, B, 255);
 }
示例#19
0
 public static void XmMenuPosition(Widgets.IWidget menu, TonNurako.Native.Xt.XEventStruct.XButtonEvent xevent)
 {
     NativeMethods.XmMenuPosition(menu.NativeHandle.Widget, xevent);
 }