qubx :: toolspace :: TS_Appearance :: Class TS_Appearance
[hide private]
[frames] | no frames]

Class TS_Appearance

source code

object --+
         |
        TS_Appearance

Holds color and font preferences.

Instance Methods [hide private]
 
__init__(self, font_size=11, font_bold=True, opengl=False, line_width=1.0)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
color(self, nm_def)
Returns (r,g,b,a) (in [0..1]) corresponding to COLORREF tuple nm_def, from user prefs.
source code
 
__onSetColor(self, color) source code
 
color_preset(self, name, default)
Initializes the named color with a new default, to override the one in its COLORREF tuple, as from saved preferences.
source code
 
setup_context(self, context)
Sets the font in a cairo drawing context.
source code
 
calc_font_spacing(self)
Returns (emsize, fheight) -- width of a capital M, and overall font height (advisory).
source code
 
set_font_size(self, pts, bold=None)
Changes the default font size and weight, and signals OnSetFontSize.
source code
 
set_opengl(self, opengl) source code
 
set_line_width(self, x) source code
 
set_hide_hidden_signals(self, x) source code
 
set_multi_line_data(self, x) source code
 
set_auto_scale_data(self, x) source code
 
set_color_idealized(self, x) source code
 
set_gauss_intensity(self, x) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Instance Variables [hide private]
  font_size
size in points of the default font
  font_bold
(bool) default font is bold?
  opengl
True if OpenGL is allowed
  line_width
multiplier, default=1.0
  hide_hidden_signals
False to show controls for all signals
  multi_line_data
True to add lines when lo-res data is expanded
  auto_scale_data
True to auto-scale data signals
  color_idealized
True to draw idealization with class colors
  gauss_intensity
True to draw fit curve with intensity gradient (otherwise +/- 1 std)
  OnAddColor
WeakEvent(name, (r,g,b,a)) when a color is looked up for the first time
  OnSetAutoScaleData
WeakEvent(bool)
  OnSetColor
WeakEvent(name, (r,g,b,a)) when a color is changed
  OnSetColorIdealized
WeakEvent(bool)
  OnSetFontSize
WeakEvent(font_size) when set_font_size() is called
  OnSetGaussIntensity
WeakEvent(bool)
  OnSetHideHiddenSignals
WeakEvent(bool)
  OnSetLineWidth
WeakEvent(line_width) when set_line_width() is called
  OnSetMultiLineData
WeakEvent(bool)
  OnSetOpenGL
WeakEvent(opengl) when set_opengl() is called
  color_by_name
dict: name -> TS_Color
  colordef_by_name
dict: name -> (r,g,b,a); values from color_preset() which haven't been requested by any components yet.
  colors
dict: name -> TS_Color
  emsize
width in pixels of a capital 'M'
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, font_size=11, font_bold=True, opengl=False, line_width=1.0)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

Instance Variable Details [hide private]

font_size

size in points of the default font
Get Method:
unreachable(self)
Set Method:
unreachable(self, x)

font_bold

(bool) default font is bold?
Get Method:
unreachable(self)
Set Method:
unreachable(self, x)

opengl

True if OpenGL is allowed
Get Method:
unreachable(self)
Set Method:
unreachable(self, x)

line_width

multiplier, default=1.0
Get Method:
unreachable(self)
Set Method:
unreachable(self, x)

hide_hidden_signals

False to show controls for all signals
Get Method:
unreachable(self)
Set Method:
unreachable(self, x)

multi_line_data

True to add lines when lo-res data is expanded
Get Method:
unreachable(self)
Set Method:
unreachable(self, x)

auto_scale_data

True to auto-scale data signals
Get Method:
unreachable(self)
Set Method:
unreachable(self, x)

color_idealized

True to draw idealization with class colors
Get Method:
unreachable(self)
Set Method:
unreachable(self, x)

gauss_intensity

True to draw fit curve with intensity gradient (otherwise +/- 1 std)
Get Method:
unreachable(self)
Set Method:
unreachable(self, x)