A Discrete-Event Network Simulator
API
visualizer.svgitem.SvgItem Class Reference

SvgItem class. More...

+ Inheritance diagram for visualizer.svgitem.SvgItem:
+ Collaboration diagram for visualizer.svgitem.SvgItem:

Public Member Functions

def __init__ (self, x, y, rsvg_handle, **kwargs)
 Initializer. More...
 
def do_get_property (self, pspec)
 Get Property. More...
 
def do_set_property (self, pspec, value)
 Set Property. More...
 
def do_simple_is_item_at (self, x, y, cr, is_pointer_event)
 Simple Is Item At function. More...
 
def do_simple_paint (self, cr, bounds)
 Simple Paint function. More...
 
def do_simple_update (self, cr)
 Simple Update function. More...
 

Public Attributes

 bounds_x1
 minimum x More...
 
 bounds_x2
 maximum x More...
 
 bounds_y1
 minimum y More...
 
 bounds_y2
 maximum y More...
 
 custom_height
 custom height More...
 
 custom_width
 custom width More...
 
 handle
 handle More...
 
 height
 height More...
 
 sx
 x step More...
 
 sy
 y step More...
 
 width
 width More...
 
 x
 x More...
 
 y
 y More...
 

Private Member Functions

def _size_changed (self)
 Size Changed function. More...
 

Static Private Attributes

dictionary __gproperties__
 setup our custom properties More...
 

Detailed Description

SvgItem class.

Definition at line 9 of file svgitem.py.

Constructor & Destructor Documentation

◆ __init__()

def visualizer.svgitem.SvgItem.__init__ (   self,
  x,
  y,
  rsvg_handle,
**  kwargs 
)

Initializer.

Parameters
selfthis object
xThe x coordinate of a SVG image
yThe y coordinate of a SVG image
rsvg_handleSVG handle
kwargskey-value arguments

Definition at line 77 of file svgitem.py.

Member Function Documentation

◆ _size_changed()

◆ do_get_property()

◆ do_set_property()

◆ do_simple_is_item_at()

◆ do_simple_paint()

◆ do_simple_update()

def visualizer.svgitem.SvgItem.do_simple_update (   self,
  cr 
)

Simple Update function.

Parameters
selfthis object
crrendered
Returns
none

Definition at line 199 of file svgitem.py.

Member Data Documentation

◆ __gproperties__

dictionary visualizer.svgitem.SvgItem.__gproperties__
staticprivate

setup our custom properties

Definition at line 38 of file svgitem.py.

◆ bounds_x1

visualizer.svgitem.SvgItem.bounds_x1

minimum x

Definition at line 206 of file svgitem.py.

◆ bounds_x2

visualizer.svgitem.SvgItem.bounds_x2

maximum x

Definition at line 208 of file svgitem.py.

◆ bounds_y1

visualizer.svgitem.SvgItem.bounds_y1

minimum y

Definition at line 207 of file svgitem.py.

◆ bounds_y2

visualizer.svgitem.SvgItem.bounds_y2

maximum y

Definition at line 209 of file svgitem.py.

◆ custom_height

visualizer.svgitem.SvgItem.custom_height

custom height

Definition at line 96 of file svgitem.py.

Referenced by visualizer.svgitem.SvgItem._size_changed(), and visualizer.svgitem.SvgItem.do_set_property().

◆ custom_width

visualizer.svgitem.SvgItem.custom_width

custom width

Definition at line 95 of file svgitem.py.

Referenced by visualizer.svgitem.SvgItem._size_changed(), and visualizer.svgitem.SvgItem.do_set_property().

◆ handle

visualizer.svgitem.SvgItem.handle

◆ height

◆ sx

visualizer.svgitem.SvgItem.sx

◆ sy

visualizer.svgitem.SvgItem.sy

◆ width

◆ x

◆ y


The documentation for this class was generated from the following file: