KiCad PCB EDA Suite
sim_plot_colors.cpp File Reference
#include "sim_plot_colors.h"
#include "sim_plot_panel.h"
#include <wx/stc/stc.h>

Go to the source code of this file.

Functions

bool operator< (SIM_PLOT_COLORS::COLOR_SET &x, SIM_PLOT_COLORS::COLOR_SET &y)
 
bool operator>= (SIM_PLOT_COLORS::COLOR_SET &x, SIM_PLOT_COLORS::COLOR_SET &y)
 
bool operator< (SIM_PLOT_COLORS::COLOR_SET &x, int y)
 
bool operator>= (SIM_PLOT_COLORS::COLOR_SET &x, int y)
 
SIM_PLOT_COLORS::COLOR_SET operator+ (SIM_PLOT_COLORS::COLOR_SET x, SIM_PLOT_COLORS::COLOR_SET y)
 
SIM_PLOT_COLORS::COLOR_SET operator- (SIM_PLOT_COLORS::COLOR_SET x, SIM_PLOT_COLORS::COLOR_SET y)
 
SIM_PLOT_COLORS::COLOR_SET operator% (int x, SIM_PLOT_COLORS::COLOR_SET y)
 
SIM_PLOT_COLORS::COLOR_SEToperator++ (SIM_PLOT_COLORS::COLOR_SET &x)
 

Function Documentation

◆ operator%()

SIM_PLOT_COLORS::COLOR_SET operator% ( int  x,
SIM_PLOT_COLORS::COLOR_SET  y 
)
inline

Definition at line 72 of file sim_plot_colors.cpp.

73{
74 return static_cast<SIM_PLOT_COLORS::COLOR_SET>( x % static_cast<int>( y ) );
75}

◆ operator+()

Definition at line 58 of file sim_plot_colors.cpp.

60{
61 return static_cast<SIM_PLOT_COLORS::COLOR_SET>( static_cast<int>( x ) + static_cast<int>( y ) );
62}

◆ operator++()

Definition at line 78 of file sim_plot_colors.cpp.

79{
80 x = static_cast<SIM_PLOT_COLORS::COLOR_SET>( (int) x + 1 );
81 return x;
82}

◆ operator-()

Definition at line 65 of file sim_plot_colors.cpp.

67{
68 return static_cast<SIM_PLOT_COLORS::COLOR_SET>( static_cast<int>( x ) - static_cast<int>( y ) );
69}

◆ operator<() [1/2]

bool operator< ( SIM_PLOT_COLORS::COLOR_SET x,
int  y 
)
inline

Definition at line 46 of file sim_plot_colors.cpp.

47{
48 return static_cast<int>( x ) < y;
49}

◆ operator<() [2/2]

bool operator< ( SIM_PLOT_COLORS::COLOR_SET x,
SIM_PLOT_COLORS::COLOR_SET y 
)
inline

Definition at line 34 of file sim_plot_colors.cpp.

35{
36 return static_cast<int>( x ) < static_cast<int>( y );
37}

◆ operator>=() [1/2]

bool operator>= ( SIM_PLOT_COLORS::COLOR_SET x,
int  y 
)
inline

Definition at line 52 of file sim_plot_colors.cpp.

53{
54 return static_cast<int>( x ) >= y;
55}

◆ operator>=() [2/2]

bool operator>= ( SIM_PLOT_COLORS::COLOR_SET x,
SIM_PLOT_COLORS::COLOR_SET y 
)
inline

Definition at line 40 of file sim_plot_colors.cpp.

41{
42 return static_cast<int>( x ) >= static_cast<int>( y );
43}