コード例 #1
0
 /// <summary>
 /// Opens an LCD of the specified type. If no such device is available, returns
 /// an error.
 /// </summary>
 /// <param name="ctx"></param>
 /// <returns></returns>
 public static uint OpenByType([In, Out] ref lgLcdOpenByTypeContext ctx)
 {
     if (Environment.Is64BitProcess)
     {
         return(Methodsx64.lgLcdOpenByType(ref ctx));
     }
     else
     {
         return(Methodsx86.lgLcdOpenByType(ref ctx));
     }
 }
コード例 #2
0
 /// <summary>
 /// Connect as a client to the LCD subsystem. Provide name to be
 /// displayed for user when viewing the user interface of the LCD module,
 /// as well as a configuration callback and context, and a flag that states
 /// whether this client is startable by LCDMon
 /// </summary>
 /// <param name="ctx"></param>
 /// <returns></returns>
 public static uint ConnectEx([In, Out] ref lgLcdConnectContextExW ctx)
 {
     if (Environment.Is64BitProcess)
     {
         return(Methodsx64.lgLcdConnectExW(ref ctx));
     }
     else
     {
         return(Methodsx86.lgLcdConnectExW(ref ctx));
     }
 }
コード例 #3
0
 /// <summary>
 /// Must be called to release the connection and free all allocated resources
 /// </summary>
 /// <param name="connection"></param>
 /// <returns></returns>
 public static uint Disconnect(int connection)
 {
     if (Environment.Is64BitProcess)
     {
         return(Methodsx64.lgLcdDisconnect(connection));
     }
     else
     {
         return(Methodsx86.lgLcdDisconnect(connection));
     }
 }
コード例 #4
0
 /// <summary>
 /// Must be called to release the library and free all allocated structures.
 /// </summary>
 /// <returns></returns>
 public static uint DeInit()
 {
     if (Environment.Is64BitProcess)
     {
         return(Methodsx64.lgLcdDeInit());
     }
     else
     {
         return(Methodsx86.lgLcdDeInit());
     }
 }
コード例 #5
0
 /// <summary>
 /// Sets the calling application as the shown application on the LCD, and stops
 /// any type of rotation among other applications on the LCD.
 /// </summary>
 /// <param name="device"></param>
 /// <param name="foregroundYesNoFlag"></param>
 /// <returns></returns>
 public static uint SetAsLCDForegroundApp([In] int device, [In] ForegroundYesNoFlags foregroundYesNoFlag)
 {
     if (Environment.Is64BitProcess)
     {
         return(Methodsx64.lgLcdSetAsLCDForegroundApp(device, foregroundYesNoFlag));
     }
     else
     {
         return(Methodsx86.lgLcdSetAsLCDForegroundApp(device, foregroundYesNoFlag));
     }
 }
コード例 #6
0
 /// <summary>
 /// Provides a bitmap to be displayed on the LCD. The priority field
 /// further describes the way in which the bitmap is to be applied.
 /// </summary>
 /// <param name="device"></param>
 /// <param name="bitmap"></param>
 /// <param name="priority"></param>
 /// <returns></returns>
 public static uint UpdateBitmap([In] int device, [In] IntPtr bitmap, [In] uint priority)
 {
     if (Environment.Is64BitProcess)
     {
         return(Methodsx64.lgLcdUpdateBitmap(device, bitmap, priority));
     }
     else
     {
         return(Methodsx86.lgLcdUpdateBitmap(device, bitmap, priority));
     }
 }
コード例 #7
0
 /// <summary>
 /// Reads the state of the soft buttons for the device.
 /// </summary>
 /// <param name="device"></param>
 /// <param name="buttons"></param>
 /// <returns></returns>
 public static uint ReadSoftButtons([In] int device, [In, Out] ref Buttons buttons)
 {
     if (Environment.Is64BitProcess)
     {
         return(Methodsx64.lgLcdReadSoftButtons(device, ref buttons));
     }
     else
     {
         return(Methodsx86.lgLcdReadSoftButtons(device, ref buttons));
     }
 }
コード例 #8
0
 /// <summary>
 /// Closes the LCD. Must be paired with lgLcdOpen()/lgLcdOpenByType().
 /// </summary>
 /// <param name="device"></param>
 /// <returns></returns>
 public static uint Close([In] int device)
 {
     if (Environment.Is64BitProcess)
     {
         return(Methodsx64.lgLcdClose(device));
     }
     else
     {
         return(Methodsx86.lgLcdClose(device));
     }
 }