Ejemplo n.º 1
0
        private void InitCursors()
        {
            unsafe void AddStandardCursor(StandardCursorShape standardShape, CursorShape shape)
            {
                var ptr = GLFW.CreateStandardCursor(shape);

                var impl = new CursorImpl(this, ptr, true);

                _standardCursors.Add(standardShape, impl);
            }

            AddStandardCursor(StandardCursorShape.Arrow, CursorShape.Arrow);
            AddStandardCursor(StandardCursorShape.IBeam, CursorShape.IBeam);
            AddStandardCursor(StandardCursorShape.Crosshair, CursorShape.Crosshair);
            AddStandardCursor(StandardCursorShape.Hand, CursorShape.Hand);
            AddStandardCursor(StandardCursorShape.HResize, CursorShape.HResize);
            AddStandardCursor(StandardCursorShape.VResize, CursorShape.VResize);
        }