* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ * along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef PULSEVIEW_PV_VIEW_ROWITEMPAINTPARAMS_HPP
-#define PULSEVIEW_PV_VIEW_ROWITEMPAINTPARAMS_HPP
+#ifndef PULSEVIEW_PV_VIEWS_TRACEVIEW_VIEWITEMPAINTPARAMS_HPP
+#define PULSEVIEW_PV_VIEWS_TRACEVIEW_VIEWITEMPAINTPARAMS_HPP
#include "pv/util.hpp"
#include <QFont>
+#include <QRect>
namespace pv {
-namespace view {
+namespace views {
+namespace TraceView {
class ViewItemPaintParams
{
return (offset_ / scale_).convert_to<double>();
}
+ bool next_bg_colour_state() {
+ const bool state = bg_colour_state_;
+ bg_colour_state_ = !bg_colour_state_;
+ return state;
+ }
+
public:
static QFont font();
QRect rect_;
double scale_;
pv::util::Timestamp offset_;
+ bool bg_colour_state_;
};
-} // namespace view
+} // namespace TraceView
+} // namespace views
} // namespace pv
-#endif // PULSEVIEW_PV_VIEW_ROWITEMPAINTPARAMS_HPP
+#endif // PULSEVIEW_PV_VIEWS_TRACEVIEW_VIEWITEMPAINTPARAMS_HPP