Wavelength
Privacy-focused, cross-platform, and open-source communication application
Loading...
Searching...
No Matches
CyberChatButton Class Referencefinal

A custom QPushButton styled with a simple cyberpunk aesthetic for chat input areas. More...

#include <cyber_chat_button.h>

Inheritance diagram for CyberChatButton:
Collaboration diagram for CyberChatButton:

Public Member Functions

 CyberChatButton (const QString &text, QWidget *parent=nullptr)
 Constructs a CyberChatButton. Initializes the button with the given text and sets the cursor to a pointing hand.
 

Protected Member Functions

void paintEvent (QPaintEvent *event) override
 Overridden paint event handler. Draws the custom cyberpunk button appearance. Renders the clipped background, neon border, and text, adjusting colors based on hover and press states (isDown(), underMouse()).
 

Detailed Description

A custom QPushButton styled with a simple cyberpunk aesthetic for chat input areas.

This button features a dark blue background, clipped corners, a neon blue border, and neon blue text. The background and border colors change slightly on hover and press. It's designed to be a visually distinct button, often used for sending messages.

Constructor & Destructor Documentation

◆ CyberChatButton()

CyberChatButton::CyberChatButton ( const QString & text,
QWidget * parent = nullptr )
explicit

Constructs a CyberChatButton. Initializes the button with the given text and sets the cursor to a pointing hand.

Parameters
textThe text to display on the button.
parentOptional parent widget.

Member Function Documentation

◆ paintEvent()

void CyberChatButton::paintEvent ( QPaintEvent * event)
overrideprotected

Overridden paint event handler. Draws the custom cyberpunk button appearance. Renders the clipped background, neon border, and text, adjusting colors based on hover and press states (isDown(), underMouse()).

Parameters
eventThe paint event.

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