.. module:: mocha.project .. _ViewInfo: ViewInfo ******** .. inheritance-diagram:: ViewInfo :parts: 2 Synopsis -------- Functions ^^^^^^^^^ .. container:: function_list * def :meth:`__eq__` (rhs) * def :meth:`__repr__` () * def :meth:`set_color` (color) Properties ^^^^^^^^^^ .. container:: property_list * property :attr:`abbr` [read-write] of str * property :attr:`color` [read-write] of 3-items tuple of float values in range [0.0...1.0] * property :attr:`name` [read-write] of str Detailed Description -------------------- Class representing common view information (name, abbreviation, color). .. class:: ViewInfo() .. class:: ViewInfo(name, abbr[, color=Color()]) :type name: unicode :type abbr: unicode :type color: :class:`mocha.project.Color` :param name: New view name. :param abbr: View name abbreviation (shows on mocha toolbar). :param color: 3-items tuple of floats in range [0.0...1.0] representing RGB. Constructs new view info instance with given name, abbreviation and col .. class:: ViewInfo(ViewInfo) :type ViewInfo: :class:`mocha.project.ViewInfo` :type ViewInfo: :class:`mocha.project.ViewInfo` :type abbr: unicode :type color: :class:`mocha.project.Color` :type name: unicode .. method:: ViewInfo.__repr__() :rtype: unicode .. method:: ViewInfo.__eq__(rhs) :type rhs: :class:`mocha.project.ViewInfo` :rtype: :class:`PySide2.QtCore.bool` .. method:: ViewInfo.set_color(color) :type color: :class:`mocha.project.Color` .. attribute:: ViewInfo.name :type: str :access: read-write Provides access to view name. .. attribute:: ViewInfo.abbr :type: str :access: read-write Provides access to view abbreviation (shows on mocha toolbar). .. attribute:: ViewInfo.color :type: 3-items tuple of float values in range [0.0...1.0] :access: read-write Provides access to view RGB color.