Class: GOffice::GraphView
- Inherits:
-
Object
- Object
- GOffice::GraphView
- Defined in:
- (unknown)
Direct Known Subclasses
Instance Method Summary collapse
-
#find_child_view(target_model) ⇒ GOffice::GraphView
Find the GogView contained in container that corresponds to model.
- #get_natural_size(requisition) ⇒ nil
-
#get_tip_at_point(x, y) ⇒ String
Gets a tip string related to the position as defined by (x,y) in view.
-
#get_tool_at_point(x, y, gobj) ⇒ GOffice::GraphTool
Tool under cursor for a given view, or nil.
-
#get_view_at_point(x, y, obj, tool) ⇒ GOffice::GraphView
Gets view under cursor, searching recursively from view.
-
#model ⇒ GOffice::GraphObject
The Gog::Object owning the view.
-
#model=(model) ⇒ GOffice::GraphObject
Model.
- #padding_request(bbox, padding) ⇒ nil
-
#parent=(parent) ⇒ GOffice::GraphView
Parent.
-
#queue_redraw ⇒ nil
Requests a redraw for the entire graph.
-
#queue_resize ⇒ nil
Flags a view to have its size renegotiated; should be called when a model for some reason has a new size request.
- #render(bbox) ⇒ nil
-
#render_toolkit ⇒ nil
Render toolkit elements.
-
#size_allocate(allocation) ⇒ nil
Assign a size and position to a GogView.
-
#size_child_request(available, req, min_req) ⇒ nil
Computes additional requision in req which must be added to parent requisition, and minimum requisition in min_req which is minimum space for displaying all children.
-
#size_request(available, requisition) ⇒ nil
Determines the desired size of a view.
-
#toolkit ⇒ GLib::SList<GOffice::GraphTool>
Toolkit associated with given view.
-
#update_sizes ⇒ Boolean
True if a redraw is necessary.
Instance Method Details
#find_child_view(target_model) ⇒ GOffice::GraphView
Find the GogView contained in container that corresponds to model.
#get_natural_size(requisition) ⇒ nil
#get_tip_at_point(x, y) ⇒ String
Gets a tip string related to the position as defined by (x,y) in view. that or nil.
#get_tool_at_point(x, y, gobj) ⇒ GOffice::GraphTool
Returns tool under cursor for a given view, or nil.
#get_view_at_point(x, y, obj, tool) ⇒ GOffice::GraphView
Gets view under cursor, searching recursively from view. Corresponding object is stored in obj. This object may or may not be view->model of pointed view. This function also stores tool under cursor, for the pointed view.
#model ⇒ GOffice::GraphObject
Returns the Gog::Object owning the view.
#model=(model) ⇒ GOffice::GraphObject
Returns model.
#padding_request(bbox, padding) ⇒ nil
#parent=(parent) ⇒ GOffice::GraphView
Returns parent.
#queue_redraw ⇒ nil
Requests a redraw for the entire graph.
#queue_resize ⇒ nil
Flags a view to have its size renegotiated; should be called when a model for some reason has a new size request. For example, when you change the size of a legend.
#render(bbox) ⇒ nil
#render_toolkit ⇒ nil
Render toolkit elements.
#size_allocate(allocation) ⇒ nil
Assign a size and position to a GogView. Primarilly used by containers.
#size_child_request(available, req, min_req) ⇒ nil
Computes additional requision in req which must be added to parent requisition, and minimum requisition in min_req which is minimum space for displaying all children.
#size_request(available, requisition) ⇒ nil
Determines the desired size of a view.
Note, that the virtual method deviates slightly from this function. This function will zero requisition before calling the virtual method.
Remember that the size request is not necessarily the size a view will actually be allocated.
#toolkit ⇒ GLib::SList<GOffice::GraphTool>
Returns toolkit associated with given view.
#update_sizes ⇒ Boolean
Returns true if a redraw is necessary.