lexborisov / myhtml

Fast C/C++ HTML 5 Parser. Using threads.
GNU Lesser General Public License v2.1
1.66k stars 147 forks source link

Need example of passing custom thread handler #184

Open awsdert opened 3 years ago

awsdert commented 3 years ago

I'm making a project where the interface is handled entirely with lua, here's a rough example of what would happen in my app to get to myhtml

app custom thread manager > lua thread > lua > myhtml binding > script tag thread

I chose this style because it lets the user pick their preferred library for creating & managing the interface

I want to provide a base example of how to do this with myhtml but I don't actually use it yet because I'm focusing on the simpler moonnuklear, moongl and moonglfw to handle a basic GUI

lexborisov commented 3 years ago

Hi @awsdert

Maybe I misunderstood the question, but myhtml is only HTML parser (with encodings). Not GUI, not drawing and so on.

awsdert commented 3 years ago

Oh so you mean it just passes the parsed tag onto the drawer?