Vuo
0.4.4
|
Provides colors for rendered items in a composition.
Public Member Functions | |
VuoRendererColors (VuoNode::TintColor tintColor=VuoNode::TintNone, bool isSelected=false, bool isHovered=false, bool isHighlighted=false) | |
Creates a new color scheme provider, optionally tinted with tintColor . | |
QColor | canvasFill (void) |
Returns the color for the background of the composition canvas. | |
QColor | nodeFill (void) |
Returns the color for the background of the main section of the node (the background of the area the port labels are drawn on). | |
QColor | nodeFrame (void) |
Returns the color for the node's outline and the background of its title bar. | |
QColor | nodeTitle (void) |
Returns the color for the node's title text in the node's title bar. | |
QColor | nodeClass (void) |
Returns the color for the node's class name text in the node's title bar. | |
QColor | portFill (void) |
Returns the color for the background of ports in the main section of the node. | |
QColor | portTitlebarFill (void) |
Returns the color for the background of ports in the titlebar of the node. | |
QColor | portTitle (void) |
Returns the color for the title text of ports in the main section of the node. | |
QColor | cableUpper (void) |
Returns the color for the highlight on the upper side of left-to-right cables (and lower side of right-to-left cables). | |
QColor | cableMain (void) |
Returns the color for the main cable body. | |
Static Public Member Functions | |
static VuoRendererColors * | getSharedColors (void) |
Returns a shared, untinted color scheme provider. | |
VuoRendererColors::VuoRendererColors | ( | VuoNode::TintColor | tintColor = VuoNode::TintNone , |
bool | isSelected = false , |
||
bool | isHovered = false , |
||
bool | isHighlighted = false |
||
) |
Creates a new color scheme provider, optionally tinted with tintColor
.
If isSelected
is true, the colors are also tinted dark blue to indicate selection. If isHovered
is true, the colors are also slightly tinted dark blue to indicate potential for selection. If isHighlighed
is true, the colors are also tinted with light blue (more easily visible at a distance) to indicate potential for cable connection.
QColor VuoRendererColors::canvasFill | ( | void | ) |
Returns the color for the background of the composition canvas.
Can be overridden by VuoRendererComposition::setBackgroundTransparent
.
|
static |
Returns a shared, untinted color scheme provider.
Don't free this object.
QColor VuoRendererColors::nodeFill | ( | void | ) |
Returns the color for the background of the main section of the node (the background of the area the port labels are drawn on).
Also used for the background of collapsed typecast ports.
QColor VuoRendererColors::nodeFrame | ( | void | ) |
Returns the color for the node's outline and the background of its title bar.
Also used for collapsed typecast port borders.
QColor VuoRendererColors::portTitle | ( | void | ) |
Returns the color for the title text of ports in the main section of the node.
Also used for constant value flag text.