QTimer * cursor_blink_timer_
Timer controlling the blinking animation of the custom cursor.
Definition cyber_line_edit.h:104
QSize sizeHint() const override
Returns the recommended size for the line edit. Enforces a minimum height of 30 pixels.
Definition cyber_line_edit.cpp:36
double glow_intensity_
Current intensity of the glow effect. Modified by animations on focus/hover.
Definition cyber_line_edit.h:102
void focusOutEvent(QFocusEvent *event) override
Overridden focus out event handler. Stops the cursor blink timer and animates the glow effect out.
Definition cyber_line_edit.cpp:165
CyberLineEdit(QWidget *parent=nullptr)
Constructs a CyberLineEdit. Initializes the widget with cyberpunk styling (border,...
Definition cyber_line_edit.cpp:8
QRect CyberCursorRect() const
Calculates the rectangle occupied by the custom cursor. Determines the cursor's position based on the...
Definition cyber_line_edit.cpp:47
bool cursor_visible_
Flag indicating whether the custom cursor is currently visible (part of the blink cycle).
Definition cyber_line_edit.h:106
void SetGlowIntensity(double intensity)
Sets the intensity of the glow effect. Triggers a repaint of the line edit.
Definition cyber_line_edit.cpp:42
void leaveEvent(QEvent *event) override
Overridden leave event handler. Animates the glow effect out if the widget doesn't have focus.
Definition cyber_line_edit.cpp:190
~CyberLineEdit() override
Destructor. Stops the cursor blink timer.
Definition cyber_line_edit.cpp:30
void keyPressEvent(QKeyEvent *event) override
Overridden key press event handler. Resets the cursor blink state and timer on key press.
Definition cyber_line_edit.cpp:201
double GetGlowIntensity() const
Gets the current intensity of the glow effect.
Definition cyber_line_edit.h:44
void paintEvent(QPaintEvent *event) override
Overridden paint event handler. Draws the custom line edit appearance. Renders the clipped background...
Definition cyber_line_edit.cpp:66
void enterEvent(QEvent *event) override
Overridden enter event handler. Animates the glow effect partially in if the widget doesn't have focu...
Definition cyber_line_edit.cpp:179
void focusInEvent(QFocusEvent *event) override
Overridden focus in event handler. Starts the cursor blink timer and animates the glow effect in.
Definition cyber_line_edit.cpp:149
double glowIntensity
Property controlling the intensity of the border glow effect (0.0 to 1.0). Animatable.
Definition cyber_line_edit.h:16