tree: 7d910e50cff7c7136f155ded75bdb73fa4af429b [path history] [tgz]
  1. theme/
  2. BUILD.gn
  3. cfwl_app.cpp
  4. cfwl_app.h
  5. cfwl_barcode.cpp
  6. cfwl_barcode.h
  7. cfwl_caret.cpp
  8. cfwl_caret.h
  9. cfwl_checkbox.cpp
  10. cfwl_checkbox.h
  11. cfwl_combobox.cpp
  12. cfwl_combobox.h
  13. cfwl_comboedit.cpp
  14. cfwl_comboedit.h
  15. cfwl_combolist.cpp
  16. cfwl_combolist.h
  17. cfwl_datetimeedit.cpp
  18. cfwl_datetimeedit.h
  19. cfwl_datetimepicker.cpp
  20. cfwl_datetimepicker.h
  21. cfwl_edit.cpp
  22. cfwl_edit.h
  23. cfwl_edit_embeddertest.cpp
  24. cfwl_event.cpp
  25. cfwl_event.h
  26. cfwl_eventmouse.cpp
  27. cfwl_eventmouse.h
  28. cfwl_eventscroll.cpp
  29. cfwl_eventscroll.h
  30. cfwl_eventselectchanged.cpp
  31. cfwl_eventselectchanged.h
  32. cfwl_eventtextwillchange.cpp
  33. cfwl_eventtextwillchange.h
  34. cfwl_eventvalidate.cpp
  35. cfwl_eventvalidate.h
  36. cfwl_listbox.cpp
  37. cfwl_listbox.h
  38. cfwl_message.cpp
  39. cfwl_message.h
  40. cfwl_messagekey.cpp
  41. cfwl_messagekey.h
  42. cfwl_messagekillfocus.cpp
  43. cfwl_messagekillfocus.h
  44. cfwl_messagemouse.cpp
  45. cfwl_messagemouse.h
  46. cfwl_messagemousewheel.cpp
  47. cfwl_messagemousewheel.h
  48. cfwl_messagesetfocus.cpp
  49. cfwl_messagesetfocus.h
  50. cfwl_monthcalendar.cpp
  51. cfwl_monthcalendar.h
  52. cfwl_notedriver.cpp
  53. cfwl_notedriver.h
  54. cfwl_picturebox.cpp
  55. cfwl_picturebox.h
  56. cfwl_pushbutton.cpp
  57. cfwl_pushbutton.h
  58. cfwl_scrollbar.cpp
  59. cfwl_scrollbar.h
  60. cfwl_themebackground.cpp
  61. cfwl_themebackground.h
  62. cfwl_themepart.cpp
  63. cfwl_themepart.h
  64. cfwl_themetext.cpp
  65. cfwl_themetext.h
  66. cfwl_widget.cpp
  67. cfwl_widget.h
  68. cfwl_widgetmgr.cpp
  69. cfwl_widgetmgr.h
  70. DEPS
  71. fwl_widgetdef.h
  72. fwl_widgethit.h
  73. ifwl_themeprovider.cpp
  74. ifwl_themeprovider.h
  75. ifwl_widgetdelegate.h
  76. README.md
xfa/fwl/README.md

xfa/fwl is a Widget Library for XFA Forms.

CFWL_Widget is the base class that widget classes extend. The derived widget classes are both controllers and renderers for each widget. The hierarchy is:

  • CFWL_Widget
    • CFWL_Form
    • CFWL_Caret
    • CFWL_CheckBox
    • CFWL_ComboBox
    • CFWL_DateTimePicker
    • CFWL_Edit
      • CFWL_Barcode
      • CFWL_ComboEdit
      • CFWL_DateTimeEdit
    • CFWL_ListBox
      • CFWL_ComboList
    • CFWL_MonthCalendar
    • CFWL_PictureBox
    • CFWL_PushButton
    • CFWL_ScrollBar
    • CFWL_SpinButton

These CFWL widgets are instantiated by and closely related to the CXFA classes in the xfa/fxfa directory. See xfa/fxfa/README.md.

CFWL_Widget implements IFWL_WidgetDelegate through which it receives messages, events and draw calls.

Messages consist of user input for a widget to handle. Each type of message is identified by an enum value in Message::Type and has its own class derived from the base CFWL_Message.

  • CFWL_Message
    • CFWL_MessageKey
    • CFWL_MessageKillFocus
    • CFWL_MessageMouse
    • CFWL_MessageMouseWheel
    • CFWL_MessageSetFocus

Events are originated in the widgets and are then handled by other CFWL_Widget and CXFA classes.

  • CFWL_Event
    • CFWL_EventCheckWord
    • CFWL_EventMouse
    • CFWL_EventScroll
    • CFWL_EventSelectChanged
    • CFWL_EventTextWillChange
    • CFWL_EventValidate

The widgets use IFWL_ThemeProvider for rendering everything, calling DrawBackground() and DrawText() and passing many options in their parameters, respectively of types CFWL_ThemeBackground and CFWL_ThemeText. See xfa/fwl/theme/README.md.