Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | text: resize text, if auto_size is enabled | Alexander Sulfrian | 2013-01-18 | 1 | -2/+4 |
| | | | | | Change the default for auto_size to false, so that it is not automatically resized during construction. | ||||
* | rectangle: add possibility to get dimension | Alexander Sulfrian | 2013-01-18 | 1 | -0/+5 |
| | |||||
* | menu/container: add window_coords_change | Alexander Sulfrian | 2013-01-18 | 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. | ||||
* | menu/static: remove empty line | Alexander Sulfrian | 2013-01-18 | 1 | -1/+0 |
| | |||||
* | menu/static: add getter for vertices_count | Alexander Sulfrian | 2013-01-18 | 2 | -0/+6 |
| | |||||
* | utils/rectangle: add is_in(Point) | Alexander Sulfrian | 2013-01-18 | 1 | -0/+15 |
| | | | | Add possibility to check whether a Point is inside the rectangle. | ||||
* | utils/rectangle: add + and =+ operator to move rectangle | Alexander Sulfrian | 2013-01-18 | 1 | -0/+19 |
| | | | | | Points could be added to rectangles and moves the rectangle by this amount. | ||||
* | utils/rectangle: add set_left | Alexander Sulfrian | 2013-01-18 | 1 | -0/+7 |
| | |||||
* | menu: mouse events now take points, not the single coords | Alexander Sulfrian | 2013-01-18 | 4 | -16/+18 |
| | |||||
* | base/timestamp: add class to store a point of time | Alexander Sulfrian | 2013-01-18 | 2 | -0/+108 |
| | |||||
* | base/time: make get_time static, constructor protected | Alexander Sulfrian | 2013-01-18 | 2 | -3/+18 |
| | | | | | | The Time class does not have any state so the get_time method could be static. Because the Time class now has only static methods, deny creation by making the ctor protected. | ||||
* | base/time: removed unused RelativeTimer | Alexander Sulfrian | 2013-01-18 | 2 | -110/+0 |
| | |||||
* | menu: fix calculate window coordinates | Alexander Sulfrian | 2013-01-18 | 4 | -4/+15 |
| | |||||
* | menu/software_mouse_pointer: implement pressed state | Alexander Sulfrian | 2013-01-13 | 2 | -4/+65 |
| | |||||
* | menu/event_manager: add more mouse events | Alexander Sulfrian | 2013-01-13 | 4 | -3/+13 |
| | |||||
* | menu/background_*: vertices are only recalculated if the size changed | Alexander Sulfrian | 2013-01-13 | 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. | ||||
* | menu/background_image: remove the unused texture color | Alexander Sulfrian | 2013-01-13 | 2 | -6/+1 |
| | |||||
* | menu/texture: implement GlDelayedAllocation interface | Alexander Sulfrian | 2013-01-13 | 6 | -45/+58 |
| | | | | | Textures are now initialized during their first use, destroyed after their last used and could be use with the Activator. | ||||
* | utils/image: add shortcut to get image size as Dimension | Alexander Sulfrian | 2013-01-13 | 2 | -0/+8 |
| | |||||
* | add const where applicable | Alexander Sulfrian | 2013-01-13 | 4 | -14/+22 |
| | |||||
* | menu/background: use boost::noncopyable | Alexander Sulfrian | 2013-01-13 | 1 | -10/+7 |
| | |||||
* | menu/gl_delayed_allocation: add helper for opengl allocation | Alexander Sulfrian | 2013-01-13 | 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. | ||||
* | utils: add disposer helper | Alexander Sulfrian | 2013-01-13 | 3 | -0/+158 |
| | | | | | | | | | The disposer helper should be used to encapsulate disposable objects. This objects have to cleanup something before deconstruction and so you need to help dispose before destruction of the object. The disposer takes care for you. On destruction of the disposer, it calls dispose of the encapsulated object and then destroy it, too. So you do not need to remember to call dispose manually. | ||||
* | utils: add activator helper | Alexander Sulfrian | 2013-01-13 | 2 | -0/+93 |
| | | | | | | | | | The activator should be used to encapsulate activatable objects. It calls enable on construction and disable on deconstruction. It should be used for example to enable some opengl settings, while the activator object is used in local scope. It ensures, that the opengl setting get disabled, if the scope is left even when throwing an exception. | ||||
* | menu: add some comments | Alexander Sulfrian | 2013-01-13 | 6 | -6/+61 |
| | |||||
* | utils/dimension: add == and != operators | Alexander Sulfrian | 2013-01-13 | 1 | -8/+11 |
| | |||||
* | menu/application: add possibility to query if ogl thread | Alexander Sulfrian | 2013-01-13 | 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. | ||||
* | menu: use RgbColor.get_array(?) magic everywhere | Alexander Sulfrian | 2013-01-13 | 6 | -65/+13 |
| | |||||
* | menu/text: basic handling of auto size | Alexander Sulfrian | 2013-01-13 | 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. | ||||
* | menu: code style: change naming of bool-getter to is prefix | Alexander Sulfrian | 2013-01-13 | 7 | -9/+9 |
| | |||||
* | menu/static: code style: remove this/getter if not needed | Alexander Sulfrian | 2013-01-13 | 1 | -4/+3 |
| | |||||
* | base/config: add debug.boxes config option | Alexander Sulfrian | 2013-01-13 | 3 | -1/+29 |
| | | | | | if debug.boxes is true in configuration file, a red border is drawn around all controls | ||||
* | menu/static_rectangle: add implementation of static for rectangles | Alexander Sulfrian | 2013-01-13 | 2 | -0/+100 |
| | |||||
* | menu/static: add infrastructure for simple geometric types | Alexander Sulfrian | 2013-01-13 | 2 | -0/+263 |
| | |||||
* | utils/rgba_color: add RgbaColor (RGB with additional alpha channel) | Alexander Sulfrian | 2013-01-13 | 2 | -0/+160 |
| | |||||
* | utils/rgb_color: add possibility to generate color array for opengl | Alexander Sulfrian | 2013-01-13 | 2 | -2/+75 |
| | |||||
* | menu/container: remove assert | Alexander Sulfrian | 2013-01-13 | 1 | -1/+0 |
| | |||||
* | base/config: add graphics.fullscreen option | Alexander Sulfrian | 2013-01-13 | 4 | -6/+96 |
| | |||||
* | menu: add some comments | Alexander Sulfrian | 2013-01-13 | 2 | -3/+25 |
| | |||||
* | base/config: add graphics.resolution config option | Alexander Sulfrian | 2013-01-13 | 4 | -1/+110 |
| | | | | | | The resolution could controlled by the appropriate config option. The value from the config file is parsed/serialized with the DimensionTranslator. | ||||
* | base/config: add basic config infrastructure | Alexander Sulfrian | 2013-01-13 | 4 | -1/+128 |
| | |||||
* | menu/drawable_control: always cache modelview matrix | Alexander Sulfrian | 2013-01-13 | 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. | ||||
* | menu/modelview_matrix_cache: add helper class | Alexander Sulfrian | 2013-01-13 | 3 | -6/+91 |
| | | | | | Use the new ModelviewMatrixCache to cache the current state of the opengl MODELVIEW_MATRIX. | ||||
* | menu: use boost::shared_mutex | Alexander Sulfrian | 2013-01-13 | 7 | -30/+46 |
| | | | | | Use everywhere a mutable boost::shared_mutex to enable locking during const getter and the multiple reader and single writer pattern. | ||||
* | remove legacy keywords from file header | Alexander Sulfrian | 2013-01-13 | 80 | -160/+0 |
| | |||||
* | menu: enable (and disable) glTexture only if needed | Alexander Sulfrian | 2013-01-13 | 3 | -1/+6 |
| | |||||
* | menu/background: backgrounds get to know the parent component | Alexander Sulfrian | 2013-01-13 | 8 | -38/+133 |
| | | | | | | | | | 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. | ||||
* | menu: generalized frame_background to background | Alexander Sulfrian | 2013-01-13 | 13 | -115/+84 |
| | | | | | | | | | 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/clipping_helper: made clipping working | Alexander Sulfrian | 2013-01-13 | 4 | -15/+20 |
| | |||||
* | test/utils/rectangle: removed deprecated ctor | Alexander Sulfrian | 2013-01-13 | 1 | -2/+1 |
| |