KiCad PCB EDA Suite
Loading...
Searching...
No Matches
KIGFX::VC_SETTINGS Struct Reference

Structure to keep VIEW_CONTROLS settings for easy store/restore operations. More...

#include <view_controls.h>

Public Member Functions

 VC_SETTINGS ()
 
void Reset ()
 Restore the default settings.
 

Public Attributes

bool m_showCursor
 Flag determining the cursor visibility.
 
VECTOR2D m_forcedPosition
 Forced cursor position (world coordinates).
 
bool m_forceCursorPosition
 Is the forced cursor position enabled.
 
bool m_cursorCaptured
 Should the cursor be locked within the parent window area.
 
bool m_snappingEnabled
 Should the cursor snap to grid or move freely.
 
bool m_grabMouse
 Flag for grabbing the mouse cursor.
 
bool m_focusFollowSchPcb
 Flag for automatic focus switching between Schematic and PCB editors.
 
bool m_autoPanEnabled
 Flag for turning on autopanning.
 
bool m_autoPanSettingEnabled
 Flag for turning on autopanning.
 
float m_autoPanMargin
 Distance from cursor to VIEW edge when panning is active.
 
float m_autoPanSpeed
 How fast is panning when in auto mode.
 
float m_autoPanAcceleration
 How fast does panning accelerate when approaching the window boundary.
 
bool m_warpCursor
 If the cursor is allowed to be warped.
 
bool m_horizontalPan
 Enable horizontal panning with the horizontal scroll/trackpad input.
 
bool m_zoomAcceleration
 Enable the accelerating zoom controller.
 
int m_zoomSpeed
 Zoom speed for the non-accelerating zoom controller.
 
bool m_zoomSpeedAuto
 When true, ignore zoom_speed and pick a platform-specific default.
 
int m_scrollModifierZoom
 What modifier key to enable zoom with the (vertical) scroll wheel.
 
int m_scrollModifierPanH
 What modifier key to enable horizontal pan with the (vertical) scroll wheel.
 
int m_scrollModifierPanV
 What modifier key to enable vertical with the (vertical) scroll wheel.
 
MOUSE_DRAG_ACTION m_dragLeft
 
MOUSE_DRAG_ACTION m_dragMiddle
 
MOUSE_DRAG_ACTION m_dragRight
 
bool m_lastKeyboardCursorPositionValid
 Is last cursor motion event coming from keyboard arrow cursor motion action.
 
long m_lastKeyboardCursorCommand
 ACTIONS::CURSOR_UP, ACTIONS::CURSOR_DOWN, etc.
 
VECTOR2D m_lastKeyboardCursorPosition
 Position of the above event.
 
bool m_scrollReverseZoom
 Whether to invert the scroll wheel movement for zoom.
 
bool m_scrollReversePanH
 Whether to invert the scroll wheel movement for horizontal pan.
 

Detailed Description

Structure to keep VIEW_CONTROLS settings for easy store/restore operations.

Definition at line 42 of file view_controls.h.

Constructor & Destructor Documentation

◆ VC_SETTINGS()

KIGFX::VC_SETTINGS::VC_SETTINGS ( )
inline

Definition at line 44 of file view_controls.h.

References Reset().

Member Function Documentation

◆ Reset()

Member Data Documentation

◆ m_autoPanAcceleration

float KIGFX::VC_SETTINGS::m_autoPanAcceleration

How fast does panning accelerate when approaching the window boundary.

Definition at line 86 of file view_controls.h.

Referenced by EDA_DRAW_PANEL_GAL::GetVcSettings(), KIGFX::WX_VIEW_CONTROLS::LoadSettings(), KIGFX::WX_VIEW_CONTROLS::onTimer(), and Reset().

◆ m_autoPanEnabled

bool KIGFX::VC_SETTINGS::m_autoPanEnabled

Flag for turning on autopanning.

Definition at line 74 of file view_controls.h.

Referenced by KIGFX::VIEW_CONTROLS::ApplySettings(), KIGFX::WX_VIEW_CONTROLS::onMotion(), KIGFX::WX_VIEW_CONTROLS::onTimer(), and Reset().

◆ m_autoPanMargin

float KIGFX::VC_SETTINGS::m_autoPanMargin

◆ m_autoPanSettingEnabled

bool KIGFX::VC_SETTINGS::m_autoPanSettingEnabled

Flag for turning on autopanning.

Definition at line 77 of file view_controls.h.

Referenced by EDA_DRAW_PANEL_GAL::GetVcSettings(), KIGFX::WX_VIEW_CONTROLS::LoadSettings(), KIGFX::WX_VIEW_CONTROLS::onMotion(), and Reset().

◆ m_autoPanSpeed

float KIGFX::VC_SETTINGS::m_autoPanSpeed

How fast is panning when in auto mode.

Definition at line 83 of file view_controls.h.

Referenced by KIGFX::VIEW_CONTROLS::ApplySettings(), and Reset().

◆ m_cursorCaptured

bool KIGFX::VC_SETTINGS::m_cursorCaptured

◆ m_dragLeft

MOUSE_DRAG_ACTION KIGFX::VC_SETTINGS::m_dragLeft

◆ m_dragMiddle

◆ m_dragRight

◆ m_focusFollowSchPcb

bool KIGFX::VC_SETTINGS::m_focusFollowSchPcb

Flag for automatic focus switching between Schematic and PCB editors.

Definition at line 71 of file view_controls.h.

Referenced by EDA_DRAW_PANEL_GAL::GetVcSettings(), KIGFX::WX_VIEW_CONTROLS::LoadSettings(), KIGFX::WX_VIEW_CONTROLS::onMotion(), and Reset().

◆ m_forceCursorPosition

◆ m_forcedPosition

◆ m_grabMouse

bool KIGFX::VC_SETTINGS::m_grabMouse

Flag for grabbing the mouse cursor.

Definition at line 68 of file view_controls.h.

Referenced by KIGFX::VIEW_CONTROLS::ApplySettings(), and Reset().

◆ m_horizontalPan

bool KIGFX::VC_SETTINGS::m_horizontalPan

Enable horizontal panning with the horizontal scroll/trackpad input.

Definition at line 92 of file view_controls.h.

Referenced by EDA_DRAW_PANEL_GAL::GetVcSettings(), KIGFX::WX_VIEW_CONTROLS::LoadSettings(), KIGFX::WX_VIEW_CONTROLS::onWheel(), and Reset().

◆ m_lastKeyboardCursorCommand

long KIGFX::VC_SETTINGS::m_lastKeyboardCursorCommand

◆ m_lastKeyboardCursorPosition

VECTOR2D KIGFX::VC_SETTINGS::m_lastKeyboardCursorPosition

◆ m_lastKeyboardCursorPositionValid

bool KIGFX::VC_SETTINGS::m_lastKeyboardCursorPositionValid

Is last cursor motion event coming from keyboard arrow cursor motion action.

Definition at line 117 of file view_controls.h.

Referenced by EDIT_TOOL::doMoveSelection(), KIGFX::WX_VIEW_CONTROLS::handleAutoPanning(), Reset(), KIGFX::WX_VIEW_CONTROLS::SetCursorPosition(), and KIGFX::WX_VIEW_CONTROLS::WX_VIEW_CONTROLS().

◆ m_scrollModifierPanH

int KIGFX::VC_SETTINGS::m_scrollModifierPanH

What modifier key to enable horizontal pan with the (vertical) scroll wheel.

Definition at line 107 of file view_controls.h.

Referenced by EDA_DRAW_PANEL_GAL::GetVcSettings(), KIGFX::WX_VIEW_CONTROLS::LoadSettings(), HIDPI_GL_3D_CANVAS::OnMouseWheelCamera(), KIGFX::WX_VIEW_CONTROLS::onWheel(), and Reset().

◆ m_scrollModifierPanV

int KIGFX::VC_SETTINGS::m_scrollModifierPanV

What modifier key to enable vertical with the (vertical) scroll wheel.

Definition at line 110 of file view_controls.h.

Referenced by EDA_DRAW_PANEL_GAL::GetVcSettings(), KIGFX::WX_VIEW_CONTROLS::LoadSettings(), HIDPI_GL_3D_CANVAS::OnMouseWheelCamera(), and Reset().

◆ m_scrollModifierZoom

int KIGFX::VC_SETTINGS::m_scrollModifierZoom

What modifier key to enable zoom with the (vertical) scroll wheel.

Definition at line 104 of file view_controls.h.

Referenced by EDA_DRAW_PANEL_GAL::GetVcSettings(), KIGFX::WX_VIEW_CONTROLS::LoadSettings(), HIDPI_GL_3D_CANVAS::OnMouseWheelCamera(), KIGFX::WX_VIEW_CONTROLS::onWheel(), and Reset().

◆ m_scrollReversePanH

bool KIGFX::VC_SETTINGS::m_scrollReversePanH

Whether to invert the scroll wheel movement for horizontal pan.

Definition at line 130 of file view_controls.h.

Referenced by EDA_DRAW_PANEL_GAL::GetVcSettings(), KIGFX::WX_VIEW_CONTROLS::LoadSettings(), HIDPI_GL_3D_CANVAS::OnMouseWheelCamera(), KIGFX::WX_VIEW_CONTROLS::onWheel(), and Reset().

◆ m_scrollReverseZoom

bool KIGFX::VC_SETTINGS::m_scrollReverseZoom

◆ m_showCursor

bool KIGFX::VC_SETTINGS::m_showCursor

Flag determining the cursor visibility.

Definition at line 53 of file view_controls.h.

Referenced by KIGFX::VIEW_CONTROLS::ApplySettings(), KIGFX::VIEW_CONTROLS::IsCursorShown(), Reset(), and KIGFX::VIEW_CONTROLS::ShowCursor().

◆ m_snappingEnabled

bool KIGFX::VC_SETTINGS::m_snappingEnabled

Should the cursor snap to grid or move freely.

Definition at line 65 of file view_controls.h.

Referenced by Reset().

◆ m_warpCursor

bool KIGFX::VC_SETTINGS::m_warpCursor

If the cursor is allowed to be warped.

Definition at line 89 of file view_controls.h.

Referenced by EDA_DRAW_PANEL_GAL::GetVcSettings(), KIGFX::WX_VIEW_CONTROLS::LoadSettings(), and Reset().

◆ m_zoomAcceleration

bool KIGFX::VC_SETTINGS::m_zoomAcceleration

Enable the accelerating zoom controller.

Definition at line 95 of file view_controls.h.

Referenced by EDA_DRAW_PANEL_GAL::GetVcSettings(), KIGFX::WX_VIEW_CONTROLS::LoadSettings(), and Reset().

◆ m_zoomSpeed

int KIGFX::VC_SETTINGS::m_zoomSpeed

Zoom speed for the non-accelerating zoom controller.

Definition at line 98 of file view_controls.h.

Referenced by EDA_DRAW_PANEL_GAL::GetVcSettings(), KIGFX::WX_VIEW_CONTROLS::LoadSettings(), KIGFX::WX_VIEW_CONTROLS::onMotion(), and Reset().

◆ m_zoomSpeedAuto

bool KIGFX::VC_SETTINGS::m_zoomSpeedAuto

When true, ignore zoom_speed and pick a platform-specific default.

Definition at line 101 of file view_controls.h.

Referenced by EDA_DRAW_PANEL_GAL::GetVcSettings(), KIGFX::WX_VIEW_CONTROLS::LoadSettings(), and Reset().


The documentation for this struct was generated from the following files: