lib: tizen: add battery interactive charger screens
authorPrzemyslaw Marczak <p.marczak@samsung.com>
Mon, 24 Mar 2014 14:26:10 +0000 (15:26 +0100)
committerJaehoon Chung <jh80.chung@samsung.com>
Wed, 12 Oct 2022 04:31:34 +0000 (13:31 +0900)
commitb0a10d82cecc818a2a77d4cae1ede54346c0e1c9
treeb703c1e19e7e6f62041463559478ea80885fd2ef
parented23b92028067a4929cdb023a42074dfb7132d56
lib: tizen: add battery interactive charger screens

New images:
- battery frame: 200x380px, 16bpp,
  batery level area in frame: 170x300px
- battery bar: 160x50px, 16bpp, grey and red,
  (for 5 bars in battery frame with 8px interelement gap)
- charge screen; charge screen clean images: 128x120px, 16bpp
- charge screen indicator; vertical and horizontal
  indicator clean images: 8x8px, 16bpp

Library functions:

For battery screen:
- draw_battery_screen()   - draw empty battery frame
- draw_battery_state()    - fill battery frame with charge bars
                            to a given percent
For charge animation:
- draw_charge_screen()    - draw a small phone connected to a cable
                            (under the battery)
- clean_charge_screen()   - cleans above screen
- draw_charge_animation() - display an animation with
                            a point running on a cable
                            (on a charge screen)

For low battery state and no charger connected:
- draw_connect_charger_animation() - draw and clean charge
                                     screen respectively

Library is ready to use gzipped images
but this commit adds only bmp images.

Changes for v2015.10-rc5:
- correct usage of removed typedef 'bmp_image_t'

Change-Id: I25a527b07b809b9105b6d4d8c29aa01e47224134
Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
include/libtizen.h
lib/tizen/Makefile [new file with mode: 0644]
lib/tizen/battery_bar.h [new file with mode: 0644]
lib/tizen/battery_bar_red.h [new file with mode: 0644]
lib/tizen/battery_frame.h [new file with mode: 0644]
lib/tizen/charge_screen.h [new file with mode: 0644]
lib/tizen/charge_screen_clc.h [new file with mode: 0644]
lib/tizen/charge_screen_indicator.h [new file with mode: 0644]
lib/tizen/interactive_charger.c [new file with mode: 0644]