aboutsummaryrefslogtreecommitdiffstats
path: root/src/menu/container.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* menu: add get_component_at to get componentAlexander Sulfrian2013-01-181-0/+21
| | | | This is the basis for mouse focus handling.
* menu/container: add window_coords_changeAlexander Sulfrian2013-01-181-2/+16
| | | | | | 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.
* menu: fix calculate window coordinatesAlexander Sulfrian2013-01-181-3/+4
|
* menu/container: remove assertAlexander Sulfrian2013-01-131-1/+0
|
* menu/modelview_matrix_cache: add helper classAlexander Sulfrian2013-01-131-6/+3
| | | | | Use the new ModelviewMatrixCache to cache the current state of the opengl MODELVIEW_MATRIX.
* remove legacy keywords from file headerAlexander Sulfrian2013-01-131-2/+0
|
* menu: generalized frame_background to backgroundAlexander Sulfrian2013-01-131-0/+2
| | | | | | | | | background could now be a background for all DrawableControl instances each subclass should call the parents draw() during executing the draw() method for background painting TODO: background should know the size of the control to only draw the background there
* menu/contianer: element position should be relative to the container positionAlexander Sulfrian2013-01-131-0/+6
| | | | | | container should provide each of the containing elements' draw functions with its own position as base (store before drawing the first element and restore it after each drawing)
* menu/container: calculate window coordinatesAlexander Sulfrian2013-01-131-0/+36
| | | | | | 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)
* menu/container: clipping requires window coordinatesAlexander Sulfrian2013-01-131-2/+7
| | | | | | 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
* menu/container: cleanup while destruction of containerAlexander Sulfrian2013-01-131-0/+5
| | | | | | | | while a container is destructed, the parent of all containing controls will be removed, so that the controls it self do not try to unregister itself from the destroyed container later (while destruction the control class of the container and destroying all slave controls)
* menu/drawable_control: added size to controls and clip drawing if requestedAlexander Sulfrian2013-01-131-0/+2
| | | | | | if requested (set_clipping_required) DrawableControl will use ClippingHelper to setup glScissor befor drawing the content. container will request clipping by default
* menu/container: initialize frameAlexander Sulfrian2013-01-051-1/+1
|
* menu: frame should not be added to container item listAlexander Sulfrian2013-01-051-0/+5
| | | | | | | | | | | 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
* menu: keep frame in containerAlexander Sulfrian2013-01-051-0/+16
| | | | | before the current frame was stored in application, now every container could keep a frame and paint it before all other content
* menu/container: added logAlexander Sulfrian2013-01-051-0/+3
|
* menu: Container could contains and draw DrawableControlsAlexander Sulfrian2013-01-051-15/+14
| | | | | | DrawableControls register/unregister itself during construction/destruction at the Container (supplied as owner) and get automatically drawn
* changed from SDL rendering to OpenGLAlexander Sulfrian2013-01-051-3/+3
| | | | draw, repaint methods do not have the SDL_Surface* parameter anymore
* added SDL_Surface* display to all repaint/draw methodsAlexander Sulfrian2013-01-051-3/+3
|
* added parent to controlAlexander Sulfrian2013-01-051-1/+2
| | | | parent is used to delete the objects if the parent is deleted
* started gui frameworkAlexander Sulfrian2013-01-051-0/+58
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