Ejemplo n.º 1
0
        public int CompareTo(object obj)
        {
            VideoMode other = (VideoMode)obj;

            if (other.w > w)
            {
                return(-1);
            }
            else if (other.w < w)
            {
                return(1);
            }
            else if (other.h > h)
            {
                return(-1);
            }
            else if (other.h < h)
            {
                return(1);
            }
            else if (other.bpp > bpp)
            {
                return(-1);
            }
            else if (other.bpp < bpp)
            {
                return(1);
            }
            else if (other.refresh > refresh)
            {
                return(-1);
            }
            else if (other.refresh < refresh)
            {
                return(1);
            }
            else
            {
                return(0);
            }
        }
Ejemplo n.º 2
0
        //------------------------------------------------------------------------

        public Display(VideoMode mode)
            : this(wxDisplay_ctor(ref mode), true)
        {
        }
Ejemplo n.º 3
0
 [DllImport("wx-c"), System.Security.SuppressUnmanagedCodeSecurity] static extern void wxDisplay_GetModes(IntPtr self, VideoMode mode, [In, Out] VideoMode[] modes);
Ejemplo n.º 4
0
 [DllImport("wx-c"), System.Security.SuppressUnmanagedCodeSecurity] static extern int wxDisplay_GetNumModes(IntPtr self, VideoMode mode);
Ejemplo n.º 5
0
 [DllImport("wx-c"), System.Security.SuppressUnmanagedCodeSecurity] static extern bool wxDisplay_ChangeMode(IntPtr self, VideoMode mode);
Ejemplo n.º 6
0
 [DllImport("wx-c"), System.Security.SuppressUnmanagedCodeSecurity] static extern void wxDisplay_GetCurrentMode(IntPtr self, out VideoMode mode);
Ejemplo n.º 7
0
 [DllImport("wx-c"), System.Security.SuppressUnmanagedCodeSecurity] static extern IntPtr wxDisplay_ctor(ref VideoMode mode);
Ejemplo n.º 8
0
        //------------------------------------------------------------------------

        virtual public bool ChangeMode(VideoMode mode)
        {
            return(wxDisplay_ChangeMode(wxObject, mode));
        }