Public Member Functions | Public Attributes | List of all members
color_widgets::Swatch::Private Class Reference

Public Member Functions

QSizeF actualColorSize ()
 Actual size of a color square. More...
 
QSizeF actualColorSize (const QSize &rowcols)
 Actual size of a color square. More...
 
void clearDrop ()
 Clears drop properties. More...
 
void dropEvent (QDropEvent *event)
 Sets the drop properties. More...
 
QRectF indexRect (int index, const QSize &rowcols, const QSizeF &color_size)
 Rectangle corresponding to the color at the given index. More...
 
QRectF indexRect (int index)
 Rectangle corresponding to the color at the given index. More...
 
 Private (Swatch *owner)
 
QSize rowcols ()
 Number of rows/columns in the palette. More...
 

Public Attributes

QPen border
 
QSize color_size
 Preferred size for the color squares. More...
 
int drag_index
 Index used by drags. More...
 
QPoint drag_pos
 Point used to keep track of dragging. More...
 
QColor drop_color
 Dropped color. More...
 
int drop_index
 Index for a requested drop. More...
 
bool drop_overwrite
 Whether the drop will overwrite an existing color. More...
 
int forced_columns
 
int forced_rows
 
Swatchowner
 
ColorPalette palette
 Palette with colors and related metadata. More...
 
bool readonly
 Whether the palette can be modified via user interaction. More...
 
int selected
 Current selection index (-1 for no selection) More...
 
ColorSizePolicy size_policy
 

Detailed Description

Definition at line 38 of file swatch.cpp.

Constructor & Destructor Documentation

color_widgets::Swatch::Private::Private ( Swatch owner)
inline

Definition at line 58 of file swatch.cpp.

Member Function Documentation

QSizeF color_widgets::Swatch::Private::actualColorSize ( )
inline

Actual size of a color square.

Definition at line 162 of file swatch.cpp.

QSizeF color_widgets::Swatch::Private::actualColorSize ( const QSize &  rowcols)
inline

Actual size of a color square.

Precondition
rowcols.isValid() and obtained via rowcols()

Definition at line 174 of file swatch.cpp.

void color_widgets::Swatch::Private::clearDrop ( )
inline

Clears drop properties.

Definition at line 150 of file swatch.cpp.

void color_widgets::Swatch::Private::dropEvent ( QDropEvent *  event)
inline

Sets the drop properties.

Definition at line 99 of file swatch.cpp.

QRectF color_widgets::Swatch::Private::indexRect ( int  index,
const QSize &  rowcols,
const QSizeF &  color_size 
)
inline

Rectangle corresponding to the color at the given index.

Precondition
rowcols.isValid() and obtained via rowcols()
color_size obtained via rowlcols(rowcols)

Definition at line 186 of file swatch.cpp.

QRectF color_widgets::Swatch::Private::indexRect ( int  index)
inline

Rectangle corresponding to the color at the given index.

Definition at line 201 of file swatch.cpp.

QSize color_widgets::Swatch::Private::rowcols ( )
inline

Number of rows/columns in the palette.

Definition at line 75 of file swatch.cpp.

Member Data Documentation

QPen color_widgets::Swatch::Private::border

Definition at line 45 of file swatch.cpp.

QSize color_widgets::Swatch::Private::color_size

Preferred size for the color squares.

Definition at line 43 of file swatch.cpp.

int color_widgets::Swatch::Private::drag_index

Index used by drags.

Definition at line 51 of file swatch.cpp.

QPoint color_widgets::Swatch::Private::drag_pos

Point used to keep track of dragging.

Definition at line 50 of file swatch.cpp.

QColor color_widgets::Swatch::Private::drop_color

Dropped color.

Definition at line 53 of file swatch.cpp.

int color_widgets::Swatch::Private::drop_index

Index for a requested drop.

Definition at line 52 of file swatch.cpp.

bool color_widgets::Swatch::Private::drop_overwrite

Whether the drop will overwrite an existing color.

Definition at line 54 of file swatch.cpp.

int color_widgets::Swatch::Private::forced_columns

Definition at line 47 of file swatch.cpp.

int color_widgets::Swatch::Private::forced_rows

Definition at line 46 of file swatch.cpp.

Swatch* color_widgets::Swatch::Private::owner

Definition at line 56 of file swatch.cpp.

ColorPalette color_widgets::Swatch::Private::palette

Palette with colors and related metadata.

Definition at line 41 of file swatch.cpp.

bool color_widgets::Swatch::Private::readonly

Whether the palette can be modified via user interaction.

Definition at line 48 of file swatch.cpp.

int color_widgets::Swatch::Private::selected

Current selection index (-1 for no selection)

Definition at line 42 of file swatch.cpp.

ColorSizePolicy color_widgets::Swatch::Private::size_policy

Definition at line 44 of file swatch.cpp.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Dec 6 2020 04:02:51