Comments (1)
I have some ideas how to make UI using litehtml:
- one dialog - one html file
- use
<input>
tag or any custom tag for dialog elements - overwrite
document_container::create_element
to create your own implementation of dialog elements for<input>
or custom tags. Make the array of the created elements on your side.
Now how to get the positions from litehtml. The positions become valid after you call document::render
, so just loop via your elements created via document_container::create_element
, call element::get_placement
to get the element position and place them.
The implementation of the custom elements created via document_container::create_element
depends of JUCE framework (I'm not familiar with it). Generally you have to implement element::render
fill the element::m_pos
data member with the valid position and size (relative to x and y parameters). Look the el_image::render
as example. If you can make the actual JUCE dialog elements transparent - this can be useful because litehtml can draw elements (via your implementation). Also you can overwrite element::parse_styles
and initialize JUCE dialog elements with proper styles.
Let me know if something unclear.
from litehtml.
Related Issues (20)
- -Wreorder compiler warnings HOT 1
- Unhandled enum in switch warnings HOT 3
- Negative top margin changes block height
- Security policy HOT 1
- Windows build is broken. HOT 2
- Something weird with flex layout HOT 2
- import_css blocks the main thread HOT 1
- The token 'and' in a @media selector isn't parsed correctly.
- Litehtml in Claws-mail takes ages parsing a specific HTML e-mail HOT 5
- Windows build warnings HOT 3
- Word wrapping support
- 4-byte utf-8 sequences (emoji) are broken inside litehtml HOT 4
- clarification of offset in gradient.color_points HOT 2
- litehtml::render_item_block - unused variable warning HOT 2
- litehtml::flex_line::distribute_free_space - sum_flex_factors never used: HOT 2
- document_container::draw_solid_fill() and background_layer's is_root HOT 7
- Suggestion: Add a clang-format file for code formatting HOT 1
- Other modernization cleanups? HOT 3
- Table border="0" sending me border widths of 1 HOT 1
- namespace vs. no namespace & proper std includes HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from litehtml.