11 aug. 2010 : PHP-GTK Application descriptions can now be submitted in German too. Thanks Florian Freeman !.

Italian is still missing: who will contribute the translated categories for these languages ? Contact the team to offer your translations !

GtkDrawingArea

Canvas in PHP-GTK ? Or other method ?

Hi everybody,

I have been toying around with PHP-GTK for the past few days and have been pleasantly surprised at the possibilities offered. Being able to use (and re-use) PHP for GUI apps is a big breakthrough against bulkier Java and C++.

I am looking for a specific widget or behaviour though, and have not been able to find explicit documentation relating to it.

Dial widget - a graphical widget to display an analog value.

Dial widget The Dial widget is a graphical object which displays an analog value. This is a direct port of the Gtk tutorial about creating graphical widgets

Merry Christmas with php-gtk and object oriented software (tutorial).

drawing blinking stars with php-gtk It's time to have some fun for the holiday season. We are going to draw some stars in a Drawing Area. Stars will have random colors, and random blinking cycle. Will will try to write some object-oriented code to show good practices with php-gtk.

Extending GtkDrawingArea to draw animated graphs

Grapher class example Drawing graphs with GtkDrawingArea is very easy. This is even easier using Graph_Core.

Extending GtkDrawingArea with OO methods

GxDrawingArea example This example shows a nice drawing area class, derived from GtkDrawingArea:

  • with 2D matrix transformation : rotate, translate, scale
  • with many classes : Point, Matrix, GxObject, GxPoint, GxRectangle, GxDrawingArea
Condividi contenuti