| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
This is the basis for mouse focus handling.
|
|
|
|
| |
drawable controls could now disable the ability to receive focus
|
| |
|
| |
|
|
|
|
|
| |
if debug.boxes is true in configuration file, a red border is drawn
around all controls
|
|
|
|
|
|
| |
Some controls modify the modelview matrix during drawing their
contents. Restore it afterwards, so that other parts could be drawn
easily on top.
|
|
|
|
|
| |
Use everywhere a mutable boost::shared_mutex to enable locking during
const getter and the multiple reader and single writer pattern.
|
| |
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
| |
if requested (set_clipping_required) DrawableControl will use
ClippingHelper to setup glScissor befor drawing the content. container
will request clipping by default
|
|
|
|
|
| |
software_mouse_pointer does not need an own position anymore and
simply draw it without position change
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
| |
DrawableControls register/unregister itself during
construction/destruction at the Container (supplied as owner) and get
automatically drawn
|
|
|
|
| |
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
|