dc_hw.h 844 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * File : dc_buffer.h
  3. * This file is part of RT-Thread RTOS
  4. * COPYRIGHT (C) 2006 - 2010, RT-Thread Development Team
  5. *
  6. * The license and distribution terms for this file may be
  7. * found in the file LICENSE in this distribution or at
  8. * http://www.rt-thread.org/license/LICENSE
  9. *
  10. * Change Logs:
  11. * Date Author Notes
  12. * 2010-04-10 Bernard first version
  13. * 2010-06-14 Bernard embedded hardware dc to each widget
  14. */
  15. #ifndef __RTGUI_DC_HW_H__
  16. #define __RTGUI_DC_HW_H__
  17. #include <rtgui/dc.h>
  18. /* create a hardware dc */
  19. struct rtgui_dc* rtgui_dc_hw_create(rtgui_widget_t* owner);
  20. void rtgui_dc_hw_init(rtgui_widget_t* owner);
  21. /* draw a hline with raw pixel data */
  22. void rtgui_dc_hw_draw_raw_hline(struct rtgui_dc* dc, rt_uint8_t* raw_ptr, int x1, int x2, int y);
  23. #endif