Beispiel #1
0
 /*! \brief Sets the Desktop colour used in the slider.
  * \param [in] barColour Desktop colour for the bar.
  * \param [in] bgColour Desktop colour for the background
  * \return Nothing.  */
 public void SetColour(OS.DesktopColour barColour,
                       OS.DesktopColour bgColour)
 {
     Object.MiscOp_SetR3R4R5(0,
                             Method.SetColour,
                             ComponentID,
                             (uint)barColour,
                             (uint)bgColour);
 }
Beispiel #2
0
            /*! \brief Returns the Desktop colour used in the slider.
             * \param [out] barColour Desktop colour for the bar.
             * \param [out] bgColour Desktop colour for the background
             * \return Nothing.  */
            public void GetColour(out OS.DesktopColour barColour,
                                  out OS.DesktopColour bgColour)
            {
                uint bar_col;
                uint bg_col;

                Object.MiscOp_SetR3GetR0R1(0,
                                           Method.GetColour,
                                           ComponentID,
                                           out bar_col,
                                           out bg_col);

                barColour = (OS.DesktopColour)bar_col;
                bgColour  = (OS.DesktopColour)bg_col;
            }