Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

examples: porting examples to gtk+2.0 on linux #2285

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

onecoolx
Copy link
Collaborator

@onecoolx onecoolx commented May 16, 2024

Hi all,
I'm trying to porting examples to gtk2 on linux. I had tried porting a version to support both linux+gtk2 and tizen systems. Most of the demos looks like normal, but I'm not sure whether this code is right on tizen / ecore system. I can't verify it. Can anyone try it?

Issue: #1244

@onecoolx onecoolx reopened this May 16, 2024
@hermet hermet added example Sample Code enhancement Improve features labels May 16, 2024
@hermet
Copy link
Member

hermet commented May 16, 2024

@onecoolx Hello, may I ask what prompted you to switch to GTK? I assume there was a specific need for you.

@onecoolx
Copy link
Collaborator Author

@onecoolx Hello, may I ask what prompted you to switch to GTK? I assume there was a specific need for you.

I prefer developing cross-platform graphics applications. I found that the code related to the local window system on each platform can be abstracted into an encapsulation layer, and then the upper code is isolated from the window system. As you see, the patch I submitted actually supports two UI system at the same time. EvasPlatform.cpp retains the original EFL support, and Gtk2Platform.cpp implements the porting of gtk2.0.

@onecoolx
Copy link
Collaborator Author

@onecoolx Hello, may I ask what prompted you to switch to GTK? I assume there was a specific need for you.

Another reason is that EFL opengl doesn't work well on my ubuntu : )

@hermet
Copy link
Member

hermet commented May 18, 2024

@onecoolx Hello, may I ask what prompted you to switch to GTK? I assume there was a specific need for you.

Another reason is that EFL opengl doesn't work well on my ubuntu : )

Firstly, thank you for your contribution. I assure you that EFL works perfectly with OpenGL on Ubuntu. I believe it's just a simple matter of environment setup. Nonetheless, the framework is an additional usage in ThorVG just for a showcase. My concern is that multiple choices and dependencies will significantly increase the maintenance burden for the ThorVG project. Therefore, in my opinion, ThorVG should depend on one framework at most for the showcase. We need to consider which framework is the easiest and most adaptable among user systems. Perhaps we might be able to replace EFL with GTK but more than it, unlike GTK, Qt, EFL, and others, I prefer the framework having minimal dependencies and being lightweight, so it's quite portable. Again, thanks for your contribution and let's see.

@onecoolx
Copy link
Collaborator Author

@onecoolx Hello, may I ask what prompted you to switch to GTK? I assume there was a specific need for you.

Another reason is that EFL opengl doesn't work well on my ubuntu : )

Firstly, thank you for your contribution. I assure you that EFL works perfectly with OpenGL on Ubuntu. I believe it's just a simple matter of environment setup. Nonetheless, the framework is an additional usage in ThorVG just for a showcase. My concern is that multiple choices and dependencies will significantly increase the maintenance burden for the ThorVG project. Therefore, in my opinion, ThorVG should depend on one framework at most for the showcase. We need to consider which framework is the easiest and most adaptable among user systems. Perhaps we might be able to replace EFL with GTK but more than it, unlike GTK, Qt, EFL, and others, I prefer the framework having minimal dependencies and being lightweight, so it's quite portable. Again, thanks for your contribution and let's see.

Yes, I agree. But in my opinion, Gtk2 is a better choice than EFL even if it only supports one GUI backend. gtk supports most Linux systems you can find, and supports MacOSX and Windows.

@vtorri
Copy link
Collaborator

vtorri commented May 20, 2024

EFL works on mac and windows

@onecoolx
Copy link
Collaborator Author

I prefer the framework having minimal dependencies and being lightweight,

Hmm,SDL ? Maybe better?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improve features example Sample Code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants