~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to external/monomac/src/AppKit/Enums.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
23
//
24
24
using System;
 
25
using MonoMac.ObjCRuntime;
25
26
 
26
27
namespace MonoMac.AppKit {
27
28
 
328
329
                Swipe = 31,
329
330
                Rotate = 18,
330
331
                BeginGesture = 19,
331
 
                EndGesture = 20
 
332
                EndGesture = 20,
 
333
 
 
334
                SmartMagnify = 32,
 
335
                QuickLook = 33
332
336
        }
333
337
 
334
338
        [Flags]
830
834
                Save, SaveAs, SaveTo,
831
835
                Autosave = 3,   /* Deprecated name in Lion */
832
836
                Elsewhere = 3,  /* New Lion name */
833
 
                InPlace = 4     /* New in Lion */
 
837
                InPlace = 4,    /* New in Lion */
 
838
                AutoSaveAs = 5  /* New in Mountain Lion */
834
839
        }
835
840
 
836
841
#endregion
1356
1361
        }
1357
1362
 
1358
1363
        public enum NSOpenGLContextParameter {
1359
 
                SwapRectangle = 200,
1360
 
                SwapRectangleEnable = 201,
1361
 
                RasterizationEnable = 221,
 
1364
                [Obsolete] SwapRectangle = 200,
 
1365
                [Obsolete] SwapRectangleEnable = 201,
 
1366
                [Obsolete] RasterizationEnable = 221,
 
1367
                [Obsolete] StateValidation = 301,
 
1368
                [Obsolete] SurfaceSurfaceVolatile = 306,
 
1369
 
1362
1370
                SwapInterval = 222,
1363
1371
                SurfaceOrder = 235,
1364
1372
                SurfaceOpacity = 236,
1365
 
                StateValidation = 301,
 
1373
 
 
1374
                [Lion] SurfaceBackingSize = 304,
 
1375
                [Lion] ReclaimResources = 308,
 
1376
                [Lion] CurrentRendererID = 309,
 
1377
                [Lion] GpuVertexProcessing = 310,
 
1378
                [Lion] GpuFragmentProcessing = 311,
 
1379
                [Lion] HasDrawable = 314,
 
1380
                [Lion] MpsSwapsInFlight = 315
1366
1381
        }
1367
1382
        
1368
1383
        public enum NSSurfaceOrder {
1373
1388
        public enum NSOpenGLPixelFormatAttribute {
1374
1389
                AllRenderers       =   1,
1375
1390
                DoubleBuffer       =   5,
 
1391
                [Lion] TrippleBuffer = 3,
1376
1392
                Stereo             =   6,
1377
1393
                AuxBuffers         =   7,
1378
1394
                ColorSize          =   8,
1396
1412
                NoRecovery         =  72,
1397
1413
                Accelerated        =  73,
1398
1414
                ClosestPolicy      =  74,
1399
 
                Robust             =  75,
1400
1415
                BackingStore       =  76,
1401
 
                MPSafe             =  78,
1402
1416
                Window             =  80,
1403
 
                MultiScreen        =  81,
1404
1417
                Compliant          =  83,
1405
1418
                ScreenMask         =  84,
1406
1419
                PixelBuffer        =  90,
1407
1420
                RemotePixelBuffer  =  91,
1408
1421
                AllowOfflineRenderers = 96,
1409
1422
                AcceleratedCompute =  97,
 
1423
 
 
1424
                // Specify the profile
 
1425
                [Lion] OpenGLProfile = 99,
1410
1426
                VirtualScreenCount = 128,
1411
 
        }
1412
 
    
 
1427
 
 
1428
                [Obsolete] Robust  =  75,
 
1429
                [Obsolete] MPSafe  =  78,
 
1430
                [Obsolete] MultiScreen =  81
 
1431
        }
 
1432
 
 
1433
        public enum NSOpenGLProfile {
 
1434
                VersionLegacy   = 0x1000, // Legacy
 
1435
                Version3_2Core  = 0x3200  // 3.2 or better
 
1436
        }
 
1437
        
1413
1438
        public enum NSAlertButtonReturn {
1414
1439
                First = 1000,
1415
1440
                Second = 1001,
1419
1444
        public enum NSOpenGLGlobalOption {
1420
1445
                FormatCacheSize = 501,
1421
1446
                ClearFormatCache = 502,
1422
 
                RetainRenderers  = 503,
1423
 
                ResetLibrary     = 504
 
1447
                RetainRenderers = 503,
 
1448
                [Lion] UseBuildCache = 506,
 
1449
                [Obsolete] ResetLibrary = 504
1424
1450
        }
1425
1451
 
1426
1452
        public enum NSGLTextureTarget {
1469
1495
        }
1470
1496
 
1471
1497
        public static class NSFileTypeForHFSTypeCode {
1472
 
                public static string ComputerIcon = "root";
1473
 
                public static string DesktopIcon = "desk";
1474
 
                public static string FinderIcon = "FNDR";
 
1498
                public static readonly string ComputerIcon = "root";
 
1499
                public static readonly string DesktopIcon = "desk";
 
1500
                public static readonly string FinderIcon = "FNDR";
1475
1501
        }
1476
1502
        
1477
1503
        // These constants specify the possible states of a drawer.
1592
1618
        }
1593
1619
 
1594
1620
        public enum NSLayoutFormatOptions {
 
1621
                None = 0,
 
1622
 
1595
1623
                AlignAllLeft = (1 << NSLayoutAttribute.Left),
1596
1624
                AlignAllRight = (1 << NSLayoutAttribute.Right),
1597
1625
                AlignAllTop = (1 << NSLayoutAttribute.Top),
1665
1693
                Default = 0, None = 2, DocumentWindow, UtilityWindow, AlertPanel
1666
1694
        }
1667
1695
 
 
1696
        [Lion]
1668
1697
        public enum NSTextFinderAction {
1669
1698
                ShowFindInterface = 1,
1670
1699
                NextMatch = 2,
1680
1709
                ShowReplaceInterface = 12,
1681
1710
                HideReplaceInterface = 13
1682
1711
        }
1683
 
 
1712
 
 
1713
        [Flags]
 
1714
        public enum NSFontPanelMode {
 
1715
                FaceMask = 1 << 0,
 
1716
                SizeMask = 1 << 1,
 
1717
                CollectionMask = 1 << 2,
 
1718
                UnderlineEffectMask = 1<<8,
 
1719
                StrikethroughEffectMask = 1<<9,
 
1720
                TextColorEffectMask = 1<< 10,
 
1721
                DocumentColorEffectMask = 1<<11,
 
1722
                ShadowEffectMask = 1<<12,
 
1723
                AllEffectsMask = 0XFFF00,
 
1724
                StandardMask = 0xFFFF,
 
1725
                AllModesMask = unchecked( (int)0xFFFFFFFF )
 
1726
        }
 
1727
 
 
1728
        [Flags]
 
1729
        public enum NSFontCollectionVisibility {
 
1730
                Process = 1 << 0,
 
1731
                User = 1 << 1,
 
1732
                Computer = 1 << 2,
 
1733
        }
 
1734
 
 
1735
        public enum NSSharingContentScope {
 
1736
                Item,
 
1737
                Partial,
 
1738
                Full
 
1739
        }
 
1740
 
 
1741
        public enum NSSharingServiceName {
 
1742
                PostOnFacebook,
 
1743
                PostOnTwitter,
 
1744
                PostOnSinaWeibo,
 
1745
                ComposeEmail,
 
1746
                ComposeMessage,
 
1747
                SendViaAirDrop,
 
1748
                AddToSafariReadingList,
 
1749
                AddToIPhoto,
 
1750
                AddToAperture,
 
1751
                UseAsTwitterProfileImage,
 
1752
                UseAsDesktopPicture,
 
1753
                PostImageOnFlickr,
 
1754
                PostVideoOnVimeo,
 
1755
                PostVideoOnYouku,
 
1756
                PostVideoOnTudou
 
1757
        }
 
1758
 
 
1759
        [Flags]
 
1760
        public enum NSTypesetterControlCharacterAction {
 
1761
                ZeroAdvancement = 1 << 0,
 
1762
                Whitespace = 1 << 1,
 
1763
                HorizontalTab = 1 << 2,
 
1764
                LineBreak = 1 << 3,
 
1765
                ParagraphBreak = 1 << 4,
 
1766
                ContainerBreak = 1 << 5,
 
1767
        }
 
1768
}