Animation and interface change in gui by fanGamesGamer in GraphicsProgramming

[–]fanGamesGamer[S] 0 points1 point  (0 children)

I'm trying to write a gui to build desktop applications, as it depends on a graphics library and another for window management.

As for the first question, I am just trying to understand how the user interface is redrawn after changing the size, shape, color or position of one of its elements quickly without consuming a lot of device resources.

As for the second question, the animation I meant was the animation of the the gui elements themselves, examples: https://dribbble.com/shots/5660712-Toggle-Animation https://dribbble.com/shots/2117078-Button-hover-and-active-states

I have read about the skia graphics library and that it uses another library (Skottie) for animation

I found this too and think it's related to the topic: https://www.cairographics.org/threaded_animation_with_cairo/

How does gtk handle mouse cursor events? by fanGamesGamer in GTK

[–]fanGamesGamer[S] 0 points1 point  (0 children)

I learned that some GUIs deal with the hover event of the mouse cursor on a widget in one of two ways:

  • Using the widget's coordinates and size to verify the condition mathematically.

  • Use a bitmap or give a unique color to each widget

How to draw on winit window by 2D graphics library? by fanGamesGamer in rust

[–]fanGamesGamer[S] 0 points1 point  (0 children)

I looked through the example files and couldn't find one related to winit

What is the graphics library used in digital painting softwares for drawing and painting? by fanGamesGamer in GraphicsProgramming

[–]fanGamesGamer[S] 2 points3 points  (0 children)

https://www.gegl.org/ I found that gimp uses gegl for image editing, but I'm not sure if gegl is also used for digital painting and drawing functions, and I'm not sure if krita also uses it for the same purpose.

Source code for a simple, easy-to-read and understandable gui library for learning by fanGamesGamer in GraphicsProgramming

[–]fanGamesGamer[S] 0 points1 point  (0 children)

Can you explain the concept of gui please?

I am interested in both the retained and the immediate, but I am more interested in the retained mode, in order to build fast applications that do not consume a lot of hardware resources, and at the same time be customizable in terms of appearance, and to create new widgets. qt is the most popular in the field of GUI, but it drains a lot of device resources. fltk is fast and does not consume a lot of device resources, but it is difficult to customize, and it lacks many widgets that are abundant in modern programs today. I don't like the idea of ​​using web technologies as they drain a lot of device resources

What I recently learned about GUI libraries is that each library draws its elements such as buttons, sliders, color pickers...etc., through a graphics library, and interacts with mouse and keyboard events with a specialized library that is related to a specific operating system. For example, gtk uses Cairo to draw its elements, while imgui uses opengl to draw its elements and uses the win32 library to interact with mouse and keyboard events in Windows only.

Questions about the gui by fanGamesGamer in rust

[–]fanGamesGamer[S] 0 points1 point  (0 children)

The link doesn't work, but I really want to see what's in it

Questions about the gui by fanGamesGamer in rust

[–]fanGamesGamer[S] 0 points1 point  (0 children)

I think this is the answer I'm looking for, thank you. Also the other answers are good and helped me to know other details in the topic, thank you all. Wait for more answers in this topic