qubx :: dataGTK :: SubLayer_DisplayMenu :: Class SubLayer_DisplayMenu
[hide private]
[frames] | no frames]

Class SubLayer_DisplayMenu

source code

         object --+        
                  |        
 toolspace.SubLayer --+    
                      |    
toolspace.SubLayer_Icon --+
                          |
                         SubLayer_DisplayMenu

Display menu.

Instance Methods [hide private]
 
__action(self, x, y, e) source code
 
__init__(self, *args, **kw)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__onClickAddPreset(self, item) source code
 
__onClickAutoScale(self, item) source code
 
__onClickColorIdealized(self, item) source code
 
__onClickColors(self, item) source code
 
__onClickGaussIntensity(self, item) source code
 
__onClickGrid(self, item) source code
 
__onClickHideHidden(self, item) source code
 
__onClickManagePresets(self, item) source code
 
__onClickMultiLine(self, item) source code
 
__onClickPreset(self, item, name) source code
 
do_popup(self, x, y, e) source code
 
draw(self, cr, w, h, appearance)
Override this method to paint the SubLayer.
source code
 
on_popup(self) source code

Inherited from toolspace.SubLayer: button_press, button_release, 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 toolspace.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 toolspace.SubLayer: layer, tooltip

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args, **kw)
(Constructor)

source code 

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

Parameters:
  • x - number of 'M' widths from the Layer's left edge
  • y - number of 'M' widths from the Layer's top edge
  • w - w >= 0: number of 'M' widths across; w < 0: number of 'M's between SubLayer's right and Layer's right
  • h - h >= 0: number of 'M' widths tall; h < 0: number of 'M's between SubLayer's bottom and Layer's bottom
  • action - when clicked, calls action(x, y, event)
  • scroll - when mouse-scroll-wheeled upon, calls scroll(x, y, event, offset)
  • mouse_move - when the mouse moves over it, calls mouse_move(x, y, event)
  • mouse_drag - when the mouse moves with the button down, calls mouse_drag(x, y, event)
  • enter - when the mouse enters, calls mouse_enter(x, y, event)
  • exit - when the mouse leaves, calls mouse_exit()
  • border - width in pixels of border
  • cBorder - COLORREF of border
  • cBG - COLORREF of background, or None for transparent
  • tooltip - mouse-over info
Overrides: object.__init__
(inherited documentation)

draw(self, cr, w, h, appearance)

source code 

Override this method to paint the SubLayer. Don't forget to call SubLayer.draw(context, w, h, appearance).

Overrides: toolspace.SubLayer.draw
(inherited documentation)