GUI - Linux - C - how click events are managed? -


context:

reading gui libraries on linux 64.

i've used libraries (or done headless applications). now, time move on , complete understanding.

question:

i not sure how system knows when 1 clicks button on gui app.

it seems poll/select/epoll helps don't whole picture.

here think: when gui created, knows buttons pixels are, attaches each of them event handler (epoll...), or 1 callback react click in app.

when click button, epoll calls callback application manages click events. callback iterates list find button.

of course, there optimisations, dividing screen in multiple squares example , many other things.

but, correct ? logic under hood ? x11 more involved ?

thanks

ok, after comment: i'll bite:

no, not right.

but how increase knowledge now?


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -