virtualx-engine/scene/gui
Hein-Pieter van Braam 0e29f7974b Reduce unnecessary COW on Vector by make writing explicit
This commit makes operator[] on Vector const and adds a write proxy to it.  From
now on writes to Vectors need to happen through the .write proxy. So for
instance:

Vector<int> vec;
vec.push_back(10);
std::cout << vec[0] << std::endl;
vec.write[0] = 20;

Failing to use the .write proxy will cause a compilation error.

In addition COWable datatypes can now embed a CowData pointer to their data.
This means that String, CharString, and VMap no longer use or derive from
Vector.

_ALWAYS_INLINE_ and _FORCE_INLINE_ are now equivalent for debug and non-debug
builds. This is a lot faster for Vector in the editor and while running tests.
The reason why this difference used to exist is because force-inlined methods
used to give a bad debugging experience. After extensive testing with modern
compilers this is no longer the case.
2018-07-26 00:54:16 +02:00
..
base_button.cpp
base_button.h
box_container.cpp
box_container.h
button.cpp
button.h
center_container.cpp
center_container.h
check_box.cpp
check_box.h
check_button.cpp
check_button.h
color_picker.cpp
color_picker.h
color_rect.cpp
color_rect.h
container.cpp
container.h
control.cpp
control.h
dialogs.cpp
dialogs.h
file_dialog.cpp
file_dialog.h
gradient_edit.cpp
gradient_edit.h
graph_edit.cpp
graph_edit.h
graph_node.cpp
graph_node.h
grid_container.cpp
grid_container.h
item_list.cpp
item_list.h
label.cpp
label.h
line_edit.cpp
line_edit.h
link_button.cpp
link_button.h
margin_container.cpp
margin_container.h
menu_button.cpp
menu_button.h
nine_patch_rect.cpp
nine_patch_rect.h
option_button.cpp
option_button.h
panel.cpp
panel.h
panel_container.cpp
panel_container.h
popup.cpp
popup.h
popup_menu.cpp
popup_menu.h
progress_bar.cpp
progress_bar.h
range.cpp
range.h
reference_rect.cpp
reference_rect.h
rich_text_label.cpp
rich_text_label.h
scroll_bar.cpp
scroll_bar.h
scroll_container.cpp
scroll_container.h
SCsub
separator.cpp
separator.h
shortcut.cpp
shortcut.h
slider.cpp
slider.h
spin_box.cpp
spin_box.h
split_container.cpp
split_container.h
tab_container.cpp
tab_container.h
tabs.cpp
tabs.h
text_edit.cpp
text_edit.h
texture_button.cpp
texture_button.h
texture_progress.cpp
texture_progress.h
texture_rect.cpp
texture_rect.h
tool_button.cpp
tool_button.h
tree.cpp
tree.h
video_player.cpp
video_player.h
viewport_container.cpp
viewport_container.h