Git Product home page Git Product logo

Comments (9)

zmughal avatar zmughal commented on June 2, 2024

StayerX, would you like to start this one?

This might be a helpful start: Using Clutter and Champlain to display map.

xming_2016-04-17_16-10-14

from curie.

zmughal avatar zmughal commented on June 2, 2024

Then we can look at adding new navigation using buttons on the canvas itself to solve #61. I'm trying to find an example of a UI that does that.

from curie.

zmughal avatar zmughal commented on June 2, 2024

@StayerX, another direction that might be helpful would be to write a small script that renders a Cairo::ImageSurface to a Clutter::Stage. Then the ideas from the script can be brought into the rest of the code.

from curie.

zmughal avatar zmughal commented on June 2, 2024

@StayerX, I found this script which shows how to load an image into Clutter. It uses Imager to read in the data, but we don't need that part. All we need is a Cairo::ImageSurface. I thought it looked neat, so I wanted to share.

2016-04-17_11-05-30

from curie.

zmughal avatar zmughal commented on June 2, 2024

More Clutter code : 2eb3854

It is part of #75.

from curie.

zmughal avatar zmughal commented on June 2, 2024
  1. Start with PageDrawingArea Glade file
  2. Instead of GtkDrawingArea, we need GtkClutterEmbed
  3. Draw the first page as a Cairo::ImageSurface

from curie.

zmughal avatar zmughal commented on June 2, 2024

Very soon Gtk+ will have a built-in scene graph library which we can use. Search for GSK on the roadmap and the post here.

Just some notes:

  • Inkscape uses a canvas that was forked off of GnomeCanvas, but since that is only Gtk2, we can not use it.
  • Julia's Immerse.jl has a canvas, but it is just a GtkDrawingArea
  • We need to support interactive things on the canvas such as text entry and rubber band selection.
  • GooCanvas doesn't have active development.
  • PiTiVi went from using GooCanvas to Clutter for its timeline then later dropped Clutter for a plain GTK+ timeline.
  • Glob uses GooCanvas.
  • The Clutter documentation needs a lot of work.

from curie.

zmughal avatar zmughal commented on June 2, 2024

Note: Clutter is in maintenance mode and will not be updated with new features.

from curie.

zmughal avatar zmughal commented on June 2, 2024

Closed by #237, #238, #239.

from curie.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.