package ocamlgraph_gtk

  1. Overview
  2. Docs

Module Graph_gtk.DGraphViewItemSource

View items for the different elements of a graph.

Shape

Sourcetype shape_p = [
  1. | `FILL_COLOR_RGBA of int32
  2. | `OUTLINE_COLOR_RGBA of int32
  3. | `WIDTH_UNITS of float
  4. | `DASH of float * float array
]

Shape properties

Sourceclass type textshape = object ... end
Sourceclass type shape = object ... end

Text

Sourceclass graph_text : GnomeCanvas.text Gtk.obj -> size_points:float -> props:GnomeCanvas.text_p list -> object ... end

Derived text class.

View items

Sourceclass type common_view = object ... end
Sourceclass 'a view_item : fill:bool -> delay:bool -> view:common_view -> pos:(float * float) -> ops_list: Graph.XDotDraw.operation list list -> item:'a -> object ... end

ViewItem class. Group of shapes and texts

Sourceexception Cannot_convert_color of string
Sourceval view_node : delay:bool -> view:common_view -> vertex:'vertex -> layout:Graph.XDot.node_layout -> unit -> 'vertex view_item
Sourceval view_edge : delay:bool -> view:common_view -> edge:'edge -> layout:Graph.XDot.edge_layout -> unit -> 'edge view_item
Sourceval view_cluster : delay:bool -> view:common_view -> cluster:'cluster -> layout:Graph.XDot.cluster_layout -> unit -> 'cluster view_item