Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added basic cursor to TextInput #150

Open
wants to merge 900 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
900 commits
Select commit Hold shift + click to select a range
d9b0717
Added matching from HoverGroups to actual NodeIds
fschutt Dec 27, 2018
c2ea639
Added shitty :hover selection
fschutt Dec 27, 2018
e5518df
Removed SvgLayer in favor of better direct / indirect SvgLayerResource
fschutt Dec 28, 2018
bb3b0e8
Fixed compile errors in SVG parsing code
fschutt Dec 28, 2018
752be51
Fixed debug example for new SVG API
fschutt Dec 28, 2018
bc0b00c
Fix invisible font on macOS
Serdnad Jan 1, 2019
346accc
Fixed calculator example.
DataTriny Jan 2, 2019
585e08c
Reformatting.
DataTriny Jan 2, 2019
864de10
Merge pull request #85 from DataTriny/master
fschutt Jan 2, 2019
c1c6030
hard work so far
locks Jan 9, 2019
6e372bf
fixup! hard work so far
locks Jan 9, 2019
5072e38
Merge pull request #89 from locks/implement-background-size
fschutt Jan 9, 2019
3ef1b3f
Implement no-repeat, repeat, repeat-x, and repeat-y for background-re…
locks Jan 10, 2019
aaf3c22
Merge pull request #90 from locks/implement-background-repeat
fschutt Jan 14, 2019
5064c84
Impl Default for StyleBackgroundRepeat
fschutt Jan 14, 2019
dbca01a
Fix out-of-bounds access for RGBA images (fixes #88)
fschutt Jan 14, 2019
5098ab3
Vendor all dependencies into seperate monorepo
fschutt Jan 9, 2019
cd061ac
Added add_image_raw() for uploading images from RGBA buffers
fschutt Jan 16, 2019
f1ea00c
Re-export azul-dependencies
fschutt Jan 17, 2019
e751ed7
Update azul-dependencies to remove rayons tricks
fschutt Jan 17, 2019
55214e1
Re-export RawImageFormat
fschutt Jan 17, 2019
544eb77
Updated to simplecss-fork to allow :nth-child selectors
cubetastic33 Jan 18, 2019
b12b2b8
Update parser to handle :nth-child(even | odd | <number> | <pattern>)
fschutt Jan 18, 2019
52e7824
Fix wrong trim() usage, update hot_reload example
fschutt Jan 18, 2019
1707f8a
Added automatic redraw on :hover
fschutt Jan 18, 2019
ed14ae5
Fire On::MouseLeave events (not 100% working right now)
fschutt Jan 18, 2019
f092ccb
Added support for :hover and :active
fschutt Jan 19, 2019
2ae3450
Prepare stub API for EventFilter
fschutt Jan 19, 2019
c19b860
Impl From<On> for EventFilter
fschutt Jan 22, 2019
dcbbb79
First testing migration from On::* to EventFilter
fschutt Jan 22, 2019
78c0cad
Fix examples failing to compile with new EventFilter API
fschutt Jan 22, 2019
3c7e5c9
Removed webrender imports from widgets
fschutt Jan 23, 2019
62a82f0
Refactored rendering loop, UpdateScreen -> Option<()>
fschutt Jan 23, 2019
2eb505f
Fixed callbacks in examples for new UpdateScreen API
fschutt Jan 23, 2019
80014f9
Update README for new UpdateScreen API
fschutt Jan 23, 2019
adbf39a
Add .modify_clone() function to Arc<Mutex<T>>
fschutt Jan 23, 2019
711249c
Add ? to all .modify usages to prevent panics
fschutt Jan 23, 2019
a405527
Added .modify_opt() and .modify_opt_clone() to Arc<Mutex<T>>
fschutt Jan 23, 2019
f33df85
Fix CSS parser to parse nested CSS functions
fschutt Jan 24, 2019
b5157a0
Fix MouseEnter being treated as MouseHover (copy-paste bug, fixes #97).
fschutt Jan 25, 2019
4b60c80
Refator UiState
fschutt Jan 26, 2019
069024c
Refactor UiState to have hover and focus callbacks in separate maps
fschutt Jan 26, 2019
db8e20a
Hovered nodes are not a BTree, de-obfuscated logic for inserting Hove…
fschutt Jan 26, 2019
153a294
EventFilter API finished for Hover and Focus events
fschutt Jan 26, 2019
60df3d6
Update azul-dependencies (fixes #96)
fschutt Jan 26, 2019
7d44c6d
Renamed WindowEvent to CallbackInfo
fschutt Jan 27, 2019
32b37bb
Renamed WindowInfo to LayoutInfo
fschutt Jan 27, 2019
a7d953d
Update README for WindowEvent / WindowInfo renaming
fschutt Jan 27, 2019
ca93397
Added function to parse only CSS path
fschutt Jan 27, 2019
83a1355
Prepare focus API using .set_focus(CssPath)
fschutt Jan 27, 2019
1b7b693
Breaking change - use &mut CallbackInfo instead of CallbackInfo
fschutt Jan 27, 2019
4cddb69
Added function to update the focused div from callbacks
fschutt Jan 27, 2019
880987f
Correctly calculate clip_rect's origin for background repeat
locks Jan 27, 2019
c51cfdf
Merge pull request #98 from locks/fix-background-repeat
fschutt Jan 27, 2019
5b8f348
Partially fixed the Hover event + dragging demo
fschutt Jan 28, 2019
8ffad16
Fixed TextInput to react to focus events instead of hover events
fschutt Jan 28, 2019
0375f4d
Make CallbackInfo::set_focus() functional
fschutt Jan 28, 2019
7d91417
Remove "expected behaviour / actual behaviour" from issue template
fschutt Jan 29, 2019
e3cbcb9
Removed stray debug println
fschutt Jan 29, 2019
245053b
Preliminary XML-based parser system
fschutt Jan 29, 2019
425c3b6
Window and desktop events work, added KB input to calculator
fschutt Feb 4, 2019
c924f32
Refactor display list, prepare for overflow:hidden clipping
fschutt Feb 5, 2019
d14eb62
Fix bug in background no repeat logic
locks Feb 6, 2019
ab70cc1
Merge pull request #104 from locks/patch-1
fschutt Feb 7, 2019
d59c361
Refactoring and restyling of display list
fschutt Feb 7, 2019
761f2ff
Refactored background-repeat into separate function
fschutt Feb 7, 2019
f7a2dab
Refactored display list image uploading
fschutt Feb 7, 2019
ef21dc1
Make dom.arena deep-copy the arena, remove RefCell usage
fschutt Feb 7, 2019
8f7a6db
Create querying functions on CallbackInfo
fschutt Feb 7, 2019
53aae5a
Fixed unit tests, adjusted ParentNodesIterator to return Option<usize>
fschutt Feb 7, 2019
7b2859c
Re-export Node & NodeId
fschutt Feb 7, 2019
bef38e6
Add serde_derive as optional feature
fschutt Feb 7, 2019
2d00a01
Fixed copy-paste mistake (fixes #105)
fschutt Feb 9, 2019
2463ca5
Change ColorF in window options to be exposed in API
fschutt Feb 9, 2019
7b1ee7a
Resize GlWindow
trimental Feb 10, 2019
c8a5dfa
Only resize GlWindow on winit linux platforms
trimental Feb 10, 2019
58231d2
Merge pull request #106 from trimental/gl-resize
fschutt Feb 10, 2019
90c0b84
Make style module private, add `set_rotation`, `set_scale`, etc. for …
fschutt Feb 11, 2019
d2a693d
Added `SvgCache::clone_layer` in order to be able to clone SVG layers
fschutt Feb 11, 2019
ac8c9bf
Fixed compilation mistakes in SvgCache::clone_layer
fschutt Feb 11, 2019
62a8590
Only use windows_subsystem = "windows" in release mode (fixes #46)
fschutt Feb 11, 2019
210ecec
Add keymap() helper function for creating keymaps easily
fschutt Feb 11, 2019
61a4141
Fix CallbackInfo::clear_focus() to actually work
fschutt Feb 13, 2019
25d3c98
Fix crash in SvgCache::clone_layer() due to BorrowMut error
fschutt Feb 13, 2019
17fe8cd
Add WindowState::get_previous_window_state()
fschutt Feb 13, 2019
915d337
Fix SvgText::get_bbox() to use the SvgTransform of the SvgStyle
fschutt Feb 13, 2019
f14dc22
Add extra test for SvgBbbox::translate
fschutt Feb 13, 2019
ac8e131
WIP: Proper DPI handling
fschutt Jan 14, 2019
eca4c60
Fixup HiDPI to correct the wrong LogicalSize handling
fschutt Jan 14, 2019
1992c6f
Fix the reverse HiDPI multiplication factor
fschutt Jan 14, 2019
c5032e6
Fixed cursor position not accounting for HiDPI
fschutt Jan 15, 2019
2556b04
Fix compilation errors from rebasing old DPI handling onto master
fschutt Feb 15, 2019
386b9c1
Refactored daemons to have delay value
fschutt Feb 16, 2019
13cd511
Refactored image / font API to be generated by a macro
fschutt Feb 16, 2019
05c60a1
Fixed examples and documentation links for AppState API
fschutt Feb 16, 2019
d0a5157
Added ImageSource and ImageReloadError stub API
fschutt Feb 16, 2019
855872f
AppStateNoData can now start tasks and daemons (fixes #59)
fschutt Feb 16, 2019
8f5de01
Make stylesheets keep their order during specificy-sorting
fschutt Feb 16, 2019
c79e29f
Fix CSS selector path matching (fixes #93)
fschutt Feb 16, 2019
0fbe6bf
Update azul-css-parser to compile on nightly
fschutt Feb 16, 2019
02bc9dc
Fix GitHub auto-labeling issues
fschutt Feb 16, 2019
ef4b4ca
Added initial XML parsing (for hot-reloading UI files)
fschutt Feb 16, 2019
4bbe4c9
Initial stack-based XML parser
fschutt Feb 16, 2019
f62b4b9
Implemented full XML parser (for loading DOMs from XML files)
fschutt Feb 16, 2019
0c07dec
Expand <component/> to actual DOM nodes during hot-reload phase
fschutt Feb 17, 2019
711a197
Add Dom::from_str() and Dom::from_file()
fschutt Feb 17, 2019
32927ac
Fix parse_xml_string doc test
fschutt Feb 17, 2019
0903c3d
Added DivRenderer and TextRenderer, improved XML example
fschutt Feb 17, 2019
c9322c0
Fixed import for parse_xml_string doc-test
fschutt Feb 17, 2019
52287d2
Don't add line height to the first line
fschutt Feb 17, 2019
e6dfa13
Add LayoutTextResult::get_hit_glyph_idx
fschutt Feb 17, 2019
242b132
Fix flickering and black screen on startup (fixes #76)
fschutt Feb 17, 2019
7424504
Prevent flickering on startup, call layout() only once
fschutt Feb 17, 2019
5f0187f
Fix daemons with timeouts to fire correctly (fixes game_of_life example)
fschutt Feb 17, 2019
c2450ca
Fix compilation problems with --features="image_loading"
fschutt Feb 17, 2019
df3df70
Make Daemon::new() accept a callback directly
fschutt Feb 17, 2019
a98a5b0
Refactor push_opengl_texture slightly
fschutt Feb 18, 2019
2e63373
Calculate vertical advance correctly (fixes #101)
fschutt Feb 18, 2019
e52226d
Use " instead of ' in ui.xml
fschutt Feb 18, 2019
87d85a7
Fix examples and unit tests
fschutt Feb 18, 2019
63c3956
Refactored text_layout completely, added WordSpacing + TabWidth to Css
fschutt Feb 18, 2019
58e6785
Removed scrollbars for now, refactored display list
fschutt Feb 19, 2019
ed14308
Refactor RenderApi to reside inside of the AppResources
fschutt Feb 20, 2019
03be5ad
WIP: Refactored TextCache and AppResources, removed old scrollbar code
fschutt Feb 20, 2019
adca916
Implemented most of the resource handling code
fschutt Feb 21, 2019
f4d324a
Fix the last word to be included in the words
fschutt Feb 22, 2019
6a09d62
Finished font GC cleanup, refactored display list for push_text API
fschutt Feb 24, 2019
0f7b591
Reorganized text_layout, split_words now aware of Windows / Unix line…
fschutt Feb 24, 2019
bf29953
Fixed imports and RenderApi-related errors
fschutt Feb 24, 2019
5e06164
Fixed final compilation errors, move from DocumentId to PipelineId
fschutt Feb 25, 2019
0c735ca
Fixed examples and unit tests
fschutt Feb 25, 2019
3abfb73
Refactores ScrollbarInfo to mimick -webkit-scrollbar, make fields public
fschutt Feb 25, 2019
affcbd0
Prevent segfault on EventsLoop::new()
fschutt Feb 25, 2019
6907536
Bound OpenGL window correctly, no more segfault
fschutt Feb 25, 2019
0f6b9d1
Fixed multi-window event handling partially
fschutt Feb 25, 2019
bf3acb3
Create unique PipelineId vs DocumentId
fschutt Feb 25, 2019
6adb590
Add DomString to reduce memory allocations for &'static str
fschutt Feb 25, 2019
b7aade8
Share OpenGL context across all windows (prepare for multi-window apps)
fschutt Feb 26, 2019
80be3f3
Updated azul-dependencies - fix missing context sharing impl on Linux
fschutt Feb 26, 2019
606cb3b
Multi-window contexts now work correctly, but no drawing yet
fschutt Feb 26, 2019
834a989
Activate font / image GC for AppResources
fschutt Feb 26, 2019
3d3bf01
Temporarily disable asserts in text_layout + extra split_words test
fschutt Feb 26, 2019
3a72e74
Fixed font + image GC to work correctly
fschutt Feb 27, 2019
85d3ed8
Fix crash in text_layout - only count Words, not Space / Tab / Return
fschutt Feb 27, 2019
adebbb2
Update azul-dependencies: Fix compilation problems on Windows
fschutt Feb 28, 2019
b9f3635
Cleanup + comment render_inner function, render screen to separate FB
fschutt Feb 28, 2019
d68c013
Fixed rendering output texture to FBO, try blitting between windows
fschutt Feb 28, 2019
8196ea8
Fix crash when window has a width or height of zero
fschutt Feb 28, 2019
d7ab52a
Update azul-dependencies, screen still black but texture is created
fschutt Feb 28, 2019
2e0c0e3
Houston, we got a visual
fschutt Mar 1, 2019
d596846
Refactored window to only react to WindowEvent
fschutt Mar 1, 2019
7f3d380
Set all UI widths to None ("fixes" layout), use glViewport
fschutt Mar 1, 2019
164e711
Fix width of space advance
fschutt Mar 1, 2019
3fa9db9
Update azul-dependencies to reduce deps count on Linux
fschutt Mar 2, 2019
4f52172
Removed DesktopEventFilter
fschutt Mar 3, 2019
b79adce
Fixed font not showing up, merge BuiltinFont and ExternalFont
fschutt Mar 3, 2019
bf3e8cf
Fixed duplicated space bug, better Debug formatting for CSS values
fschutt Mar 3, 2019
61ff75f
Added LoadedFont (prepare migration of text shaping to HarfBuzz)
fschutt Mar 3, 2019
7add48d
Add initial HbFont (to convert from the font bytes to a HarfBuzz font)
fschutt Mar 3, 2019
544e122
Added HarfBuzz text shaping (not used yet)
fschutt Mar 3, 2019
57aeb00
Added HarfBuzz OpenType kerning detection
fschutt Mar 8, 2019
18f144a
Added HarfBuzz shaping example, fixed GlViewport for GL callbacks
fschutt Mar 9, 2019
da50e8d
Fixed a few bugs in the text layout
fschutt Mar 9, 2019
750912c
Fix compilation on Linux
fschutt Mar 4, 2019
e0dd742
Update azul-dependencies to fix crash on shutdown
fschutt Mar 9, 2019
a99d0d2
Bump rustc to 1.31 in order to use const fns
fschutt Mar 9, 2019
466fbbe
Words only stores sub-strings of a larger string, remove RenderApi fr…
fschutt Mar 9, 2019
a4e5cc7
Fixed text layout: split_words function was not working correctly
fschutt Mar 9, 2019
ec0aa94
Fixed unit tests for word breaking
fschutt Mar 10, 2019
841cc2b
Correct README: required compiler is now 1.31 + fix compile warnings
fschutt Mar 10, 2019
1a07fc1
Mostly fixed text layout spacing
fschutt Mar 10, 2019
426792c
Fix last space not being incorporated in the text spacing
fschutt Mar 10, 2019
d80c847
Subtract padding from text rectangle before laying out text
fschutt Mar 10, 2019
3c2f75f
Fixed single letter not being broken into Words correctly
fschutt Mar 11, 2019
efb8dd2
Fixed letter-spacing to be applied correctly
fschutt Mar 11, 2019
33d1836
fix typo
stubbfel Mar 12, 2019
809cc3c
Merge pull request #120 from stubbfel/patch-1
fschutt Mar 12, 2019
795117d
Added double-return to <div> renderer
fschutt Mar 13, 2019
a0a9c0b
Working on function arguments for XML components, WIP
fschutt Mar 14, 2019
750bcb7
Added parsing for ComponentArguments
fschutt Mar 14, 2019
9f08e2b
Added function to normalize casing during parsing step
fschutt Mar 14, 2019
44779a6
Updated component rendering to prepare for function arguments
fschutt Mar 15, 2019
bee701e
Added warning for useless XML arguments
fschutt Mar 15, 2019
eb2381b
Added string interpolation to XML
fschutt Mar 15, 2019
b0679bb
Fixed inheritance / scoping of variables in XML
fschutt Mar 15, 2019
4d6e92b
WIP: Implement Rust code generation
fschutt Mar 16, 2019
0141124
Fixed compile errors, removed unnecessary .replace() in text_layout
fschutt Mar 17, 2019
29a6273
Fixed unit tests (compile_dom currently fails)
fschutt Mar 17, 2019
f1f9f4f
Added initial diffing plan
fschutt Mar 17, 2019
3087fb7
Moved async helper into /async.rs, added Thread<T>
fschutt Mar 17, 2019
4f27ade
Renamed Daemon -> Timer
fschutt Mar 17, 2019
a1e2688
Moved AppResources into app module, merged app_state.rs and app.rs
fschutt Mar 17, 2019
c2bed1a
Added images.rs to app_resources.rs
fschutt Mar 17, 2019
4ba38b5
Merged default_callbacks.rs and foucs.rs into callbacks.rs file
fschutt Mar 17, 2019
9c3b1ff
Merged text_cache.rs into app_resources.rs, fixed various re-export e…
fschutt Mar 17, 2019
3523dcb
Moved all *Callback types into /callbacks.rs
fschutt Mar 17, 2019
9f09e65
Make letter-spacing cluster-based instead of glyph-based
fschutt Mar 17, 2019
39bdb39
Make cluster-counting iterator-based to remove dynamic allocations
fschutt Mar 18, 2019
6b0faa8
Updated documentation of items + main lib.rs docs
fschutt Mar 18, 2019
71247e9
Remove unnecessary const to make Azul compile on 1.31.0
fschutt Mar 18, 2019
7b43e57
Fixed non-ASCII letter-spacing (off-by-one error)
fschutt Mar 18, 2019
6d0abd0
Normalize feature flags to use underscores everywhere
fschutt Mar 18, 2019
151667a
Reserve proper space for items
fschutt Mar 18, 2019
089e24a
Layout solver: Use proper content heights
fschutt Mar 18, 2019
0b0a9af
Added documentation + autogenerated doc-tests for CSS
fschutt Mar 19, 2019
e4fbbec
Added more documentation, removed FontInstanceKey from text layout
fschutt Mar 19, 2019
2ee3de4
Make FontInstanceKey external to the text layout
fschutt Mar 19, 2019
a1ffab0
Updated SVG widget for new text layout API
fschutt Mar 19, 2019
98727c5
Fixed compilation errors with --features="image_loading", updated tra…
fschutt Mar 19, 2019
fccd19c
Rebase positioned_words onto master
fschutt Mar 19, 2019
52ba902
fix typo
stubbfel Mar 12, 2019
a33ff5c
Merge latest changes from /positioned_words into master
fschutt Mar 19, 2019
efaedc0
Fixed compilation errors in debug example
fschutt Mar 19, 2019
83a25ba
Fixed compilation errors in async example
fschutt Mar 21, 2019
7913bc4
Fixed doc and unit tests
fschutt Mar 21, 2019
aa7f5b9
Moved examples into their respective sub-folders, added docs to XML demo
fschutt Mar 23, 2019
12faecd
Fixed parse_border_style to allow rgb() values
fschutt Mar 24, 2019
a952796
Fixed parsing problem with border colors
fschutt Mar 24, 2019
704abd8
Make TextLayoutOptions.line_height f32-based
fschutt Mar 24, 2019
ddc84e9
Fix documentation in /ui_solver.rs
fschutt Mar 27, 2019
0599d5f
Fixed public re-export of window_state (compiler bug workaround)
fschutt Mar 30, 2019
3c3feac
Make window show on first redraw, update example in README
fschutt Mar 31, 2019
0b082e9
Fixed bugs in CSS gradient parsing
tobia Mar 31, 2019
628e9aa
Merge pull request #133 from tobia/master
fschutt Mar 31, 2019
f3e0c05
Update azul-dependencies to fix CI not building on Linux
fschutt Apr 1, 2019
16d4697
Update paths to use crate::* (prepare update to Rust 2018)
fschutt Apr 2, 2019
e691987
Code style cleanup, prepare CSS styling for parallelization
fschutt Apr 2, 2019
27f6a7e
Re-add inheritance to CSS, this time split into parallelizable work u…
fschutt Apr 2, 2019
e6d32ab
Fixed &lt; replacement in XML
fschutt Apr 2, 2019
7d4f326
Fixed the margin bug, margins now affect the flex-grow value correctly
fschutt Apr 2, 2019
5e0ec99
Remove StyleBackgroundColor and use StyleBackground::Color instead
fschutt Apr 2, 2019
87f3fb2
Fix HarfBuzz not returning glyph indices on Linux (fixes #125)
fschutt Apr 3, 2019
d62920f
Remove T: Layout bound on all types except App<T>
fschutt Apr 3, 2019
d62fb05
Fixe unit tests to not require T: Layout anymore
fschutt Apr 3, 2019
7e028f8
Added Dom::mock_from_xml
fschutt Apr 3, 2019
95aede7
Fix unit testing function, add Dom::assert_eq
fschutt Apr 3, 2019
987177d
Fixed compilation error in release mode, exported GlyphInfo and Glyph…
fschutt Apr 4, 2019
e805c1c
Remove stray println (fixes #136)
fschutt Apr 4, 2019
1eef922
Update example in README
fschutt Apr 7, 2019
a86cfdf
Use correct resource paths for text shaping example
ForLoveOfCats Apr 8, 2019
8d3ce24
Merge pull request #143 from ForLoveOfCats/master
fschutt Apr 8, 2019
9fa6a87
added children/target children convenience methods on CallbackInfo
Apr 9, 2019
45cda61
added update_cursor_position in TextInputState
Apr 10, 2019
e35f437
Added hello_world counter example to check if wiki / README are outdated
fschutt Apr 10, 2019
ec15170
Fixed multi-window rendering not updating the display properly
fschutt Apr 4, 2019
50d9ca8
Fix display refresh (fixes #139)
fschutt Apr 11, 2019
f089200
moved layout result to UiState to pass it to callbacks instead of on …
Apr 11, 2019
4977c54
Merge branch 'master' into master
Apr 11, 2019
47a0c00
removed an unused import
Apr 11, 2019
50d5161
Merge branch 'master' of https://github.com/mjhouse/azul
Apr 11, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
name: Bug report
about: Report a problem encountered while using azul
labels: bug
---

## Description
<!--
Please provide a detailed description of the behavior you're seeing or the behavior
you'd like to see **below** this comment.
-->

## Version / OS
<!--
Required. Please fill out the following fields.
-->

* azul version:


* Operating system:


* Windowing system (X11 or Wayland, Linux only):


## Steps to Reproduce
<!--
List the steps to reproduce your issue **below** this comment
-->


## Additional Information
<!--
Place any additional information, configuration, or data that might be necessary
to reproduce the issue **below** this comment.

If you have screen shots or gifs that demonstrate the issue, please include them.
-->

29 changes: 29 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
name: Feature request
about: Suggest an idea to improve azul
labels: feature-request
---

## Description
<!--
A clear and concise description of what the current problem is.
Ex. "I have an issue when [...]"
-->

## Describe your solution
<!--
A clear and concise description of what you want to happen. Add any considered drawbacks.
-->

## Are there alternatives or drawbacks?
<!--
Are there alternative solutions for this feature? Are there drawbacks to the current state?
-->

## Is this a breaking change
<!--
Do people need to update their code when the new feature is implemented?
-->

## Additional notes

6 changes: 6 additions & 0 deletions .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
name: Question
about: Ask a question / problem when using azul
labels: question
---

4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
target/
**/*.rs.bk
Cargo.lock
*.pdf
*.sublime-project
.vscode/*
*.log
*.log
.idea/*
65 changes: 35 additions & 30 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,47 @@
language: rust

sudo: false

cache: cargo
sudo: required
rust:
- stable
- beta
- nightly
- 1.31.0

os:
- linux
# - osx

matrix:
allow_failures:
- rust: nightly
fast_finish: true

notifications:
email: false

# We can't test OpenGL 3.2 on Travis, the shader compilation fails
# because glium does a check first if it has a OGL 3.2 context
script:
- cargo check --verbose --all-features
- cargo check --verbose --examples
- cargo check --no-default-features
- cargo check --no-default-features --features="svg"
- cargo check --no-default-features --features="image_loading"
- cargo check --no-default-features --features="logging"
- cargo check --verbose --release --all-features
- RUST_BACKTRACE=1 cargo test --verbose --all-features

env:
global:
- RUSTFLAGS="-C link-dead-code"
install:
- PATH=$PATH:/home/travis/.cargo/bin

addons:
apt:
update: true
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- cmake
- gcc
- binutils-dev
- libiberty-dev
- libcurl4-openssl-dev # for kcov
- libelf-dev # for kcov
- libdw-dev # for kcov
- cmake # for kcov
- binutils-dev # for kcov
- libiberty-dev # for kcov

after_success: |
wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz &&
tar xzf master.tar.gz &&
cd kcov-master &&
mkdir build &&
cd build &&
cmake .. &&
make &&
make install DESTDIR=../../kcov-build &&
cd ../.. &&
rm -rf kcov-master &&
for file in target/debug/azul-*[^\.d]; do mkdir -p "target/cov/$(basename $file)"; ./kcov-build/usr/local/bin/kcov --exclude-pattern=/.cargo,/usr/lib --verify "target/cov/$(basename $file)" "$file"; done &&
bash <(curl -s https://codecov.io/bash) &&
echo "Uploaded code coverage"
tar xzf master.tar.gz && mkdir kcov-master/build && cd kcov-master/build && cmake .. && make &&
sudo make install && cd ../.. &&
kcov --verify --coveralls-id=$TRAVIS_JOB_ID --exclude-pattern=/.cargo target/kcov $(find target/debug -maxdepth 1 -executable -name azul-\*)
Loading