Commit Graph

96 Commits

Author SHA1 Message Date
efbe5cd9e6 remove debug message 2017-04-25 12:12:12 +08:00
daa3df2cd5 [Big Update] Widget Update 2017-04-25 12:10:06 +08:00
d9fd64718e Update Event 2017-04-25 12:09:35 +08:00
ed614e9fc6 Fix bug in PosInfo::getArea 2017-04-25 10:22:21 +08:00
f5bb092f79 Add KeyEvent 2017-04-25 10:18:26 +08:00
b9daea0f25 Add namespace MiniEngine::EventSystem 2017-04-25 10:15:12 +08:00
d266d1e128 Update Event 2017-04-24 10:32:00 +08:00
ebe2ce68bb Add class Processbar definition 2017-04-23 22:00:59 +08:00
ee2d6a5aaf Disable Renderer::isClipEnabled()
We met an runtime error while starting the test program using this
function. So we have to disable it.
2017-04-08 20:58:24 +08:00
0ca3a34d7a Merge branch 'mingw-dev-renderer' into mingw-dev-event
Recently we have heard about great updates in their branch on Renderer.
We merge it into our branch to make brush powerful.
2017-04-07 16:55:31 +08:00
6b53686383 Add support for Viewport and ClipRect setting.
New Method in class Renderer: setViewport/getViewport ,
setClipRect/getClipRect... , drawLine
class Rect can be initialized from SDL_Rect now.
2017-04-07 16:39:35 +08:00
e5507cf505 [Update] Add ColorButton. Fix Frame,Board.
We have seperated the list in class Board to two.
New Button Class: ColorButton added.
2017-04-07 16:00:40 +08:00
4630a157dc [Big Update] New Widget with new event framework
New Event Framework
Events from SDL2 will be dispatched in Frame::run(). In class Frame,
events are dispatched to Board::event(), and Board with dispatched them
to inner Board or Widget.
If an event is not solved, the Frame will try to solve it.
2017-04-06 21:53:53 +08:00
6ec7a5c77a Merge branch 'mingw-dev-renderer' into mingw-dev-event
We need to update class Brush. As class Renderer has changed in this
branch, we merge it into our branch to catch up with their work.
2017-04-06 12:32:35 +08:00
49a0db30d1 Delete Board, add new ButtonBase 2017-04-06 12:32:07 +08:00
0d4b0a534d Add MouseMotionEvent. Fix MouseButtonEvent 2017-04-05 12:20:13 +08:00
fb6bee96a7 [Fix Bug] Renderer Settings
We changed shared_ptr to weak_ptr in class Renderer and add a Renderer
shared_ptr in class Window.
Now, after calling Window::setRenderer, the original renderer is not
avaliable (SDL_Renderer* is NULL). And a new valid renderer is created.
2017-04-05 11:52:14 +08:00
af18ae23da Fix bug in setRenderer 2017-04-05 11:43:01 +08:00
f78eb839bf Rewrite setRenderer with template 2017-04-05 11:16:44 +08:00
592a4bbae4 Add Font Style Support 2017-04-05 09:23:13 +08:00
660ae74c52 Add EventBase and EventHandleBase 2017-04-05 08:34:01 +08:00
f1d9f79ba5 Add EventBase and EventHandler 2017-04-04 21:56:19 +08:00
f3b1b2208c Add Timer Support 2017-04-04 20:33:41 +08:00
499c25ddd3 Remove Event Handling in main file 2017-04-04 09:49:18 +08:00
ccb47aad08 Add Start Paramenters API 2017-03-30 11:16:57 +08:00
c6bad3df80 C4droid does not support SDL_Drop... 2017-03-24 21:08:01 +08:00
32f91125e9 Add LogSystem 2017-03-24 13:50:48 +08:00
813de57b40 Merge pull request #1 from Kiritow/vs-dev
Accept Changes From Branch vs-dev
2017-03-24 11:12:24 +08:00
9a632324b7 Add TextInput in SDLSystem 2017-03-24 11:07:27 +08:00
73e5be6763 Fix bugs in UTF8ToGBK and GBKToUTF8
GBK->UTF8 x/2*3 UTF8->GBK x/3*2
2017-03-24 10:59:35 +08:00
c7c59975ca Add Font::ready()
Now we can check if a Font Object is Ready. ( Font Library Loaded )
2017-03-24 10:46:33 +08:00
dcd2d333b8 Fix File Operating functions in Windows Specific Version 2017-03-24 10:35:20 +08:00
7fdf0f06e5 Accept changes from brench 'vs-dev' 2017-03-23 19:28:06 +08:00
1d84c5aa76 File operating functions now with ifdef. 2017-03-23 18:47:51 +08:00
23553b1330 Set Renderer::Renderer() to public
Renderer::isReady() is added to check if the renderer is ready.
2017-03-23 14:01:06 +08:00
0ec40c6270 Bug Fixed: Font::render...
Bug Fixed in class Font::renderText ( and its family functions )
These functions cause exceptions while testing on Visual Studio. And we
soon found 'SDL_FreeSurface' was not used in 'reset' method of shared_ptr.
Now we have fixed it.
2017-03-23 13:41:24 +08:00
0bd9811452 Visual Studio Special Version
We have met a few problems on Visual Studio.
We have to change the header and source file to pass the compilation.
2017-03-23 12:22:02 +08:00
7ae6b3442a Add SuperCopy.
Use: SDL_RenderCopyEx
2017-03-21 17:03:03 +08:00
2c1f055a49 SimpleMessageBox are supported.
Use: SDL_ShowSimpleMessageBox
2017-03-21 13:58:48 +08:00
3e0b0739ba Add PowerState Support. 2017-03-21 12:30:29 +08:00
ea9e6e8ac4 [New] Add drawPoint to Renderer 2017-03-14 17:29:22 +08:00
e0747bb37e Update README.md 2017-03-10 08:11:04 +08:00
25a4ea82bb We Need RapidXML for XML Parsing (StringEngine) 2017-03-09 18:55:31 +08:00
a2e73c8793 StringEngine Added. 2017-03-09 18:53:18 +08:00
7dd70b971a StringEngine Added. 2017-03-09 18:52:57 +08:00
df4d96dfed Android Platform APIs Supported. 2017-03-09 18:00:19 +08:00
41979ef91d Update MiniEngine_Widget.cpp 2017-03-02 22:00:01 +08:00
b6395fec83 Update MiniEngine_Widget.h 2017-03-02 21:59:29 +08:00
0a2efcf8fe Update Brush,Board and BaseButton. 2017-03-02 21:00:53 +08:00
238f52a93e Update MiniEngine_Widget.h 2017-03-02 13:13:05 +08:00