KiCad PCB EDA Suite
Loading...
Searching...
No Matches
ui.h File Reference
#include <wx/cursor.h>

Go to the source code of this file.

Namespaces

namespace  KIPLATFORM
 
namespace  KIPLATFORM::UI
 

Functions

bool KIPLATFORM::UI::IsDarkTheme ()
 Determine if the desktop interface is currently using a dark theme or a light theme.
 
wxColour KIPLATFORM::UI::GetDialogBGColour ()
 
void KIPLATFORM::UI::ForceFocus (wxWindow *aWindow)
 Pass the current focus to the window.
 
bool KIPLATFORM::UI::IsWindowActive (wxWindow *aWindow)
 Check to see if the given window is the currently active window (e.g.
 
void KIPLATFORM::UI::ReparentModal (wxNonOwnedWindow *aWindow)
 Move a window's parent to be the top-level window and force the window to be on top.
 
void KIPLATFORM::UI::FixupCancelButtonCmdKeyCollision (wxWindow *aWindow)
 
bool KIPLATFORM::UI::IsStockCursorOk (wxStockCursor aCursor)
 Checks if we designated a stock cursor for this OS as "OK" or else we may need to load a custom one.
 
void KIPLATFORM::UI::LargeChoiceBoxHack (wxChoice *aChoice)
 Configure a wxChoice control to support a lot of entries by disabling functionality that makes adding new items become very expensive.
 
void KIPLATFORM::UI::EllipsizeChoiceBox (wxChoice *aChoice)
 Configure a wxChoice control to ellipsize the shown text in the button with the ellipses placed at the end of the string.
 
double KIPLATFORM::UI::GetPixelScaleFactor (const wxWindow *aWindow)
 Tries to determine the pixel scaling factor currently in use for the window.
 
double KIPLATFORM::UI::GetContentScaleFactor (const wxWindow *aWindow)
 Tries to determine the content scaling factor currently in use for the window.
 
wxSize KIPLATFORM::UI::GetUnobscuredSize (const wxWindow *aWindow)
 Tries to determine the size of the viewport of a scrollable widget (wxDataViewCtrl, wxGrid) that won't be obscured by scrollbars.
 
void KIPLATFORM::UI::SetOverlayScrolling (const wxWindow *aWindow, bool overlay)
 Used to set overlay/non-overlay scrolling mode in a window.
 
bool KIPLATFORM::UI::AllowIconsInMenus ()
 If the user has disabled icons system-wide, we check that here.
 
wxPoint KIPLATFORM::UI::GetMousePosition ()
 Returns the mouse position in screen coordinates.
 
bool KIPLATFORM::UI::WarpPointer (wxWindow *aWindow, int aX, int aY)
 Move the mouse cursor to a specific position relative to the window.
 
void KIPLATFORM::UI::ImmControl (wxWindow *aWindow, bool aEnable)
 Configures the IME mode of a given control handle.
 
void KIPLATFORM::UI::ImeNotifyCancelComposition (wxWindow *aWindow)
 Asks the IME to cancel.
 
bool KIPLATFORM::UI::InfiniteDragPrepareWindow (wxWindow *aWindow)
 On Wayland, restricts the pointer movement to a rectangle slightly bigger than the given wxWindow.
 
void KIPLATFORM::UI::InfiniteDragReleaseWindow ()
 On Wayland, allows the cursor to freely move again after a drag (see InfiniteDragPrepareWindow).
 
void KIPLATFORM::UI::SetFloatLevel (wxWindow *aWindow)
 Intended to set the floating window level in macOS on a window.