Forum > GTK

gtk3 with lazarus

(1/3) > >>

benohb:
Since  February 2011

is There a new....?


What about this

http://wiki.freepascal.org/Gtk%2B3

Is there a plan...?

felipemdc:
Everything depends on how many patches people send, but I have a different idea. I think that we don't need Gtk, we can write everything ourselves like I am doing in LCL-CustomDrawn:

http://wiki.lazarus.freepascal.org/Custom_Drawn_Interface

In my idea Custom Drawn will be the substitute of LCL-Gtk2 maybe in 2 years (of course, only if other people jump in my ship and start sending patches). If other people think differently and implement a super good LCL-Gtk3 interface then their solution will win and my idea loose. It is meritocracy. But I haven't heard yet of someone with plans on starting LCL-Gtk3.

And I expect LCL-CustomDrawn to substitute LCL-WinCE too. With 1 interface which does it all we can achieve more with less work.

In my idea in the future some years ahead we will have 3 major interfaces: Windows optimized for Windows, Cocoa optimized for the best Mac experience and CustomDrawn which runs everywhere.

benohb:

--- Quote ---Everything depends on how many patches people send, but I have a different idea. I think that we don't need Gtk, we can write everything ourselves like I am doing in LCL-CustomDrawn:

http://wiki.lazarus.freepascal.org/Custom_Drawn_Interface

In my idea Custom Drawn will be the substitute of LCL-Gtk2 maybe in 2 years (of course, only if other people jump in my ship and start sending patches). If other people think differently and implement a super good LCL-Gtk3 interface then their solution will win and my idea loose. It is meritocracy. But I haven't heard yet of someone with plans on starting LCL-Gtk3.

And I expect LCL-CustomDrawn to substitute LCL-WinCE too. With 1 interface which does it all we can achieve more with less work.

In my idea in the future some years ahead we will have 3 major interfaces: Windows optimized for Windows, Cocoa optimized for the best Mac experience and CustomDrawn which runs everywhere.
--- End quote ---

I think it's a great idea...
But there are a lot of work,,,,,,,,and wayaland :o :o Is this in mind

http://en.wikipedia.org/wiki/Wayland_(display_server_protocol)

I have tried the following library and worked well with fpc 2.6...Why not merge it
http://wiki.freepascal.org/Gtk%2B3

felipemdc:

--- Quote from: benohb on February 06, 2012, 07:03:57 am ---I think it's a great idea...
But there are a lot of work,,,,,,,,
--- End quote ---

Well, I already wrote the entire foundation for this. It already runs in Android, X11, Mac OS X (via Cocoa) and Windows. The architecture is also very well thought out, it is flexible enough to support OpenGL for example in the future, it is fully skinnable and highly integrated with the LCL. And it has to be done anyway, there is no other way that we could have a decent Android support except like this. And if it has to be done, then the work for porting for other platforms is very small. 95% of the work is cross-backend.


--- Quote ---and wayaland :o :o Is this in mind
--- End quote ---

It is not in my plans, unless it really wins the war against X11. So far I am not aware of any major distribution using it. But it is irrelevant in the end. Adding backends for LCL-CustomDrawn is easy and fast. You just need to expose 1 memory area for drawing in whatever format, basic window operations and input events. If I already wrote 4 backends, 1 more shouldn't be difficult.

marcov:

--- Quote from: felipemdc on February 06, 2012, 08:42:59 am ---

--- Quote ---and wayaland :o :o Is this in mind
--- End quote ---

It is not in my plans, unless it really wins the war against X11. So far I am not aware of any major distribution using it. But it is irrelevant in the end. Adding backends for LCL-CustomDrawn is easy and fast. You just need to expose 1 memory area for drawing in whatever format, basic window operations and input events. If I already wrote 4 backends, 1 more shouldn't be difficult.

--- End quote ---

Afaik Wayland will have libX11 too for X protocol apps.

Navigation

[0] Message Index

[#] Next page

Go to full version