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

Basic container removal #88

Merged
merged 6 commits into from
Sep 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ FILE(GLOB GUISAN_HEADER include/guisan.hpp)
FILE(GLOB GUISAN_HEADERS
include/guisan/actionevent.hpp
include/guisan/actionlistener.hpp
include/guisan/basiccontainer.hpp
include/guisan/cliprectangle.hpp
include/guisan/color.hpp
include/guisan/containerevent.hpp
Expand Down
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
Version 1.1.0
=============
* BasicContainer and Widget has been merged making every Widget
a possible container. The merge makes it a lot easier to
implement container widgets. With the merge there is no need
for container widgets to explicitly call drawChildren and
logicChildren as that is now handled automatically by Widget.
* Rectangle has been enhanced with methods for adding rectangles,
getting the intersection between rectangles and checking if
a rectangle contains another rectangle.
Expand Down
2 changes: 0 additions & 2 deletions Guisan.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="src\actionevent.cpp" />
<ClCompile Include="src\basiccontainer.cpp" />
<ClCompile Include="src\cliprectangle.cpp" />
<ClCompile Include="src\color.cpp" />
<ClCompile Include="src\containerevent.cpp" />
Expand Down Expand Up @@ -196,7 +195,6 @@
<ClInclude Include="include\guisan.hpp" />
<ClInclude Include="include\guisan\actionevent.hpp" />
<ClInclude Include="include\guisan\actionlistener.hpp" />
<ClInclude Include="include\guisan\basiccontainer.hpp" />
<ClInclude Include="include\guisan\cliprectangle.hpp" />
<ClInclude Include="include\guisan\color.hpp" />
<ClInclude Include="include\guisan\containerevent.hpp" />
Expand Down
1 change: 0 additions & 1 deletion SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ SConscript('examples/SConscript')
common_headers = [
'include/guisan/actionevent.hpp',
'include/guisan/actionlistener.hpp',
'include/guisan/basiccontainer.hpp',
'include/guisan/cliprectangle.hpp',
'include/guisan/color.hpp',
'include/guisan/containerevent.hpp',
Expand Down
2 changes: 1 addition & 1 deletion TODO
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
* Continue rebasing from 4335d513e97c1f01f8bba5487932d1d5309459ca
* Continue rebasing from 636e1837a62cb3126d6a8554856c1219160161a9
* Add a focus listener interface.
* Make focus apply synchronously.
* Graphics and input objects for DirectX.
Expand Down
6 changes: 1 addition & 5 deletions demo/ff/src/ffcontainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,10 @@ void FFContainer::draw(gcn::Graphics* graphics)
{
graphics->setColor(c * (1.0 - i / 18.0));
graphics->fillRectangle(gcn::Rectangle(4, (i * height + 4),
getWidth()-8, (i * height ) + height));
getWidth()-8, (i * height ) + height));
}
}

graphics->pushClipArea(gcn::Rectangle(0, mCurrentSlide, getWidth(), getHeight()));
drawChildren(graphics);
graphics->popClipArea();

for (i = 5; i < getHeight()-10; i+=5)
{
graphics->drawImage(mVertical, 0, i);
Expand Down
240 changes: 0 additions & 240 deletions include/guisan/basiccontainer.hpp

This file was deleted.

Loading