Git Product home page Git Product logo

gjs-examples's Introduction

gjs-examples

GJS examples showing how to build Gtk javascript applications (Gnome).

Run

Download this project with:

git clone https://github.com/optimisme/gjs-examples.git

cd gjs-examples

Then run the examples with:

gjs egAsset.js

gjs egHeader.js

gjs egList.js

gjs egSearch.js

...

egAsset.js

GJS example showing how to build Gtk javascript applications using Gtk.Image

egAsset0

egIcon.js

GJS example showing how to build Gtk javascript applications setting the application icon from the 'assets' folder and if not available from the 'stock icons'

egIcon0 egIcon1

egCss.js

GJS example showing how to build Gtk javascript applications using Gtk.CssProvider from source code or from loaded .css files

egCss0

egJustify.js

GJS example showing how to build Gtk javascript applications using Gtk.Label and its justification options

egJustify0

egTimers.js

GJS example showing how to build Gtk javascript applications emulating setTimeout, clearTimeout, setInterval and clearInterval functions with Mainloop timeout_add. It also shows how to import and use an application library

egTimers0

egEvent.js

GJS example showing how to build Gtk javascript applications using Gtk.EventBox to catch events for widgets which do not have their own window

egEvent0

egSpawn.js

GJS example showing how to build Gtk javascript applications executing a non blocking command line call, it uses TextBuffer, TextView, GLib.spawn_async_with_pipes, Gio.UnixInputStream, Gio.DataInputStream and read_line_async

egSpawn0

egInfo.js

GJS example showing how to build Gtk javascript applications getting information from GLib and command line

egInfo0

egDialog.js

GJS example showing how to build Gtk javascript applications adding an option to the application's Gio.Menu and opening dialog and modal windows using Gtk.Dialog

egDialog0 egDialog1 egDialog2

egList.js

GJS example showing how to build Gtk javascript applications using Gtk TreeView and ListStore

egList0

egJSON.js

GJS example showing how to build Gtk javascript applications reading and writting JSON files, the example makes use of Gio.File.new_for_path, replace_async, load_contents_async

egJSON0

egOpen.js

GJS example showing how to build Gtk javascript applications with FileChooserDialog with FileFilter, set_extra_widget (ComboBox), Gio File new_for_path, load_contents_async, query_info_async

egOpen0 egOpen1

egHeader.js

GJS example showing how to build Gtk javascript applications using Gtk HeaderBar, and Popover buttons with Gtk Widget or Gio GMenu.

egHeader0 egHeader1

egSearch.js

GJS example showing how to build Gtk javascript applications using Gtk HeaderBar, SearchBar and a filtered FlowBox

egSearch0

egSelect.js

GJS example showing how to build Gtk javascript applications using Gtk HeaderBar, SearchBar, ActionBar, a filtered FlowBox, an application library and custom widgets to create a selection mode

egSelect0 egSelect1

egClutter.js

GJS example showing how to build Gtk javascript applications using Gtk and Clutter, showing how to drag actors with Clutter.DragAction, perform animations with PropertyTransition, TransitionGroup and control the actor from Gtk.Scale

egClutter0

egCairo.js

GJS example showing how to build Gtk javascript applications using Gtk and Cairo, the left example adds one Cairo actor to Clutter, the example on the right adds one Cairo widget to GTK using GtkClutter.Embed, Gtk.DrawingArea, Cairo.Context, Clutter.Canvas

egCario0

egWebmsg.js

GJS example showing how to build Gtk javascript applications using Webkit.WebView, also showing how to send messages from GTK to Webkit and vice versa

egWebmsg0

gjs-examples's People

Contributors

apalacios-modpow avatar optimisme avatar

Watchers

 avatar  avatar

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.