This website requires JavaScript.
59d4612a61
layout: remove widget by raw ptr
origin/dev
dev
Andrea Blankenstijn
2022-02-17 18:34:44 +0100
d5b59a67ac
fix layout: set widget parent, tell parent to update geometry
Andrea Blankenstijn
2022-02-17 15:22:09 +0100
231499f24c
layout: + remove_widget
Andrea Blankenstijn
2022-02-16 17:48:25 +0100
3c5f5c8ea9
caption: fix text transparency
hsv-2
2022-02-08 19:20:47 +0100
4414326b56
Color: alway compare all values
hsv-2
2022-02-08 19:16:26 +0100
180e1f77fa
fix type in smoothstep
hsv-2
2022-02-08 19:15:44 +0100
f537d94c9c
caption default alignment
Andrea Blankenstijn
2022-02-05 19:45:24 +0100
01932cee20
theme optional in layout and don't do layout automatically on every widget addition
Andrea Blankenstijn
2022-02-05 19:20:40 +0100
72dd10ef06
use shared_ptr for widgets
Andrea Blankenstijn
2022-02-04 18:26:19 +0100
de607fdeb2
render scrollable area without texture
Andrea Blankenstijn
2022-02-02 19:49:51 +0100
1294806696
changes… and forgotten file
Andrea Blankenstijn
2022-02-01 20:48:54 +0100
6149c48664
default fonts in theme, custom with FontHandler. fix input highlight. render multiline text. remove default theme singleton. scrollable area texture alignment.
Andrea Blankenstijn
2022-02-01 19:07:24 +0100
3f15d1d857
scrollable (texture) area works
Andrea Blankenstijn
2022-01-26 22:49:41 +0100
af7b9803d2
more wip on api and also on a scrollable thing widget
Andrea Blankenstijn
2022-01-26 18:38:47 +0100
860b656bf7
more wip on api rewrites
Andrea Blankenstijn
2022-01-25 17:13:03 +0100
a36fe9cae5
big wip scrollbar, theme, api changes
Andrea Blankenstijn
2022-01-24 16:18:14 +0100
bac66748ec
Merge branch 'wip'
master
0.9.0
origin/master
origin/HEAD
Andrea Blankenstijn
2021-12-23 13:28:11 +0100
022899744b
missing cmath include
prototype01
origin/prototype01
prototype01
Andrea Blankenstijn
2021-12-23 13:44:39 +0100
a54dc9c2b2
some comment edits, readme draft
origin/wip
wip
Andrea Blankenstijn
2021-08-27 01:21:25 +0200
d8f56e0e5f
Delete OpaqueStruct and use directly fancy pointers now that I know how to set the deleter correctly.
Andrea Blankenstijn
2021-08-26 18:59:52 +0200
5f341149fa
clang-format header sorting conf fix. Some spacing and order of include/declaration changes.
Andrea Blankenstijn
2021-08-24 00:12:57 +0200
299b39ad28
little tweaks here and there.
Andrea Blankenstijn
2021-08-24 00:10:09 +0200
dc243a9fdf
little fixes here and there.
Andrea Blankenstijn
2021-08-24 00:00:28 +0200
f6ae2c51e8
Comment a bit the code.
Andrea Blankenstijn
2021-08-23 23:50:14 +0200
5020eab828
remove some asserts and use exceptions for the remaining ones.
Andrea Blankenstijn
2021-08-23 18:41:11 +0200
0c0b03aeac
fix sdl include path
Andrea Blankenstijn
2021-08-23 00:00:57 +0200
a19d2ea6bd
- mark as const every single read only variable. - mark as const every pointer that can be const. - in implementation mark const args passed by value that are meant to be read-only. - wrap in a lambda complex initializations of (const) values. - argument passing: - pass by value arguments of cheap-to-copy types or meant to be copied anyway. - pass by (const) reference args not meant to outlive called function scope and not cheap-to-copy. - pass (const) pointers to (const) args when null is a valid option and pointed data aren't expected to outlive function scope. - use string_view for non-owned strings (not meant to outlive function scope). - use span for collection types like vector and arrays. - fancy pointers passing: - pass by value if a reference will be held: - pass by const reference if a reference _may_ be hell. - when no references are meant to be held: - dereference the pointer to pass the pointed data by reference if null is not an option. - pass the underlying raw pointer if null is an option. … and random subtle changes and fixes here and there that I forgot to mention.
Andrea Blankenstijn
2021-08-21 20:59:39 +0200
76d319fb69
trash commit, style, small api changes (ref vs ptr) and who knows
Andrea Blankenstijn
2021-08-19 15:00:44 +0200
6a14cd635d
almost finished work on interface-impl separation
Andrea Blankenstijn
2021-08-18 18:27:48 +0200
880748276a
input interface-impl separation
Andrea Blankenstijn
2021-08-17 18:00:27 +0200
76a8bb6140
inheritance fixes
Andrea Blankenstijn
2021-08-17 17:59:34 +0200
eb777db6dd
layout interface-api separation
Andrea Blankenstijn
2021-08-17 12:10:41 +0200
620b66d622
add missing caption impl header
Andrea Blankenstijn
2021-08-17 12:09:03 +0200
fbaabd5aa7
button interface-api separation
Andrea Blankenstijn
2021-08-17 11:40:03 +0200
0eb300ceeb
caption interface-api separation
Andrea Blankenstijn
2021-08-17 11:00:18 +0200
bb934d4f86
separate widget interface-implementation
Andrea Blankenstijn
2021-08-17 00:27:51 +0200
9e6e0a1d4c
rewrite how events are held
Andrea Blankenstijn
2021-08-15 20:04:53 +0200
d9eccc940a
rewrite how events are held
Andrea Blankenstijn
2021-08-15 20:04:53 +0200
c07dbfe8ff
rewrite how events are held
origin/better_event_handler_intent
better_event_handler_intent
Andrea Blankenstijn
2021-08-15 20:04:53 +0200
07f7061c20
public api before private members
Andrea Blankenstijn
2021-08-15 16:13:05 +0200
2c344ecee5
well, finally I don't doxygen for the moment
Andrea Blankenstijn
2021-08-15 16:12:45 +0200
2d21c6e320
aesthetic
Andrea Blankenstijn
2021-08-14 16:45:30 +0200
7fcb8b84a9
explicit single arg ctor
Andrea Blankenstijn
2021-08-14 16:44:47 +0200
8b69227fe2
fix success_or_throw
Andrea Blankenstijn
2021-08-14 16:43:25 +0200
3458ca123b
pass by value vs by ref thing
Andrea Blankenstijn
2021-08-14 16:37:02 +0200
478ed90d1f
use a lambda instead of a function for atexit
Andrea Blankenstijn
2021-08-14 12:19:16 +0200
58300d08d5
owner semantic "maybe be shared owner" (const shared_ptr&)
Andrea Blankenstijn
2021-08-14 12:14:34 +0200
6ba5d7fc1c
enable widget debug outline when BWIDGETS_DEBUG is defined
Andrea Blankenstijn
2021-08-14 12:05:24 +0200
b11d574d9c
constructor style refactor
Andrea Blankenstijn
2021-08-14 11:50:37 +0200
280575a0e2
make aligned layout orientation a template parameter.
Andrea Blankenstijn
2021-08-14 11:20:26 +0200
718af15b07
don't inherit directly from std::excption but from derived type and use their constructor.
Andrea Blankenstijn
2021-08-14 11:04:48 +0200
50a324cc95
button border gradient lambda deduplication
Andrea Blankenstijn
2021-08-14 10:20:00 +0200
ab34a95027
fix error checking
Andrea Blankenstijn
2021-08-14 10:18:31 +0200
3570cf301a
format code
Andrea Blankenstijn
2021-08-14 09:25:28 +0200
151c502472
explicitly initialize value to shut up linter
Andrea Blankenstijn
2021-08-14 09:25:18 +0200
524f7511af
exception: default 'what' to 'unknown'
Andrea Blankenstijn
2021-08-14 09:24:19 +0200
7c5277dabd
They say members defined in header are implicitly inline. Also remove the static from static inline (is that C specific?)
Andrea Blankenstijn
2021-08-14 09:17:51 +0200
5476836208
Put operator overloads for Size outside class
Andrea Blankenstijn
2021-08-13 22:04:10 +0200
f0e89f837b
Simplify exceptions
Andrea Blankenstijn
2021-08-13 22:00:42 +0200
e52b55f460
delete default copy/move ctor/operator=, default default ctor and destructor
Andrea Blankenstijn
2021-08-12 23:50:22 +0200
f78fa82ae8
better smart ptr owner semantic
Andrea Blankenstijn
2021-08-12 23:27:09 +0200
494b638e2c
use unique_ptr in layout
Andrea Blankenstijn
2021-08-12 23:17:00 +0200
d7abc49d07
remove useless calls to Color::operator()
Andrea Blankenstijn
2021-08-12 16:38:55 +0200
86c28dd36b
use std::chrono instead of SDL_GetTicks
Andrea Blankenstijn
2021-08-12 16:30:00 +0200
5cb15abe11
code formatting.
Andrea Blankenstijn
2021-08-12 16:10:49 +0200
d1cd97809e
littles things
Andrea Blankenstijn
2021-08-12 16:09:26 +0200
d3be108df6
don't pass by ref scalar types, copy them.
Andrea Blankenstijn
2021-08-12 16:08:08 +0200
85837167fe
fix: layout didn't call Widget constructor.
Andrea Blankenstijn
2021-08-12 16:06:33 +0200
09dffb63dd
undo test thing
Andrea Blankenstijn
2021-08-12 16:05:11 +0200
d78a6b0f0e
initialize static members in source file.
Andrea Blankenstijn
2021-08-12 16:04:02 +0200
43dd6ab820
use raw ptr instead of fancy one when no references are kept after function exit.
Andrea Blankenstijn
2021-08-12 15:55:47 +0200
0642d89803
Suppressed or defaulted constructors/assignment operators
Andrea Blankenstijn
2021-08-12 15:29:25 +0200
31763a4563
fix missing cmath include. don't understand how it compiled until now.
Andrea Blankenstijn
2021-08-12 15:22:58 +0200
c7bea043c2
rethink C opaque struct encapsulation
Andrea Blankenstijn
2021-08-11 15:52:07 +0200
79f83abe3b
smart ptr and a bit of doc
Andrea Blankenstijn
2021-08-10 23:48:19 +0200
e71a16208b
noexcept correctness intent
Andrea Blankenstijn
2021-08-08 16:00:22 +0200
4f82826bbc
constness
Andrea Blankenstijn
2021-08-08 14:30:56 +0200
cab6fa0cf4
wip general code improvement
Andrea Blankenstijn
2021-08-06 14:22:56 +0200
2d4c6e3694
Extract linear and smoothstep functions. Minor tweaks.
Andrea Blankenstijn
2021-08-01 11:12:54 +0200
13bdb970c0
config clang-tidy linter and fix code based on linting err/warn
Andrea Blankenstijn
2021-07-30 20:41:47 +0200
3b6e900a22
format code with custom clang-format style
Andrea Blankenstijn
2021-07-29 16:06:03 +0200
a83c4521e5
fix missing includes (for clang, gcc was working fine)
Andrea Blankenstijn
2021-07-29 15:31:39 +0200
657c7f852c
fix struct/class forward decl incoherence, forgotten override spec and make it compile with clang 12
Andrea Blankenstijn
2021-07-28 15:15:32 +0200
80576bdab8
fix memory leak in text rendering
Andrea Blankenstijn
2021-07-27 22:15:43 +0200
0dfc8cdf02
fix aa
Andrea Blankenstijn
2021-07-27 21:52:38 +0200
55fbd59c36
half workaround to fix corner glitch in draw_rect and minor changes
Andrea Blankenstijn
2021-07-26 22:57:28 +0200
369e1c1f1b
'fix' input widget size and set back dbg outline to vp boundaries
Andrea Blankenstijn
2021-07-24 22:07:28 +0200
ef294d67fc
rewrite template to discard pointers
Andrea Blankenstijn
2021-07-24 08:18:49 +0200
cc0bed2287
fix numeric input initial value to be in range
Andrea Blankenstijn
2021-07-23 22:32:56 +0200
4b87af7bc4
various changes and fixes
Andrea Blankenstijn
2021-07-23 20:08:52 +0200
e766162b1e
move input concepts to concepts file. includes reorder
origin/sdl_wrapper
sdl_wrapper
Andrea Blankenstijn
2021-07-20 15:20:46 +0200
1aab4948e9
minor change in example runner
Andrea Blankenstijn
2021-07-20 15:09:25 +0200
fbd680d11f
double default layout margins
Andrea Blankenstijn
2021-07-20 15:08:55 +0200
94f4536f45
fix layout margins
Andrea Blankenstijn
2021-07-20 15:05:14 +0200
ec0d85b97a
remove unused caption vertical alignment as we use all viewport height
Andrea Blankenstijn
2021-07-20 12:29:17 +0200
e884c27ccf
add missing examples
Andrea Blankenstijn
2021-07-20 12:12:29 +0200
57a95154c2
fix empty text rendering, remove useless regex in numeric input
Andrea Blankenstijn
2021-07-20 12:11:20 +0200
30c4205dab
some fixes and working sdl wrapper
Andrea Blankenstijn
2021-07-19 23:50:50 +0200
dd3ff9358a
big hierarchy refactor, some little changes, add Font class
Andrea Blankenstijn
2021-07-18 18:26:12 +0200
98f51426b8
basic sdl wrapper
Andrea Blankenstijn
2021-07-16 17:18:13 +0200