# Class GnoCanvas.canvas

    class canvas : GnomeCanvas.canvas Gtk.obj -> object .. end

(gtkdoc: libgnomecanvas GnomeCanvas)
Inherits

- `GPack.layout`

    val obj : GnomeCanvas.canvas Gtk.obj

    method aa : bool

    method c2w : cx:float -> cy:float -> float * float

    method get_center_scroll_region : bool

    method get_item_at : x:float -> y:float -> base_item

Raises `Not_found` .

    method get_scroll_offsets : int * int

    method get_scroll_region : float array

    method root : group

    method scroll_to : x:int -> y:int -> unit

    method set_center_scroll_region : bool -> unit

    method set_pixels_per_unit : float -> unit

    method set_scroll_region : x1:float -> y1:float -> x2:float -> y2:float -> unit

    method update_now : unit -> unit

    method w2c : wx:float -> wy:float -> int * int

    method w2c_affine : float array

    method w2c_d : wx:float -> wy:float -> float * float

    method window_to_world : winx:float -> winy:float -> float * float

    method world_to_window : wox:float -> woy:float -> float * float