コード例 #1
0
 /// <summary>
 /// Gets the Y-offset of the OXPd web browser for the specified <see cref="JediOmniControlPanel" />.
 /// </summary>
 /// <param name="controlPanel">The control panel.</param>
 /// <returns>The Y-offset of the OXPd web browser control.</returns>
 /// <exception cref="ElementNotFoundException">The OXPd browser could not be found.</exception>
 public static int GetBrowserOffset(JediOmniControlPanel controlPanel)
 {
     return(controlPanel.GetBoundingBox("#hpid-oxpd-scroll-pane").Top);
 }
コード例 #2
0
 /// <summary>
 /// Gets the size of the control panel screen.
 /// </summary>
 /// <param name="controlPanel">The control panel.</param>
 /// <returns>The size of the control panel.</returns>
 public static Size GetScreenSize(this JediOmniControlPanel controlPanel)
 {
     return(controlPanel.GetBoundingBox(":root").Size);
 }