summaryrefslogtreecommitdiffstats
path: root/gui/button.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Vibration: allow BoardConfig to disable vibration for a device.bigbiff bigbiff2019-03-181-0/+3
| | | | Change-Id: Ibd2f67391ce6d7774498839829e0de9391508781
* Merge AOSP android-9.0.0_r3Ethan Yonker2018-08-241-5/+5
| | | | | | Fix conflicts and make it build in 5.1, 6.0, 7.1, 8.1, and 9.0 Change-Id: Ida0a64c29ff27d339b7f42a18d820930964ac6e4
* gui: Initialize button render positionMatt Mower2017-01-181-1/+1
| | | | Change-Id: I716ae0664ea454706cb940d1bfd38259da53d176
* Update minuitwrp graphics in line with latest minuiEthan Yonker2016-01-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Note: events.cpp is still old code renamed to cpp to make it easier to call functions like gr_fb_width(). I had to modify AOSP fbdev code to provide a separate memory surface for drawing to as drawing directly to the framebuffer resulted in rendering taking about 5 times longer. I also modified AOSP adf code to provide a separate memory surface for drawing for the same performance reasons. The Nexus 9 supports adf graphics. Overlay graphics work on at least one device. Overlay provides a separate memory buffer already so performance is good. I do not have a drm device yet that I know of. I made some attempt to update the drm code to determine the correct pixel format based on the drm graphics format, but what is available in pixel flinger and what is available in drm do not line up all that well. Reports are that the Pixel C is using drm graphics, but performance is slow, likely due to the use of a mmap instead of a memory buffyer. Change-Id: Ibd45bccca6ac2cb826037aa9b2aa5065cf683eed
* Fix bution action position when using textplacement TEXT_ONLY_RIGHTEthan Yonker2015-11-061-1/+4
| | | | | | | This makes the touch target include both the text and the image for buttons masquerading as a check box. Change-Id: If8432c5863de136b1a215dabb3e06109ccce4410
* Allow text to scale to fitEthan Yonker2015-10-161-20/+19
| | | | Change-Id: Iacd4bb78f551b51d092ecde09521b5541e7dadcd
* GUI: Support styles in xml to reduce xml file sizeEthan Yonker2015-02-211-35/+8
| | | | | | | Also allow sliders to have their own text label instead of requiring a whole separate text object for the label in the xml. Change-Id: I6e314efb4bb454d496555ff7e003d743063a1308
* gui: make resources type safethat2015-02-151-13/+6
| | | | | | | | | | | - add string, int, color and resource loading helpers - use typed resource classes, and some cleanup in loading code - remove abstract GetResource() to enforce type safe access - add height and width query methods to resources and use them - minor cleanup - simplify LoadPlacement Change-Id: I9b81785109a80b3806ad6b50cba4d893b87b0db1
* Remove deletes for images from scroll list GUI ElementsEthan Yonker2015-02-101-1/+0
| | | | | | | | | | | Resources are deleted by ~PageSet and do not need to be deleted by the the scrollable list elements. This fixes a crash when reloading the theme. Also remove some deletes for items that should not be deleted in button and input GUI elements. Change-Id: Ie1c1b85c81c10f648d085746a5fdba6220468a5f
* Conditional -> GUIObject and make all gui objects children of GUIObjectVojtech Bocek2014-02-121-1/+1
| | | | | | Signed-off-by: Vojtech Bocek <vbocek@gmail.com> Change-Id: Ic0a7d6354dabe5919b83942f2f1aa0715625e522
* Expansion of vibrate optionsEthan Yonker2014-02-071-1/+1
| | | | | | | Improve location / timing of vibration Split out vibrate settings for buttons, keyboard, and long actions Change-Id: I282825cc5f3e44ed6dcabe65dc1f4cb21b407b67
* Add haptic feedbackSamer Diab (S.a.M.e.R_d)2014-02-061-0/+2
| | | | Change-Id: I15d723f73c0b0bb4a40645d1c3f4c1c616f36998
* Fix render issue when button has conditionalDees Troy2013-11-291-5/+9
| | | | | | | | | | If the button has a conditional, the image render function will return a 0 which indicated that an image was present even if it was not if the condition was not being met during boot. When the condition is met, mButtonImg was not set to NULL causing a render request failure. Change-Id: I32be0ddcdc1bf7ad22440d66018ef09484280afa
* Pull ROM info from build.prop for backup namesDees Troy2013-09-121-13/+10
| | | | Change-Id: I7847fca22b5d4f0a35da41625b15bd677a1e9768
* Unify indentation and little clean-up in TWRP filesVojtech Bocek2013-08-241-128/+127
| | | | Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
* Move all AOSP code out of recovery binaryDees_Troy2013-04-041-3/+2
| | | | | | Improves license compatibility between GPL and Apache Change-Id: I2b165aa575bb6213af6b07936f99610c113443f0
* Add partition list GUI elementDees_Troy2013-03-301-9/+68
| | | | | | | | | | | | Add partition list GUI element and update backup, restore, mount, storage selection, and wipe sections of GUI and partition manager code to reflect the new GUI element. Update ORS engine to handle new backup and restore setup. Fix a bug with decrypt. Add 1080x1920 layout. Change-Id: Iaa2f44cb707167e66f935452f076ba00e68a2aa4
* Add button highlightDees_Troy2013-02-151-0/+19
|
* Add ability for buttons to have highlights on touchDees_Troy2012-10-191-2/+25
|
* TWRP-ify AOSP codeDees_Troy2012-09-051-0/+194
Pull in most TWRP sources Stub out partition management code Make it compile -- probably will not boot Kind of a mess but have to start somewhere