Gnm.Pane¶
- Subclasses:
None
Methods¶
- Inherited:
Gnm.SimpleCanvas (3), GOffice.Canvas (23), Gtk.Layout (10), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10), Gtk.Scrollable (9)
- Structs:
Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
Properties¶
- Inherited:
Gtk.Layout (2), Gtk.Container (3), Gtk.Widget (39), Gtk.Scrollable (4)
Child Properties¶
- Inherited:
Style Properties¶
- Inherited:
Name |
Type |
Default |
Flags |
Short Description |
---|---|---|---|---|
|
|
r |
Size of |
|
|
|
r |
Width of outline of control circle for sizing sheet objects |
|
|
|
r |
Size of control circle for sizing sheet objects |
|
|
|
r |
Size of cell extension indicator |
|
|
|
r |
Size of function indicator |
|
|
|
r |
With of the guides used for resizing panes |
|
|
|
r |
With of the guides used for resizing columns and rows |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
action_items |
r |
||
cur_object |
r |
||
editor |
r |
||
first |
r |
||
grid |
r |
||
grid_items |
r |
||
im_context |
r |
||
im_preedit_started |
r |
||
index |
r |
||
insert_decimal |
r |
||
last_full |
r |
||
last_visible |
r |
||
mouse_cursor |
r |
||
object_style |
r |
||
object_views |
r |
||
preedit_attrs |
r |
||
preedit_length |
r |
||
simple |
r |
||
size_tip |
r |
||
slide_data |
r |
||
slide_handler |
r |
||
sliding_adjacent_h |
r |
||
sliding_adjacent_v |
r |
||
sliding_dx |
r |
||
sliding_dy |
r |
||
sliding_timer |
r |
||
sliding_x |
r |
||
sliding_y |
r |
Class Details¶
- class Gnm.Pane(**kwargs)¶
- Bases:
- Abstract:
No
- classmethod new(scg, col_headers, row_headers, index)¶
- Parameters:
scg (
Gnm.SheetControlGUI
) –col_headers (
bool
) –row_headers (
bool
) –index (
int
) –
- Return type:
- classmethod object_register(so, view, selectable)¶
- Parameters:
so (
Gnm.SheetObject
) – A sheet objectview (
GOffice.CanvasItem
) – A canvas item acting as a view for soselectable (
bool
) – Add handlers for selecting and editing the object
- Returns:
view set to a
Gnm.SheetObjectView
.- Return type:
Setup some standard callbacks for manipulating a view of a sheet object.
- classmethod widget_register(so, w, view)¶
- Parameters:
so (
Gnm.SheetObject
) – A sheet objectw (
Gtk.Widget
) – The widget for the sheet object viewview (
GOffice.CanvasItem
) – A canvas item acting as a view for so
Setup some standard callbacks for manipulating widgets as views of sheet objects.
- bound_set(start_col, start_row, end_col, end_row)¶
- Parameters:
so (
Gnm.SheetObject
) –event (
Gdk.Event
) –
- edit_start()¶
- edit_stop()¶
- expr_cursor_stop()¶
- find_col(x, col_origin)¶
- Parameters:
- Return type:
Returns the column containing canvas coord x
- find_row(y, row_origin)¶
- Parameters:
- Return type:
Returns the column containing canvas coord y
- handle_motion(canvas, x, y, slide_flags, handler, *user_data)¶
- Parameters:
canvas (
GOffice.Canvas
) – The Canvas the event comes fromx (
int
) –y (
int
) –slide_flags (
Gnm.PaneSlideFlags
) –handler (
Gnm.PaneSlideHandler
) – The handler when sliding
- Return type:
Handle a motion event from a canvas and scroll the self depending on how far outside the bounds of self the event is. Usually canvas == self however as long as the canvases share a basis space they can be different.
- mouse_cursor_set(c)¶
- Parameters:
c (
Gdk.Cursor
) –
- object_autoscroll(context, x, y, time)¶
- Parameters:
context (
Gdk.DragContext
) –x (
int
) –y (
int
) –time (
int
) –
- object_group()¶
- Returns:
the
GOffice.CanvasGroup
including allGnm.SheetObjectView
instances in self.- Return type:
- object_start_resize(button, x, y, so, drag_type, is_creation)¶
- object_unselect(so)¶
- Parameters:
so (
Gnm.SheetObject
) –
- object_update_bbox(so)¶
- Parameters:
so (
Gnm.SheetObject
) –Gnm.SheetObject
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)¶
- rangesel_stop()¶
- reposition_cursors()¶
- set_direction(direction)¶
- Parameters:
direction (
GOffice.CanvasDirection
) –
- size_guide_motion(vert, guide_pos)¶
- Parameters:
Moves the guide line to guide_pos. NOTE :
Gnm.Pane.size_guide_start
must be called before any calls toGnm.Pane.size_guide_motion
- size_guide_start(vert, colrow, is_colrow_resize)¶
- size_guide_stop()¶
- slide_init()¶
- slide_stop()¶
- special_cursor_stop()¶