Base class for reference counted objects, maintains reference counter inplace.
widget state bit flags
Subpixel rendering mode for fonts (aka ClearType)
if size has SIZE_IN_PERCENTS_FLAG bit set, returns percent of baseSize, otherwise returns size unchanged
conversion from wchar z-string
conversion from wchar z-string
returns true if size has SIZE_IN_PERCENTS_FLAG bit set
returns true for WRAP_CONTENT, WRAP_CONTENT, SIZE_UNSPECIFIED
make size value with SIZE_IN_PERCENTS_FLAG set
make size value with SIZE_IN_PERCENTS_FLAG set
make size value with SIZE_IN_POINTS_FLAG set
normalize end of line style - convert to '\n'
decodes hex digit (0..9, a..f, A..F), returns uint.max if invalid
convert points (1/72in units) to pixels according to SCREEN_DPI
convert length in points (1/72in units) to pixels according to SCREEN_DPI
rectangle coordinates in points (1/72in units) to pixels according to SCREEN_DPI
convert custom size to pixels (sz can be either pixels, or points if SIZE_IN_POINTS_FLAG bit set)
convert custom size Point to pixels (sz can be either pixels, or points if SIZE_IN_POINTS_FLAG bit set)
convert custom size Rect to pixels (sz can be either pixels, or points if SIZE_IN_POINTS_FLAG bit set)
replacement of deprecated std.utf.toUTF8
one point is 1/72 of inch
get current screen DPI used for scaling while drawing
set screen DPI detected by platform
get screen DPI detection override value, if non 0 - this value is used instead of DPI detected by platform, if 0, value detected by platform will be used
call to disable automatic screen DPI detection, use provided one instead (pass 0 to disable override and use value detected by platform)
returns DPI detected by platform w/o override
This struct allows to not execute some code if some variables was not changed since the last check. Used for optimizations.
Character glyph.
C malloc allocated array wrapper
2D point
2D rectangle Note: Rect(0,0,20,10) size is 20x10 -- right and bottom sides are non-inclusive -- if you draw such rect, rightmost drawn pixel will be x=19 and bottom pixel y=9
Reference counting support.
layout option, to occupy all available place
constant acting as "rectangle not set" value
(RESERVED) use in styles to specify size in percents * 100 (e.g. 0 == 0%, 10000 == 100%, 100 = 1%)
use in styles to specify size in points (1/72 inch)
use as widget.layout() param to avoid applying of parent size
layout option, for size based on content
This module declares basic data types for usage in dlangui library.
Contains reference counting support, point and rect structures, character glyph structure, misc utility functions.
Synopsis: