| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Class definitions have to end with a semicolon but not namespaces. So
remove this everywhere.
|
|
|
|
| |
This is the basis for mouse focus handling.
|
|
|
|
|
|
| |
The children container of a container have to be notified if the
window coordinates of the parent changed. The children have to
recalculate their own window coordinates.
|
| |
|
|
|
|
|
|
| |
the container have to keep the current window coordinates of its left,
bottom corner, therefor they have to be recalculated on every
size/position change (need virtual functions in DrawableControl)
|
|
|
|
|
|
| |
glScissor only work with window coordinates. to calculate that a
control has to know it position on the window and therefor the parent
container have to track the position in the window
|
|
|
|
|
|
|
|
|
|
|
| |
if a frame is constructed, it needs a container as parent to get the
size of it, but it should not be in the container item list and should
be painted first, to be under every component
the inner classes are used as helper classes, to be able to call a
virtual method in the constructor of drawable_control to decide
whether to add the control to the controls list of the container or
not
|
|
|
|
|
| |
before the current frame was stored in application, now every
container could keep a frame and paint it before all other content
|
| |
|
| |
|
|
|
|
|
|
| |
DrawableControls register/unregister itself during
construction/destruction at the Container (supplied as owner) and get
automatically drawn
|
|
|
|
| |
draw, repaint methods do not have the SDL_Surface* parameter anymore
|
| |
|
|
|
|
| |
parent is used to delete the objects if the parent is deleted
|
|
renamed menubackground to framebackground and splited out framebackgroundcolor
created control as base class
renamed draw to repaint and on_draw to draw in drawable
implemented drawablecontrol as base for all visible controls on windows
created container (subclass of drawablecontrol) that could contain other drawablecontrols
created frame (subclass of container) with a background
added openGL ldflag
|