summaryrefslogtreecommitdiff
path: root/ChangeLog
AgeCommit message (Collapse)AuthorFilesLines
2006-02-03Eliminate spurious segment by moving to initial arc point (sigh).Keith Packard1-0/+6
2006-02-02Add x11 as a required package, (cairo no longer pulls this in by default).Carl Worth1-0/+16
Track changes in cairo API to bring forward to be compatible with cairo 1.0.x. Remove some unused variables. Add missing includes of cairo-xlib.h, X11/Xutil.h, and string.h. Add missing return value and remove unused variables.
2004-10-29add demoline + demosplineKeith Packard1-0/+62
Add cap styles, widget shapes, text alignment and arcs Change circle/ellipse API. Capture button events. Use Lozenge shape for output Drag lines with the mouse drag splines with the mouse move '1' right a bit Convert dispatch result to boool was mis-computing delegate and crashing when window->event was NULL Map X button info to twin mask draw different stuff.
2004-10-27Boxes have no paintKeith Packard1-0/+18
Convert to a widget Always paint background, even if transparent show clock widget
2004-10-27Add calculator and missing header filesKeith Packard1-0/+28
Change type name from twin_layout_t to twin_box_dir_t Create new twin_widget_layout_t holding layout preferences. Add copy_geom field to widget to make widgets look the same Add button signals and signal proc. Fix box layout to sum stretch along axis and minimize normal Add calculator demo
2004-10-27Move bevel routine to twin_widget for sharingKeith Packard1-0/+20
Change order of timeout vs work, making work come last as that's where redisplay occurs. Oops. Argument order wrong in twin_pixmap_damage call Make button italic to test Change names of formals to match prototype
2004-10-27Paint polygons instead of stroked lines for button edgesKeith Packard1-0/+11
Snap origin to pixel grid Strip newline from ctime output
2004-10-26Add button widgetKeith Packard1-0/+30
Grab button down inside client area. Add button widget Test button widget Permit subclassing; add offset to make text shift in button Add _twin_widget_contains to test inclusion Grab button down inside client area Make hello window larger
2004-10-26Add initial widget implementation.Keith Packard1-0/+46
Fix numbers to have the same width. Add new relative-origin clip setting function Change enumerated constants to include Twin prefix Add new widget-based demo Start widget based demo
2004-10-25Add dispatch stuff to manage timeouts, workprocs and files. Remove threadKeith Packard1-0/+68
stuff Split demos into separate files Make drawing origin match clip rectangle. twin_fedit Add glyph editor to CVS to preserve it Add scalable icons Separate 'closing' a subpath from 'finishing' a subpath; the former adds a point back to the start while the latter just leaves the path unclosed and prepares for a new subpath. Eliminate locking, add clipping. Clean up title drawing, use clipping Eliminate locking, use dispatch stuff
2004-10-06Add patterns.Keith Packard1-0/+20
Add screen backgrounds Eliminate spurious border bits Add text display applet
2004-10-06Add the beginings of event dispatch and a bit of window managementKeith Packard1-0/+32
including titles. Default event dispatcher does restacking and motion.
2004-10-05Update API to use twin_ types for most everything.Keith Packard1-0/+27
Rework snapping to correctly snap vertical and horizontal text on pixel boundaries. Change clock watermark
2004-10-04Recognize a few special cases to speed up operationsKeith Packard1-0/+11
Fix angular problems in hand position by rotating everything 90 degrees.
2004-10-04Delete old glyph representation support code.Keith Packard1-0/+14
Oops -- overflow not handled correctly in distance functions. Replace new glyphs with versions using splines. Whack around the default presentation a bit more
2004-10-04Fix a clipping bugKeith Packard1-0/+32
Change glyph representation to allow splines and include metrics. Add some new helper functions. Expose _twin_path_scurve for glyphs Increase sin table precision. Fix off-by-one error in y position. Lock screen while adding expose damage Change clock appearance. Use corrected glyph metrics
2004-10-02Add put_begin to screen structure so that the backend can batch updates.Keith Packard1-0/+33
Add twin_int_to_fixed. Inline twin_fixed_mul and twin_fixed_div using int64_t. Add twin_text_metrics_utf8. Hard-code the max number of vertices in a glyph. Set various ICCCM properties to make X wms happy. Use better approximation of ellipse major axis radius when drawing circles. Compiler warning. Delete duplicate twin_over definition Allow for multiple clocks, and add watermark. Note that text metrics are quite broken currently.
2004-09-30Handle unhinted text.Keith Packard1-0/+37
Add helper functions Lock pixmaps during drawing Disable screen updates while applications are busy Add threads to manage events and redisplay Paint a clock
2004-09-28Add some more fixed point functionsKeith Packard1-0/+22
Reimplement text snapping. Note that things are snapped to user units, not pixels. Snapping to pixels requires some thought about rotating transformations. Oops. Closed paths don't necessarily need to join ends, but circles do. Random new tests.
2004-09-27Add affine transformation support. Fix convex hull to eliminate all pointsKeith Packard1-0/+41
colinear with extreme. Note that text snapping is currently broken.
2004-09-26Eliminate special case for closed paths. Just draw caps at both ends andKeith Packard1-0/+17
accept that the resulting path isn't minimal in all cases. This eliminates the weird results from said attempted minimal path with large pens and small curves. It also eliminated a lot of extra code from this function. Fix font baseline value (should be 9). Take pen size into account when computing positions so that glyphs rest on the baseline instead of painting on top of it. Show baseline in huge text sample
2004-09-26Hmm. Not sure this is right, but I'm giving it a try. Recognize closedKeith Packard1-0/+28
paths and attempt to construct two disjoint paths as their convolution with the pen. This appears to break when the path has a radius of curvature smaller than the radius of the pen. I'm committing it to CVS mostly so I don't lose the code; I will shortly commit a patch which eliminates the check for a closed path. Oh, one correct change is to _twin_path_leftpoint which used to try to be clever about point selection. Now that pens are forced to be convex, the correct point to use is the one furthest from the line. Ignore subpaths containing a single point. Add 'twin_path_append' to glue one path into another. Add debug output that shows vertices of polygons Code to test convolution change mentioned above
2004-09-25Spurious ) in fileKeith Packard1-0/+5
2004-09-25Reduce emboldening to +50% stroke thickness. Clean up debug code. EliminateKeith Packard1-0/+10
some dead code. Try to adjust width computations a bit. Still not right. draw in more colors
2004-09-25Switch to just supporting stroke fontsKeith Packard1-0/+23
Finish needed stroke font API. Elimiate all but ascii glyphs, use offset table to eliminate table of pointers (which can't be const) Remove twin_vera.c Change glyph structures around for offsets and ascii only Few more cases to show ascii text support
2004-09-25Add convex hull algorithm from cairo sources. Used to constrain pens toKeith Packard1-0/+37
convex shapes so that the convolution algorithm works correctly. Reduce default tolerance to 1/16 of a pixel Use convex hull of pen. Snap horizontal and vertical elements of glyphs to pixel boundaries. Snap stem widths to integer amounts. Add slanting and emboldening Add space and box Avoid using __inline as it increases size dramatically Use <= tolerance_squared as that may be zero Swizzle code to show off recent changes
2004-09-24Fix twin_fixed_floor to work for negative values correctly AddKeith Packard1-0/+46
twin_path_cur_point fix twin_path_step to actually handle duplicate points. Change 'clockwise' to 'around_order' so that all three possible results are returned (clockwise, parallel and counterclockwise) Handle disjoint strokes Add outline and stroke font support (pick one and remove the other) Huge array of stroke fonts from Hershey. Pick appropriate subset and remove extra glyphs (there are a lot here) Eliminate repeated move and close, eliminate duplicate draw. Add support for 1, 4, 16 and 64 samples. 16 appears to be the magic sweet spot. Convert "real" outline fonts to twin built-ins Converted version of Bitstream Vera Sans Roman
2004-09-21Add a few definitionsKeith Packard1-0/+23
Find pen starting point as closest to the normal to the path. Restructure convolve loop to be easier to understand Round circle coordinates instead of truncating them Move sample grid by 1/2 sample step. Clip polygons to mask pixmap. Modest performance improvement in span filling. Fix end case to remove edges before stepping. Stroke a path.
2004-09-21Add convolution. Pen starting position needs work.Keith Packard1-0/+61
Move shared geometric functions to new file Add twin_path_circle to generate pens. Fix path edge generator to handle last subpath right. Skip vertices which don't span a sample row test convolutions Add .cvsignore file Mention path primitives Add paths Eliminate some unused variables. Simple path construction Anti-aliased polygon fill code Change twin_bool to twin_bool_t Append cubic Bézier splines to paths Test paths
2004-09-15Initial revisionKeith Packard1-0/+0