tree: b83d60a90784c694dd308e7b64ed211fd1d0da35 [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_eventtarget.cpp
  33. cfwl_eventtarget.h
  34. cfwl_eventtextwillchange.cpp
  35. cfwl_eventtextwillchange.h
  36. cfwl_eventvalidate.cpp
  37. cfwl_eventvalidate.h
  38. cfwl_listbox.cpp
  39. cfwl_listbox.h
  40. cfwl_listitem.cpp
  41. cfwl_listitem.h
  42. cfwl_message.cpp
  43. cfwl_message.h
  44. cfwl_messagekey.cpp
  45. cfwl_messagekey.h
  46. cfwl_messagekillfocus.cpp
  47. cfwl_messagekillfocus.h
  48. cfwl_messagemouse.cpp
  49. cfwl_messagemouse.h
  50. cfwl_messagemousewheel.cpp
  51. cfwl_messagemousewheel.h
  52. cfwl_messagesetfocus.cpp
  53. cfwl_messagesetfocus.h
  54. cfwl_monthcalendar.cpp
  55. cfwl_monthcalendar.h
  56. cfwl_notedriver.cpp
  57. cfwl_notedriver.h
  58. cfwl_picturebox.cpp
  59. cfwl_picturebox.h
  60. cfwl_pushbutton.cpp
  61. cfwl_pushbutton.h
  62. cfwl_scrollbar.cpp
  63. cfwl_scrollbar.h
  64. cfwl_themebackground.h
  65. cfwl_themepart.cpp
  66. cfwl_themepart.h
  67. cfwl_themetext.h
  68. cfwl_widget.cpp
  69. cfwl_widget.h
  70. cfwl_widgetmgr.cpp
  71. cfwl_widgetmgr.h
  72. cfwl_widgetproperties.cpp
  73. cfwl_widgetproperties.h
  74. fwl_widgetdef.h
  75. fwl_widgethit.h
  76. ifwl_themeprovider.h
  77. ifwl_widgetdelegate.h
  78. 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.