Package qubx :: Module fit_space :: Class SubLayer_SmoothZoom
[hide private]
[frames] | no frames]

Class SubLayer_SmoothZoom

source code

          object --+        
                   |        
  toolspace.SubLayer --+    
                       |    
toolspace.SubLayer_Label --+
                           |
                          SubLayer_SmoothZoom

Instance Methods [hide private]
 
__init__(self, symbol='+', zoom_out=False, **kw)
See also: SubLayer.__init__
source code
 
button_press(self, x, y, e)
Override this method to handle mouse-down (by default, click: action(x,y,e)).
source code
 
button_release(self, x, y, e)
Override this method to handle mouse-up (by default, click: action(x,y,e)).
source code
 
remove_timer(self) source code
 
__mouse_drag(self, x, y, e) source code
 
__do_zoom(self) source code

Inherited from toolspace.SubLayer_Label: draw, set_color, set_if_color, set_label, set_rotate

Inherited from toolspace.SubLayer: invalidate, pt_in_rect, set_actual_x, set_actual_y, set_h, set_layer, set_tooltip, set_w, set_x, set_y

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

Instance Variables [hide private]

Inherited from toolspace.SubLayer_Label: color, hover_color, label

Inherited from toolspace.SubLayer: OnChangeTooltip, OnHideTooltip, OnInvalidate, action, border, cBorder, enter, exit, h, invalid, mouse_drag, mouse_move, rq_h, rq_w, scroll, w, x, y

Properties [hide private]

Inherited from toolspace.SubLayer_Label: rotate

Inherited from toolspace.SubLayer: layer, tooltip

Inherited from object: __class__

Method Details [hide private]

__init__(self, symbol='+', zoom_out=False, **kw)
(Constructor)

source code 

See also: SubLayer.__init__

Parameters:
  • label - a string
  • justify - negative: left-justify; zero: center; positive: right-justify
  • vcenter - True/nonzero to center vertically
  • color - COLORREF for text
  • hover_color - COLORREF for mouse-over text
Overrides: object.__init__
(inherited documentation)

button_press(self, x, y, e)

source code 

Override this method to handle mouse-down (by default, click: action(x,y,e)).

Overrides: toolspace.SubLayer.button_press
(inherited documentation)

button_release(self, x, y, e)

source code 

Override this method to handle mouse-up (by default, click: action(x,y,e)).

Overrides: toolspace.SubLayer.button_release
(inherited documentation)