0.0.10 • Published 12 years ago

pane v0.0.10

Weekly downloads
11
License
-
Repository
github
Last release
12 years ago

pane is a cross-platform GTK+ WebKit binding for node

Installation

To install pane, use npm:

$ npm install pane

Dependencies

A full installer for each OS will be available soon.

Ubuntu/Debian - Untested

$ sudo apt-get install -y libgtk2.0-dev libglib2.0-dev libwebkitgtk-dev libev-dev

Fedora/Red Hat - Untested

$ sudo yum install -y gtk+-devel gtk2-devel glib2-devel libwebkitgtk-devel libev-devel

Windows - Untested

Download and install this.

Mac OSX - Untested

curl -O http://downloads.sourceforge.net/project/gtk-osx/GTK-OSX%20Build/ige-mac-integration-0.9.8.tar.bz2?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fgtk-osx%2Ffiles%2F&ts=1326270289&use_mirror=iweb
tar xzvf ige-mac-integration-0.9.8.tar.bz2
cd ige-mac-integration-0.9.8
./configure
make
make install

Usage

Pane = require 'pane'
  
doStuff = (window) ->
  console.log window.getFocused()
  console.log window.getTitle()
  console.log window.getUrl()
  console.log window.getSize()
  console.log window.getResizable()

  window.on 'open', -> console.log 'open'
  window.on 'close', -> console.log 'close'
  window.on 'console', (msg, line, src) -> console.log "'#{msg}' line #{line} - #{src}"

  window.execute 'console.log("test2");'
  
  window.open()
  window.move 500, 100
  window.reload()
  
  window.close()
  
test = new Pane 
  url: 'http://google.com/' # Alias for setUrl
  html: '<p>pane test</p>' # Alias for setHtml
  javascript: 'document.writeln("hello");' # Alias for execute
  title: 'Cool test' # Alias for setTitle
  height: 250 # Alias for setSize
  width: 250 # Alias for setSize
  resizable: true # Alias for setResizable
  plugins: false # Alias for enablePlugins/disablePlugins
  webgl: true # Alias for enableWebGL/disableWebGL
  fullscreen: false # Alias for setFullScreen
  maximized: false # Alias for setMaximized
  ready: doStuff
  

Examples

wat

You can view further examples in the example folder.

LICENSE

(MIT License)

Copyright (c) 2011 Fractal contact@wearefractal.com

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

0.0.10

12 years ago

0.0.9

12 years ago

0.0.8

12 years ago

0.0.7

12 years ago

0.0.6

12 years ago

0.0.5

12 years ago

0.0.4

12 years ago

0.0.1

12 years ago