Canvas (GUI)

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

In computer science and visualization, a canvas is a container that holds various drawing elements (lines, shapes, text, frames containing other elements, etc.). It takes its name from the canvas used in visual arts. It is sometimes called a scene graph because it arranges the logical representation of a user interface or graphical scene. Some implementations also define the spatial representation and allow the user to interact with the elements via a graphical user interface.[1]

Library support[edit]

Various free and open-source canvas or scene-graph libraries allow developers to construct a user interface and/or user-interface elements for their computer programs.[2]

Examples of free and open-source scene-graph canvas options include:

Some canvas modules within various libraries do not provide the power of a full scene-graph - they operate at a lower level which requires programmers to provide code such as mapping mouse-clicks to objects in the canvas. Examples of libraries which include such a canvas module include:

Proprietary canvas libraries include, for example:

References[edit]

  1. ^ "tk-zinc-3.303 - TkZinc is another Canvas which proposes many new functions, some based on openGL - metacpan.org". metacpan.org.
  2. ^ "Snelle WordPress hosting bij mijn.host". mijn.host. 3 June 2017. Retrieved 28 June 2019.
  3. ^ "Archived copy". Archived from the original on 2017-12-07. Retrieved 2016-03-04.CS1 maint: archived copy as title (link)
  4. ^ "Canvas Development - FlightGear wiki". wiki.flightgear.org.
  5. ^ "GUI Programming with Python: Canvas Widget". python-course.eu.
  6. ^ "TkDocs - Tk Tutorial - Canvas". tkdocs.com.
  7. ^ "canvas manual page - Tk Built-In Commands". tcl.tk.
  8. ^ "zinc". wiki.tcl-lang.org.
  9. ^ "tk-zinc-3.303 - TkZinc is another Canvas which proposes many new functions, some based on openGL - metacpan.org". metacpan.org.
  10. ^ "TkZinc - Python Wiki". wiki.python.org.