aboutsummaryrefslogtreecommitdiffstats
path: root/README.xwidget
diff options
context:
space:
mode:
authorJoakim Verona2011-06-28 21:42:45 +0200
committerJoakim Verona2011-06-28 21:42:45 +0200
commitb380a76ffbf54594dfd6fc3d932983ac0439d07f (patch)
treed0918b1ef09699f5fd2ccb4bcb13e9c0d802a029 /README.xwidget
parent65b7d4f0f95b7611946962ed8a06ecf52719fdb5 (diff)
downloademacs-b380a76ffbf54594dfd6fc3d932983ac0439d07f.tar.gz
emacs-b380a76ffbf54594dfd6fc3d932983ac0439d07f.zip
proof of concept webkit xwidget
Diffstat (limited to 'README.xwidget')
-rw-r--r--README.xwidget42
1 files changed, 38 insertions, 4 deletions
diff --git a/README.xwidget b/README.xwidget
index 65e5598f7f2..6a6633b4b20 100644
--- a/README.xwidget
+++ b/README.xwidget
@@ -237,11 +237,15 @@ Surprisingly, this just worked!
237I used gtk signals, the implementation for sliders works well! 237I used gtk signals, the implementation for sliders works well!
238 238
239** TODO canvas support 239** TODO canvas support
240heresy an interesting comparision of gtk canvases
241http://live.gnome.org/ProjectRidley/CanvasOverview
240*** goocanvas 242*** goocanvas
241goocanvas is a gtk canvas implemented using cairo. investigate. 243goocanvas is a gtk canvas implemented using cairo. investigate.
242http://developer.gnome.org/goocanvas/unstable/goocanvas-model-view-canvas.html
243it has a MVC model aproach out of the box which is nice.
244 244
245pros:
246- it has a MVC model aproach out of the box which is nice.
247
248http://developer.gnome.org/goocanvas/unstable/goocanvas-model-view-canvas.html
245 249
246export CFLAGS="`pkg-config --cflags goocanvas` -DHAVE_GOOCANVAS" 250export CFLAGS="`pkg-config --cflags goocanvas` -DHAVE_GOOCANVAS"
247export LDFLAGS=`pkg-config --libs goocanvas` 251export LDFLAGS=`pkg-config --libs goocanvas`
@@ -249,9 +253,20 @@ export LDFLAGS=`pkg-config --libs goocanvas`
249make 253make
250 254
251I made a hello goo world xwidget so seems doable. 255I made a hello goo world xwidget so seems doable.
252I wanted to load a SVG which wasnt straightforward. 256I wanted to load a SVG which wasnt immediately straightforward, so I
257tried clutter. but it turns out the exact same strategy could be used
258with goocanvas.
259
253*** clutter 260*** clutter
254maybe clutter can be used as a canvas? seems to have a lot of traction atm. 261maybe clutter can be used as a canvas?
262pros:
263- seems to have a lot of traction atm. many examples
264- potentialy fast and cool vector graphics
265cons:
266- no out of the box MVC support, but seems doable. no worse than the
267 other home brew mvc support I have in xwidgets
268(media-explorer in an application that employes the MVC pattern)
269
255http://www.openismus.com/documents/clutter_tutorial/0.9/docs/tutorial/html/sec-stage-widget.html 270http://www.openismus.com/documents/clutter_tutorial/0.9/docs/tutorial/html/sec-stage-widget.html
256 271
257there is also cool stuff like this: 272there is also cool stuff like this:
@@ -293,3 +308,22 @@ it is an error to reuse xwidgets in several buffers or in the same
293buffer. how do we catch these errors? 308buffer. how do we catch these errors?
294 309
295 310
311** TODO browser xwidget
312although embedding a browser is not my primary concern many are
313interested in this. some suitable browser component needs to be found
314supporting gtk.
315
316*** webkit
317there is a webkit gtk port. there is no obvious mvc support.
318http://live.gnome.org/WebKitGtk
319http://webkitgtk.org/
320
321
322export CFLAGS="`pkg-config --cflags webkit-1.0` -DHAVE_WEBKIT -g"
323export LDFLAGS=`pkg-config --libs webkit-1.0`
324./configure
325make
326
327*** firefox
328http://www-archive.mozilla.org/unix/gtk-embedding.html
329seems to be severly bitrotted