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; }
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); }
public static extern int XFillRectangles(IntPtr display, IntPtr d, IntPtr gc, TonNurako.Native.X11.XRectangle [] rectangles, int nrectangles);
public static extern int XFillPolygon(IntPtr display, IntPtr d, IntPtr gc, TonNurako.Native.X11.XPoint [] points, int npoints, int shape, int mode);
public static extern int XFillArcs(IntPtr display, IntPtr d, IntPtr gc, TonNurako.Native.X11.XArc [] arcs, int narcs);
public static extern int XDrawSegments(IntPtr display, IntPtr d, IntPtr gc, TonNurako.Native.X11.XSegment [] segments, int nsegments);
/// <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); }
public static Color FromName(TonNurako.Widgets.IWidget widget, string name) { return new Color(widget, name); }
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); }
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); }
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); }
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); }
internal static extern void XtRemoveEventHandler(IntPtr w, ulong event_mask, [MarshalAs(UnmanagedType.U1)] bool nonmaskable, TonNurako.Native.Xt.G.XtEventHandler proc, IntPtr client_data);
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); }
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); }
public Color(TonNurako.Widgets.IWidget widget, string xcolor) { Native.Xt.XColor c = Native.ExtremeSports.XParseColor(widget, xcolor); SetWidgetColor((uint)c.pixel); this.Widget = widget; }
public static extern int XDrawPoints(IntPtr display, IntPtr d, IntPtr gc, TonNurako.Native.X11.XPoint [] points, int npoints, int mode);
public TonNurako.Native.Xt.XColor ToXColor(TonNurako.Widgets.IWidget widget) { return Native.ExtremeSports.XAllocColor((null == widget.NativeHandle) ? this.Widget : widget, R, G, B, 255); }
public static void XmMenuPosition(Widgets.IWidget menu, TonNurako.Native.Xt.XEventStruct.XButtonEvent xevent) { NativeMethods.XmMenuPosition(menu.NativeHandle.Widget, xevent); }