Beispiel #1
0
 /// <summary>
 /// Creates a new Keyboard  object with default text
 /// heading and hidden input flag if supplied.
 /// </summary>
 /// <param name="defaultText">default text entry.</param>
 /// <param name="heading">keyboard heading.</param>
 /// <param name="hidden">True for hidden text entry.</param>
 public Keyboard(string defaultText = null, string heading = null, bool hidden = false)
 {
     Instance.CallAssign(
         new PyFunction(PyModule.Xbmc, "Keyboard"),
         defaultText, heading, hidden
         );
 }
Beispiel #2
0
 public PlayList(PlayListType type)
 {
     Instance.CallAssign(
         new PythonFunction(PyModule.Xbmc, "PlayList"),
         new List <object> {
         type.GetString()
     }
         );
 }
Beispiel #3
0
 /// <summary>
 /// Creates a new Keyboard  object with default text
 /// heading and hidden input flag if supplied.
 /// </summary>
 /// <param name="defaultText">default text entry.</param>
 /// <param name="heading">keyboard heading.</param>
 /// <param name="hidden">True for hidden text entry.</param>
 public Keyboard(string defaultText = null, string heading = null, bool hidden = false)
 {
     Instance.CallAssign(
         new PythonFunction(PyModule.Xbmc, "Keyboard"),
         new List <object> {
         defaultText, heading, hidden
     }
         );
 }
Beispiel #4
0
 /// <summary>
 /// Creates a new AddOn class.
 /// </summary>
 /// <param name="id">id of the addon as specified in addon.xml.
 /// If not specified, the running addon is used</param>
 public Addon(int?id = null)
 {
     Instance.CallAssign(
         new PythonFunction(PyModule.XbmcAddon, "Addon"),
         new List <object> {
         id
     }
         );
 }
Beispiel #5
0
 public PlayList(PlayListType type)
 {
     Instance.CallAssign(
         _ctor,
         new List <object> {
         type.GetString()
     },
         EscapeFlags.None
         );
 }
Beispiel #6
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="label">Item's left label</param>
 /// <param name="label2">Item's right label</param>
 /// <param name="iconImage">Deprecated. Use setArt</param>
 /// <param name="thumbnailImage">Deprecated. Use setArt</param>
 /// <param name="path">path, activated when item is clicked.</param>
 /// <param name="url">The destination url</param>
 /// <param name="isFolder"></param>
 public ListItem(
     string label          = null,
     string label2         = null,
     string iconImage      = null,
     string thumbnailImage = null,
     string path           = null,
     string url            = "",
     bool isFolder         = false
     )
 {
     this.Url      = url;
     this.IsFolder = isFolder;
     Instance.CallAssign(
         new PythonFunction(PyModule.XbmcGui, "ListItem"),
         new List <object> {
         label, label2, iconImage, thumbnailImage, path
     }
         );
 }
Beispiel #7
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="label">Item's left label</param>
        /// <param name="label2">Item's right label</param>
        /// <param name="iconImage">Deprecated. Use setArt</param>
        /// <param name="thumbnailImage">Deprecated. Use setArt</param>
        /// <param name="path">path, activated when item is clicked.</param>
        /// <param name="url">The destination url</param>
        /// <param name="isFolder"></param>
        public ListItem(
            string label                 = null,
            string label2                = null,
            string iconImage             = null,
            string thumbnailImage        = null,
            string path                  = null,
            string url                   = "",
            bool isFolder                = false,
            Dictionary <Art, string> art = null
            )
        {
            this.Url      = url;
            this.IsFolder = isFolder;
            Instance.CallAssign(
                _ctor,
                label, label2, iconImage, thumbnailImage, path
                );

            if (art != null)
            {
                SetArt(art);
            }
        }
Beispiel #8
0
 /// <summary>
 /// Creates a new AddOn class.
 /// </summary>
 /// <param name="id">id of the addon as specified in addon.xml.
 /// If not specified, the running addon is used</param>
 public Addon(string id = null)
 {
     Instance.CallAssign(_ctor, id);
 }