Exemplo n.º 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;
 }
Exemplo n.º 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);
 }
Exemplo n.º 3
0
 public static extern int XFillRectangles(IntPtr display, IntPtr d, IntPtr gc, TonNurako.Native.X11.XRectangle [] rectangles, int nrectangles);
Exemplo n.º 4
0
 public static extern int XFillPolygon(IntPtr display, IntPtr d, IntPtr gc, TonNurako.Native.X11.XPoint [] points, int npoints, int shape, int mode);
Exemplo n.º 5
0
 public static extern int XFillArcs(IntPtr display, IntPtr d, IntPtr gc, TonNurako.Native.X11.XArc [] arcs, int narcs);
Exemplo n.º 6
0
 public static extern int XDrawSegments(IntPtr display, IntPtr d, IntPtr gc, TonNurako.Native.X11.XSegment [] segments, int nsegments);
Exemplo n.º 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);
 }
Exemplo n.º 8
0
 public static Color FromName(TonNurako.Widgets.IWidget widget, string name)
 {
     return new Color(widget, name);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
Exemplo n.º 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);
        }
Exemplo n.º 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);
 }
Exemplo n.º 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;
 }
Exemplo n.º 17
0
 public static extern int XDrawPoints(IntPtr display, IntPtr d, IntPtr gc, TonNurako.Native.X11.XPoint [] points, int npoints, int mode);
Exemplo n.º 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);
 }
Exemplo n.º 19
0
 public static void XmMenuPosition(Widgets.IWidget menu, TonNurako.Native.Xt.XEventStruct.XButtonEvent xevent)
 {
     NativeMethods.XmMenuPosition(menu.NativeHandle.Widget, xevent);
 }