Guitar
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
RingSlider Class Referenceabstract

#include <RingSlider.h>

Inheritance diagram for RingSlider:
Inheritance graph
[legend]
Collaboration diagram for RingSlider:
Collaboration graph
[legend]

Public Member Functions

 RingSlider (QWidget *parent=nullptr)
 

Protected Member Functions

void updateGeometry ()
 
QSize sliderImageSize () const
 
void offset (int delta)
 
void resizeEvent (QResizeEvent *e) override
 
void keyPressEvent (QKeyEvent *e) override
 
void paintEvent (QPaintEvent *) override
 
void mousePressEvent (QMouseEvent *e) override
 
void mouseMoveEvent (QMouseEvent *e) override
 
void mouseDoubleClickEvent (QMouseEvent *e) override
 
void wheelEvent (QWheelEvent *e) override
 
virtual QImage generateSliderImage ()=0
 

Protected Attributes

int handle_size_ = 16
 
QRect slider_rect_
 
QRect handle_rect_
 
int mouse_press_value_
 
QPoint mouse_press_pos_
 
QImage slider_image_cache_
 

Constructor & Destructor Documentation

◆ RingSlider()

RingSlider::RingSlider ( QWidget *  parent = nullptr)
inlineexplicit

Member Function Documentation

◆ generateSliderImage()

virtual QImage RingSlider::generateSliderImage ( )
protectedpure virtual

Implemented in ColorSlider.

◆ keyPressEvent()

void RingSlider::keyPressEvent ( QKeyEvent *  e)
overrideprotected
Here is the call graph for this function:

◆ mouseDoubleClickEvent()

void RingSlider::mouseDoubleClickEvent ( QMouseEvent *  e)
overrideprotected

◆ mouseMoveEvent()

void RingSlider::mouseMoveEvent ( QMouseEvent *  e)
overrideprotected

◆ mousePressEvent()

void RingSlider::mousePressEvent ( QMouseEvent *  e)
overrideprotected
Here is the call graph for this function:

◆ offset()

void RingSlider::offset ( int  delta)
protected

◆ paintEvent()

void RingSlider::paintEvent ( QPaintEvent *  )
overrideprotected
Here is the call graph for this function:

◆ resizeEvent()

void RingSlider::resizeEvent ( QResizeEvent *  e)
overrideprotected
Here is the call graph for this function:

◆ sliderImageSize()

QSize RingSlider::sliderImageSize ( ) const
protected

◆ updateGeometry()

void RingSlider::updateGeometry ( )
protected

◆ wheelEvent()

void RingSlider::wheelEvent ( QWheelEvent *  e)
overrideprotected
Here is the call graph for this function:

Member Data Documentation

◆ handle_rect_

QRect RingSlider::handle_rect_
protected

◆ handle_size_

int RingSlider::handle_size_ = 16
protected

◆ mouse_press_pos_

QPoint RingSlider::mouse_press_pos_
protected

◆ mouse_press_value_

int RingSlider::mouse_press_value_
protected

◆ slider_image_cache_

QImage RingSlider::slider_image_cache_
protected

◆ slider_rect_

QRect RingSlider::slider_rect_
protected

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