Class: Gnm::Pane
- Inherits:
-
SimpleCanvas
- Object
- GOffice::Canvas
- SimpleCanvas
- Gnm::Pane
- Defined in:
- (unknown)
Class Method Summary collapse
-
.object_register(so, view, selectable) ⇒ Gnm::SheetObjectView
Setup some standard callbacks for manipulating a view of a sheet object.
-
.widget_register(so, w, view) ⇒ nil
Setup some standard callbacks for manipulating widgets as views of sheet objects.
Instance Method Summary collapse
- #bound_set(start_col, start_row, end_col, end_row) ⇒ nil
- #compute_visible_region(full_recompute) ⇒ nil
- #cursor_bound_set(r) ⇒ Boolean
- #direction=(direction) ⇒ nil
- #display_object_menu(so, event) ⇒ nil
- #edit_start ⇒ nil
- #edit_stop ⇒ nil
- #expr_cursor_bound_set(r, color) ⇒ nil
- #expr_cursor_stop ⇒ nil
-
#find_col(x, col_origin) ⇒ Integer
Returns the column containing canvas coord x.
-
#find_row(y, row_origin) ⇒ Integer
Returns the column containing canvas coord y.
-
#handle_motion(canvas, x, y, slide_flags, handler, user_data) ⇒ Boolean
Handle a motion event from a canvas and scroll the pane depending on how far outside the bounds of pane the event is.
- #initialize(scg, col_headers, row_headers, index) ⇒ Gnm::Pane constructor
- #mouse_cursor_set(c) ⇒ nil
- #object_autoscroll(context, x, y, time) ⇒ nil
-
#object_group ⇒ GOffice::CanvasGroup
instances in pane.
- #object_start_resize(button, x, y, so, drag_type, is_creation) ⇒ nil
- #object_unselect(so) ⇒ nil
-
#object_update_bbox(so) ⇒ nil
Updates the position and potentially creates control points for manipulating the size/position of so.
- #objects_drag(so, new_x, new_y, drag_type, symmetric, snap_to_grid) ⇒ nil
- #rangesel_bound_set(r) ⇒ Boolean
- #rangesel_start(r) ⇒ nil
- #rangesel_stop ⇒ nil
- #redraw_range(r) ⇒ nil
- #reposition_cursors ⇒ nil
-
#size_guide_motion(vert, guide_pos) ⇒ nil
Moves the guide line to guide_pos.
- #size_guide_start(vert, colrow, is_colrow_resize) ⇒ nil
- #size_guide_stop ⇒ nil
- #slide_init ⇒ nil
- #slide_stop ⇒ nil
- #special_cursor_bound_set(r) ⇒ Boolean
- #special_cursor_start(style, button) ⇒ nil
- #special_cursor_stop ⇒ nil
Methods inherited from SimpleCanvas
Constructor Details
#initialize(scg, col_headers, row_headers, index) ⇒ Gnm::Pane
Class Method Details
.object_register(so, view, selectable) ⇒ Gnm::SheetObjectView
Setup some standard callbacks for manipulating a view of a sheet object.
.widget_register(so, w, view) ⇒ nil
Setup some standard callbacks for manipulating widgets as views of sheet objects.
Instance Method Details
#bound_set(start_col, start_row, end_col, end_row) ⇒ nil
#compute_visible_region(full_recompute) ⇒ nil
#cursor_bound_set(r) ⇒ Boolean
#direction=(direction) ⇒ nil
#display_object_menu(so, event) ⇒ nil
#edit_start ⇒ nil
#edit_stop ⇒ nil
#expr_cursor_bound_set(r, color) ⇒ nil
#expr_cursor_stop ⇒ nil
#find_col(x, col_origin) ⇒ Integer
Returns the column containing canvas coord x
#find_row(y, row_origin) ⇒ Integer
Returns the column containing canvas coord y
#handle_motion(canvas, x, y, slide_flags, handler, user_data) ⇒ Boolean
Handle a motion event from a canvas and scroll the pane depending on how far outside the bounds of pane the event is. Usually canvas == pane however as long as the canvases share a basis space they can be different.
#mouse_cursor_set(c) ⇒ nil
#object_autoscroll(context, x, y, time) ⇒ nil
#object_group ⇒ GOffice::CanvasGroup
instances in pane.
#object_start_resize(button, x, y, so, drag_type, is_creation) ⇒ nil
#object_unselect(so) ⇒ nil
#object_update_bbox(so) ⇒ nil
Updates the position and potentially creates control points for manipulating the size/position of so.
#objects_drag(so, new_x, new_y, drag_type, symmetric, snap_to_grid) ⇒ nil
#rangesel_bound_set(r) ⇒ Boolean
#rangesel_start(r) ⇒ nil
#rangesel_stop ⇒ nil
#redraw_range(r) ⇒ nil
#reposition_cursors ⇒ nil
#size_guide_motion(vert, guide_pos) ⇒ nil
Moves the guide line to guide_pos. NOTE : gnm_pane_size_guide_start must be called before any calls to gnm_pane_size_guide_motion