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

Class SubLayer_SmoothZoom

source code

object --+        
         |        
  SubLayer --+    
             |    
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 SubLayer_Label: draw, set_color, set_if_color, set_label, set_rotate

Inherited from SubLayer: invalidate, pt_in_rect, set_actual_x, set_actual_y, set_cBG, 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 SubLayer_Label: color, hover_color, label

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

Properties [hide private]

Inherited from SubLayer_Label: rotate

Inherited from 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: 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: SubLayer.button_release
(inherited documentation)