Coder Social home page Coder Social logo

rbielak / eiffel-egtk Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 484 KB

Multi-compiler bindings between Eiffel and GTK tool kit. This project has been dormant for few years now.

Home Page: http://rbielak.inquitoris.com/gtk_eiffel.html

License: Other

Eiffel 91.48% C 7.95% Rust 0.05% Shell 0.52%

eiffel-egtk's Introduction

INSTALLATION:

	1. Get and install gtk+-1.2.x (or better)
	2. unpack the tar file into "$HOME/Eiffel" directory
	3. If you are using SmallEiffel then go to
		  $HOME/Eiffel/eGTK/C/se and type "make.
	   If you are using ISE Eiffelt then go to
			  $HOME/Eiffel/eGTK/C/ise and type "make.
	4. Now you can compile using the Ace.ace files (for ISE)
	   or Makefiles for SE in various subdirectories under	
	   "examples"
	5. If you also want to try the Gnome example you need to compile
	   the C/Gnome libraries. This is done by issueing the command,
	   in the same C directories:

			make -f Makefile.withgnome

	6. If you are using SmallEiffel you can use the script in $EGTK/bin
	   egtkbuild to make it easier to compile your programs.

NOTES:

	1. You will need ISE Eiffel 5 compiler (see http://www.eiffel.com), 
	   which is not free or SmallEiffel -0.74 Beta #21. Although
	   most things should still work with the oled compilers.
	2. Gtk+ has been ported to Windows, however this code has
	   not been tested on Windows at all. You can read the README_W32
	   on how to use eGTK on Windows.


You will need to define an enviroment variable  EGTK that points
to the directory where the Eiffel sources are. On my system I have:

	EGTK=/home/nrichieb/Eiffel/gtk

To compile with SmallEiffel simply go to the gtk/examples directories
and type "make" to compile that example. For ISE each example directory
contains an Ace file. You also have to separately compile the C code 
in gtk/C/ise.

PROBLEMS:

If you are using Microsoft Visual C and ISE 4.5 or SmallEiffel compiler
on Windows you will probably run into trouble with the way booleans are
passed to GTK routines. At the moment there is no portable way to
solve this problem. If you get stuck let me know and I'll see what
we can do. 

EXAMPLES:

Here is a brief description of the examples found in the 
"examples" subdirectory:

	1. drawing - simple example of GTK_DRAWING_AREA widget
	2. events - an example of catching various kinds of GDK events
		(for example key presses and releases)
	3. fixed_text  - example of use of text widget
	4. gnome_canvas - example of graphics with Gnome_canvas widget.
	5. hello - simple hello world program showing one button with a callback
	6. image-scribble-simple - another simple drawing program, shows tracking
		of mouse events.
	7. menu - example of menus and their call backs
	8. mozbed - imbedded Mozilla widget (does not work yet)
	9. mozilla - Mozilla widget - this code is obsolete.
	10. packing - simple example of packing button widgets into a box widget
	11. pixmap - a button with a changing pixmap
	12. range_widgets - example of range widget
	13. testgtk - large test program that demonstrates use of many different 
    	widgets, including buttons, radio buttons, lists, file and color selectors,
		etc.
	14. tictactoe - play the game of Tic Tac Toe against the computer
	15. toolbar - nothing here, this example is part of testgtk
	16. tree - example of the tree widget


Enjoy!

[email protected]  eGTK home page: http://www.netlabs.net/~richieb/gtk_eiffel.html

April 22nd, 2002

eiffel-egtk's People

Stargazers

richieb avatar

Watchers

richieb 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.