summaryrefslogtreecommitdiffstats
path: root/gui/button.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-03-18Vibration: allow BoardConfig to disable vibration for a device.bigbiff bigbiff1-0/+3
Change-Id: Ibd2f67391ce6d7774498839829e0de9391508781
2017-01-18gui: Initialize button render positionMatt Mower1-1/+1
Change-Id: I716ae0664ea454706cb940d1bfd38259da53d176
2016-01-27Update minuitwrp graphics in line with latest minuiEthan Yonker1-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
2015-11-06Fix bution action position when using textplacement TEXT_ONLY_RIGHTEthan Yonker1-1/+4
This makes the touch target include both the text and the image for buttons masquerading as a check box. Change-Id: If8432c5863de136b1a215dabb3e06109ccce4410
2015-10-16Allow text to scale to fitEthan Yonker1-20/+19
Change-Id: Iacd4bb78f551b51d092ecde09521b5541e7dadcd
2015-02-21GUI: Support styles in xml to reduce xml file sizeEthan Yonker1-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
2015-02-15gui: make resources type safethat1-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
2015-02-10Remove deletes for images from scroll list GUI ElementsEthan Yonker1-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
2014-02-12Conditional -> GUIObject and make all gui objects children of GUIObjectVojtech Bocek1-1/+1
Signed-off-by: Vojtech Bocek <vbocek@gmail.com> Change-Id: Ic0a7d6354dabe5919b83942f2f1aa0715625e522
2014-02-07Expansion of vibrate optionsEthan Yonker1-1/+1
Improve location / timing of vibration Split out vibrate settings for buttons, keyboard, and long actions Change-Id: I282825cc5f3e44ed6dcabe65dc1f4cb21b407b67
2014-02-06Add haptic feedbackSamer Diab (S.a.M.e.R_d)1-0/+2
Change-Id: I15d723f73c0b0bb4a40645d1c3f4c1c616f36998
2013-11-29Fix render issue when button has conditionalDees Troy1-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
2013-09-12Pull ROM info from build.prop for backup namesDees Troy1-13/+10
Change-Id: I7847fca22b5d4f0a35da41625b15bd677a1e9768
2013-08-24Unify indentation and little clean-up in TWRP filesVojtech Bocek1-128/+127
Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
2013-04-04Move all AOSP code out of recovery binaryDees_Troy1-3/+2
Improves license compatibility between GPL and Apache Change-Id: I2b165aa575bb6213af6b07936f99610c113443f0
2013-03-30Add partition list GUI elementDees_Troy1-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
2013-02-15Add button highlightDees_Troy1-0/+19
2012-10-19Add ability for buttons to have highlights on touchDees_Troy1-2/+25
2012-09-05TWRP-ify AOSP codeDees_Troy1-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