summary history branches tags files
commit:9e338b2c5eebd15d1d80da14bbc1f0311f3fc0ab
author:Trevor Bentley
committer:Trevor Bentley
date:Mon Jul 24 20:27:24 2017 +0200
parents:7cf5f31826b80ad9292c7bb3a6a5cf3e6efc9ec5
Add all Apple image templates
diff --git a/src/interface.rs b/src/interface.rs
line changes: +70/-5
index 1ae423e..f1ef338
--- a/src/interface.rs
+++ b/src/interface.rs
@@ -68,15 +68,80 @@ pub type TouchbarImage = u64;
 /// Identifiers for Apple's standard button image templates
 #[allow(missing_docs)]
 pub enum ImageTemplate {
+    AddDetailTemplate,
+    AddTemplate,
     AlarmTemplate,
-    RewindTemplate,
+    AudioInputMuteTemplate,
+    AudioInputTemplate,
+    AudioOutputMuteTemplate,
+    AudioOutputVolumeHighTemplate,
+    AudioOutputVolumeLowTemplate,
+    AudioOutputVolumeMediumTemplate,
+    AudioOutputVolumeOffTemplate,
+    BookmarksTemplate,
+    ColorPickerFill,
+    ColorPickerFont,
+    ColorPickerStroke,
+    CommunicationAudioTemplate,
+    CommunicationVideoTemplate,
+    ComposeTemplate,
+    DeleteTemplate,
+    DownloadTemplate,
+    EnterFullScreenTemplate,
+    ExitFullScreenTemplate,
     FastForwardTemplate,
-    PlayTemplate,
+    FolderCopyToTemplate,
+    FolderMoveToTemplate,
+    FolderTemplate,
+    GetInfoTemplate,
+    GoBackTemplate,
+    GoDownTemplate,
+    GoForwardTemplate,
+    GoUpTemplate,
+    HistoryTemplate,
+    IconViewTemplate,
+    ListViewTemplate,
+    MailTemplate,
+    NewFolderTemplate,
+    NewMessageTemplate,
+    OpenInBrowserTemplate,
     PauseTemplate,
+    PlayheadTemplate,
     PlayPauseTemplate,
-    ListViewTemplate,
-    AudioOutputVolumeMediumTemplate,
-    GoUpTemplate,
+    PlayTemplate,
+    QuickLookTemplate,
+    RecordStartTemplate,
+    RecordStopTemplate,
+    RefreshTemplate,
+    RewindTemplate,
+    RotateLeftTemplate,
+    RotateRightTemplate,
+    SearchTemplate,
+    ShareTemplate,
+    SidebarTemplate,
+    SkipAhead15SecondsTemplate,
+    SkipAhead30SecondsTemplate,
+    SkipAheadTemplate,
+    SkipBack15SecondsTemplate,
+    SkipBack30SecondsTemplate,
+    SkipBackTemplate,
+    SkipToEndTemplate,
+    SkipToStartTemplate,
+    SlideshowTemplate,
+    TagIconTemplate,
+    TextBoldTemplate,
+    TextBoxTemplate,
+    TextCenterAlignTemplate,
+    TextItalicTemplate,
+    TextJustifiedAlignTemplate,
+    TextLeftAlignTemplate,
+    TextListTemplate,
+    TextRightAlignTemplate,
+    TextStrikethroughTemplate,
+    TextUnderlineTemplate,
+    UserAddTemplate,
+    UserGroupTemplate,
+    UserTemplate
 }
 
 /// Identifiers for the type of spacing available between items

diff --git a/src/touchbar.rs b/src/touchbar.rs
line changes: +76/-10
index 1f14c9d..dbb442a
--- a/src/touchbar.rs
+++ b/src/touchbar.rs
@@ -138,16 +138,82 @@ macro_rules! image_template {
 impl ImageTemplate {
     fn objc(template: ImageTemplate) -> *mut Object {
         unsafe {
-            let s = image_template!(template,
-                                    AlarmTemplate,
-                                    RewindTemplate,
-                                    FastForwardTemplate,
-                                    PlayTemplate,
-                                    PauseTemplate,
-                                    PlayPauseTemplate,
-                                    ListViewTemplate,
-                                    AudioOutputVolumeMediumTemplate,
-                                    GoUpTemplate
+            let s = image_template!(
+                template,
+                AddDetailTemplate,
+                AddTemplate,
+                AlarmTemplate,
+                AudioInputMuteTemplate,
+                AudioInputTemplate,
+                AudioOutputMuteTemplate,
+                AudioOutputVolumeHighTemplate,
+                AudioOutputVolumeLowTemplate,
+                AudioOutputVolumeMediumTemplate,
+                AudioOutputVolumeOffTemplate,
+                BookmarksTemplate,
+                ColorPickerFill,
+                ColorPickerFont,
+                ColorPickerStroke,
+                CommunicationAudioTemplate,
+                CommunicationVideoTemplate,
+                ComposeTemplate,
+                DeleteTemplate,
+                DownloadTemplate,
+                EnterFullScreenTemplate,
+                ExitFullScreenTemplate,
+                FastForwardTemplate,
+                FolderCopyToTemplate,
+                FolderMoveToTemplate,
+                FolderTemplate,
+                GetInfoTemplate,
+                GoBackTemplate,
+                GoDownTemplate,
+                GoForwardTemplate,
+                GoUpTemplate,
+                HistoryTemplate,
+                IconViewTemplate,
+                ListViewTemplate,
+                MailTemplate,
+                NewFolderTemplate,
+                NewMessageTemplate,
+                OpenInBrowserTemplate,
+                PauseTemplate,
+                PlayheadTemplate,
+                PlayPauseTemplate,
+                PlayTemplate,
+                QuickLookTemplate,
+                RecordStartTemplate,
+                RecordStopTemplate,
+                RefreshTemplate,
+                RewindTemplate,
+                RotateLeftTemplate,
+                RotateRightTemplate,
+                SearchTemplate,
+                ShareTemplate,
+                SidebarTemplate,
+                SkipAhead15SecondsTemplate,
+                SkipAhead30SecondsTemplate,
+                SkipAheadTemplate,
+                SkipBack15SecondsTemplate,
+                SkipBack30SecondsTemplate,
+                SkipBackTemplate,
+                SkipToEndTemplate,
+                SkipToStartTemplate,
+                SlideshowTemplate,
+                TagIconTemplate,
+                TextBoldTemplate,
+                TextBoxTemplate,
+                TextCenterAlignTemplate,
+                TextItalicTemplate,
+                TextJustifiedAlignTemplate,
+                TextLeftAlignTemplate,
+                TextListTemplate,
+                TextRightAlignTemplate,
+                TextStrikethroughTemplate,
+                TextUnderlineTemplate,
+                UserAddTemplate,
+                UserGroupTemplate,
+                UserTemplate
             );
             let name = NSString::alloc(nil).init_str(&s);
             let _ = msg_send![name, autorelease];