Comments (3)
Excellent idea! I've planned to make all positions as float (see issue #14), but the special type is much better solution, I guess.
Maybe the better name for this pixel_t
. What do you think?
from litehtml.
+1 for pixel_t
from litehtml.
pixel_t sounds like color to me, would pixel_coord_t be too long you think?
Edit: on second though a coordinate is a 2d vector, if the type is meant to be the basis for such a vector, then the type represents a scalar (https://en.wikipedia.org/wiki/Scalar_%28physics%29), so scalar_t as a general type for any vector may be more appropriate or pixel_scalar_t if you want to be more descriptive/specific.
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.