A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
grid.GtkGraphicRenderer Class Reference

GtkGraphicRenderer class. More...

+ Inheritance diagram for grid.GtkGraphicRenderer:
+ Collaboration diagram for grid.GtkGraphicRenderer:

Public Member Functions

 __init__ (self, data)
 Initializer.
 
 button_press (self, widget, event)
 Button Press.
 
 button_release (self, widget, event)
 Button Release.
 
 expose (self, widget, event)
 Expose.
 
 motion_notify (self, widget, event)
 Motion Notify.
 
 output_png (self, filename)
 Output PNG.
 
 set_bigger_zoom (self)
 Set Bigger Zoom.
 
 set_smaller_zoom (self)
 Set Smaller Zoom.
 
 size_allocate (self, widget, allocation)
 Size Allocate.
 

Public Attributes

 button_press
 button_press function
 
 button_release
 button_release function
 
 expose
 expose function
 
 motion_notify
 motion_notify function
 
 size_allocate
 size_allocate function
 

Private Attributes

 __buffer_surface
 __buffer_surface
 
 __data
 data
 
 __force_full_redraw
 full redraw
 
 __height
 height
 
 __moving_both
 moving both
 
 __moving_both_cur
 moving both cur
 
 __moving_both_start
 moving both start
 
 __moving_left
 moving left
 
 __moving_left_cur
 moving left cur
 
 __moving_right
 moving right
 
 __moving_right_cur
 moving right cur
 
 __moving_top
 moving top
 
 __moving_top_cur
 moving top cur
 
 __moving_top_start
 moving top start
 
 __width
 width
 

Detailed Description

GtkGraphicRenderer class.

Definition at line 1361 of file grid.py.

Constructor & Destructor Documentation

◆ __init__()

grid.GtkGraphicRenderer.__init__ ( self,
data )

Initializer.

Parameters
selfthis object
datadata

Definition at line 1402 of file grid.py.

References grid.GtkGraphicRenderer.__init__().

Referenced by grid.GtkGraphicRenderer.__init__().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Function Documentation

◆ button_press()

grid.GtkGraphicRenderer.button_press ( self,
widget,
event )

Button Press.

Parameters
selfthis object
widgetwidget
eventevent
Returns
true if button has been pressed otherwise false

Definition at line 1456 of file grid.py.

References grid.GraphicRenderer.__data, grid.GtkGraphicRenderer.__data, grid.GtkGraphicRenderer.__moving_both, grid.GtkGraphicRenderer.__moving_left, and grid.GtkGraphicRenderer.__moving_right.

◆ button_release()

◆ expose()

grid.GtkGraphicRenderer.expose ( self,
widget,
event )

Expose.

Parameters
selfthis object
widgetwidget
eventevent
Returns
false

Definition at line 1594 of file grid.py.

References grid.GtkGraphicRenderer.__force_full_redraw.

◆ motion_notify()

grid.GtkGraphicRenderer.motion_notify ( self,
widget,
event )

Motion Notify.

Parameters
selfthis object
widgetwidget
eventevent
Returns
true if moving otherwise false

Definition at line 1520 of file grid.py.

References grid.GraphicRenderer.__data, grid.GtkGraphicRenderer.__data, and grid.GtkGraphicRenderer.__moving_left.

◆ output_png()

grid.GtkGraphicRenderer.output_png ( self,
filename )

Output PNG.

Parameters
selfthis object
filenamefile name
Returns
none

Definition at line 1443 of file grid.py.

References grid.GtkGraphicRenderer.__buffer_surface, grid.GraphicRenderer.__data, and grid.GtkGraphicRenderer.__data.

◆ set_bigger_zoom()

grid.GtkGraphicRenderer.set_bigger_zoom ( self)

Set Bigger Zoom.

Parameters
selfthis object
Returns
none

Definition at line 1433 of file grid.py.

References grid.GraphicRenderer.__data, grid.GtkGraphicRenderer.__data, and grid.GtkGraphicRenderer.__force_full_redraw.

◆ set_smaller_zoom()

grid.GtkGraphicRenderer.set_smaller_zoom ( self)

Set Smaller Zoom.

Parameters
selfthis object
Returns
none

Definition at line 1423 of file grid.py.

References grid.GraphicRenderer.__data, grid.GtkGraphicRenderer.__data, and grid.GtkGraphicRenderer.__force_full_redraw.

◆ size_allocate()

grid.GtkGraphicRenderer.size_allocate ( self,
widget,
allocation )

Size Allocate.

Parameters
selfthis object
widgetwidget
allocationallocation
Returns
none

Definition at line 1581 of file grid.py.

References grid.GraphicRenderer.__width, grid.GtkGraphicRenderer.__width, grid.ScaleRenderer.__width, and grid.TopLegendRenderer.__width.

Member Data Documentation

◆ __buffer_surface

grid.GtkGraphicRenderer.__buffer_surface
private

__buffer_surface

Definition at line 1602 of file grid.py.

Referenced by grid.GtkGraphicRenderer.output_png().

◆ __data

◆ __force_full_redraw

grid.GtkGraphicRenderer.__force_full_redraw
private

◆ __height

◆ __moving_both

grid.GtkGraphicRenderer.__moving_both
private

moving both

Definition at line 1411 of file grid.py.

Referenced by grid.GtkGraphicRenderer.button_press(), and grid.GtkGraphicRenderer.button_release().

◆ __moving_both_cur

grid.GtkGraphicRenderer.__moving_both_cur
private

moving both cur

Definition at line 1475 of file grid.py.

Referenced by grid.GtkGraphicRenderer.button_release().

◆ __moving_both_start

grid.GtkGraphicRenderer.__moving_both_start
private

moving both start

Definition at line 1474 of file grid.py.

Referenced by grid.GtkGraphicRenderer.button_release().

◆ __moving_left

grid.GtkGraphicRenderer.__moving_left
private

◆ __moving_left_cur

grid.GtkGraphicRenderer.__moving_left_cur
private

moving left cur

Definition at line 1530 of file grid.py.

Referenced by grid.GtkGraphicRenderer.button_release().

◆ __moving_right

grid.GtkGraphicRenderer.__moving_right
private

moving right

Definition at line 1410 of file grid.py.

Referenced by grid.GtkGraphicRenderer.button_press(), and grid.GtkGraphicRenderer.button_release().

◆ __moving_right_cur

grid.GtkGraphicRenderer.__moving_right_cur
private

moving right cur

Definition at line 1541 of file grid.py.

Referenced by grid.GtkGraphicRenderer.button_release().

◆ __moving_top

grid.GtkGraphicRenderer.__moving_top
private

moving top

Definition at line 1412 of file grid.py.

Referenced by grid.GtkGraphicRenderer.button_release().

◆ __moving_top_cur

grid.GtkGraphicRenderer.__moving_top_cur
private

moving top cur

Definition at line 1481 of file grid.py.

◆ __moving_top_start

grid.GtkGraphicRenderer.__moving_top_start
private

moving top start

Definition at line 1480 of file grid.py.

◆ __width

◆ button_press

grid.GtkGraphicRenderer.button_press

button_press function

Definition at line 1420 of file grid.py.

◆ button_release

grid.GtkGraphicRenderer.button_release

button_release function

Definition at line 1421 of file grid.py.

◆ expose

grid.GtkGraphicRenderer.expose

expose function

Definition at line 1417 of file grid.py.

◆ motion_notify

grid.GtkGraphicRenderer.motion_notify

motion_notify function

Definition at line 1419 of file grid.py.

◆ size_allocate

grid.GtkGraphicRenderer.size_allocate

size_allocate function

Definition at line 1418 of file grid.py.


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