Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2013-01-21 | menu/timer: use base/timestamp | Alexander Sulfrian | 3 | -15/+9 | |
2013-01-21 | utils/activator: removed unnecessary template | Alexander Sulfrian | 2 | -2/+2 | |
2013-01-21 | menu/application: add is_running | Alexander Sulfrian | 2 | -0/+7 | |
2013-01-21 | menu/application: add quit() to quit the app from everywhere | Alexander Sulfrian | 2 | -5/+11 | |
2013-01-21 | menu/application: add free to allow multiple runs | Alexander Sulfrian | 2 | -0/+8 | |
free() is used to reset the instance of this singleton, so that it gets recreated on the next access. This allows multiple creation/deletion cycles (for example in the tests). | |||||
2013-01-21 | menu/text: check error state first | Alexander Sulfrian | 1 | -2/+1 | |
2013-01-20 | menu/drawable_control: add signals for mouse events | Alexander Sulfrian | 2 | -0/+18 | |
2013-01-20 | fix includes | Alexander Sulfrian | 11 | -6/+31 | |
2013-01-20 | menu/drawable_control: add static member for debug boxes | Alexander Sulfrian | 2 | -6/+21 | |
2013-01-20 | menu/drawable_control: fix focus with clipping | Alexander Sulfrian | 1 | -0/+1 | |
2013-01-18 | menu/control: add include to fix build for gcc 4.6 | Robin Nehls | 1 | -0/+1 | |
2013-01-18 | menu: add mouse manager for handling mouse focus and clicks | Alexander Sulfrian | 5 | -0/+246 | |
2013-01-18 | menu/mouse_event: add wrapper for mouse events to detect dbl-clicks | Alexander Sulfrian | 2 | -0/+143 | |
2013-01-18 | menu: add get_component_at to get component | Alexander Sulfrian | 4 | -0/+49 | |
This is the basis for mouse focus handling. | |||||
2013-01-18 | menu/application: toggle debug boxes with d | Alexander Sulfrian | 1 | -0/+5 | |
2013-01-18 | drawable_control: add focusable property | Alexander Sulfrian | 3 | -2/+21 | |
drawable controls could now disable the ability to receive focus | |||||
2013-01-18 | text: resize text, if auto_size is enabled | Alexander Sulfrian | 1 | -2/+4 | |
Change the default for auto_size to false, so that it is not automatically resized during construction. | |||||
2013-01-18 | menu/container: add window_coords_change | Alexander Sulfrian | 2 | -2/+30 | |
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. | |||||
2013-01-18 | menu/static: remove empty line | Alexander Sulfrian | 1 | -1/+0 | |
2013-01-18 | menu/static: add getter for vertices_count | Alexander Sulfrian | 2 | -0/+6 | |
2013-01-18 | menu: mouse events now take points, not the single coords | Alexander Sulfrian | 4 | -16/+18 | |
2013-01-18 | menu: fix calculate window coordinates | Alexander Sulfrian | 4 | -4/+15 | |
2013-01-13 | menu/software_mouse_pointer: implement pressed state | Alexander Sulfrian | 2 | -4/+65 | |
2013-01-13 | menu/event_manager: add more mouse events | Alexander Sulfrian | 4 | -3/+13 | |
2013-01-13 | menu/background_*: vertices are only recalculated if the size changed | Alexander Sulfrian | 4 | -20/+66 | |
The size of the parent component is cached by the backgrounds and the vertices to draw the backgrounds are only calculated again, if the size of the parent component changed. | |||||
2013-01-13 | menu/background_image: remove the unused texture color | Alexander Sulfrian | 2 | -6/+1 | |
2013-01-13 | menu/texture: implement GlDelayedAllocation interface | Alexander Sulfrian | 6 | -45/+58 | |
Textures are now initialized during their first use, destroyed after their last used and could be use with the Activator. | |||||
2013-01-13 | add const where applicable | Alexander Sulfrian | 2 | -9/+17 | |
2013-01-13 | menu/background: use boost::noncopyable | Alexander Sulfrian | 1 | -10/+7 | |
2013-01-13 | menu/gl_delayed_allocation: add helper for opengl allocation | Alexander Sulfrian | 2 | -0/+159 | |
opengl allocation could not be done in the constructor of the opengl objects. The opengl calls only have effect when called form the opengl thread, but the objects could be constructed from other threads. The analogous applies to the destruction. This helper handles the allocation on first use from the opengl thread and frees the resources while calling dispose before real destruction (see Disposable). If dispose is called from the opengl thread, it frees the resources immediately, but if dispose is called from another thread it waits (blocks) until the next use from the opengl thread is complete. | |||||
2013-01-13 | menu: add some comments | Alexander Sulfrian | 6 | -6/+61 | |
2013-01-13 | menu/application: add possibility to query if ogl thread | Alexander Sulfrian | 2 | -0/+11 | |
opengl calls should only executed in the thread, that created the opengl context. To query whether the current thread is the opengl thread, the application class stores the current thread id of the opengl thread after initializing opengl. | |||||
2013-01-13 | menu: use RgbColor.get_array(?) magic everywhere | Alexander Sulfrian | 6 | -65/+13 | |
2013-01-13 | menu/text: basic handling of auto size | Alexander Sulfrian | 2 | -0/+18 | |
If auto_size is false the control is setup clipping, so that the outside parts of the control gets discarded. If auto_size enable, the drawn parts outside the component rectangle are drawn. TODO: currently the component dost not really change its size. This could be necessary for sensible regions. | |||||
2013-01-13 | menu: code style: change naming of bool-getter to is prefix | Alexander Sulfrian | 7 | -9/+9 | |
2013-01-13 | menu/static: code style: remove this/getter if not needed | Alexander Sulfrian | 1 | -4/+3 | |
2013-01-13 | base/config: add debug.boxes config option | Alexander Sulfrian | 1 | -0/+10 | |
if debug.boxes is true in configuration file, a red border is drawn around all controls | |||||
2013-01-13 | menu/static_rectangle: add implementation of static for rectangles | Alexander Sulfrian | 2 | -0/+100 | |
2013-01-13 | menu/static: add infrastructure for simple geometric types | Alexander Sulfrian | 2 | -0/+263 | |
2013-01-13 | menu/container: remove assert | Alexander Sulfrian | 1 | -1/+0 | |
2013-01-13 | base/config: add graphics.fullscreen option | Alexander Sulfrian | 1 | -5/+7 | |
2013-01-13 | menu: add some comments | Alexander Sulfrian | 2 | -3/+25 | |
2013-01-13 | base/config: add graphics.resolution config option | Alexander Sulfrian | 1 | -1/+2 | |
The resolution could controlled by the appropriate config option. The value from the config file is parsed/serialized with the DimensionTranslator. | |||||
2013-01-13 | base/config: add basic config infrastructure | Alexander Sulfrian | 2 | -1/+16 | |
2013-01-13 | menu/drawable_control: always cache modelview matrix | Alexander Sulfrian | 1 | -12/+17 | |
Some controls modify the modelview matrix during drawing their contents. Restore it afterwards, so that other parts could be drawn easily on top. | |||||
2013-01-13 | menu/modelview_matrix_cache: add helper class | Alexander Sulfrian | 3 | -6/+91 | |
Use the new ModelviewMatrixCache to cache the current state of the opengl MODELVIEW_MATRIX. | |||||
2013-01-13 | menu: use boost::shared_mutex | Alexander Sulfrian | 7 | -30/+46 | |
Use everywhere a mutable boost::shared_mutex to enable locking during const getter and the multiple reader and single writer pattern. | |||||
2013-01-13 | remove legacy keywords from file header | Alexander Sulfrian | 36 | -72/+0 | |
2013-01-13 | menu: enable (and disable) glTexture only if needed | Alexander Sulfrian | 3 | -1/+6 | |
2013-01-13 | menu/background: backgrounds get to know the parent component | Alexander Sulfrian | 7 | -36/+131 | |
Backgrounds now know the parent control, they are painted in, to query the size. Backgrounds are not allowed to use glClear anymore, should only draw something during the extend of the parent control and should take care to do not modify the opengl cursor position. |