|
2020 | 2020 | }
|
2021 | 2021 | }
|
2022 | 2022 | },
|
2023 |
| - "menu": { |
2024 |
| - "classes": { |
2025 |
| - "Menu": { |
2026 |
| - "doc": "Menu struct (application / window menu, dropdown menu, context menu). Modeled after the Windows API", |
2027 |
| - "external": "azul_impl::window::Menu", |
2028 |
| - "struct_fields": [ |
2029 |
| - {"items": {"type": "MenuItemVec", "doc": "Items in this menu"}} |
2030 |
| - ] |
2031 |
| - }, |
2032 |
| - "MenuItem": { |
2033 |
| - "doc": "Item entry in a menu or menu bar", |
2034 |
| - "external": "azul_impl::window::MenuItem", |
2035 |
| - "enum_fields": [ |
2036 |
| - {"Label": {"type": "StringMenuItem", "doc": "Regular \"labeled\" menu item"}}, |
2037 |
| - {"Separator": {"doc": "Line separator, usually only rendered in vertical menus"}}, |
2038 |
| - {"BreakLine": {"doc": "Breaks items in a menu onto separate lines, usually only rendered in horizontal menu bars"}} |
2039 |
| - ] |
2040 |
| - }, |
2041 |
| - "StringMenuItem": { |
2042 |
| - "doc": "Regular labeled menu item", |
2043 |
| - "external": "azul_impl::window::StringMenuItem", |
2044 |
| - "struct_fields": [ |
2045 |
| - {"label": {"type": "String", "doc": "Label of the menu entry"}}, |
2046 |
| - {"accelerator": {"type": "OptionVirtualKeyCodeCombo", "doc": "Optional accelerator combination, (ex. \"CTRL + X\" = [VirtualKeyCode::Ctrl, VirtualKeyCode::X]) for keyboard shortcut"}}, |
2047 |
| - {"callback": {"type": "OptionMenuCallback", "doc": "Optional callback to call when the item is activated"}}, |
2048 |
| - {"state": {"type": "MenuItemState", "doc": "State of the menu entry (normal, greyed, disabled)"}}, |
2049 |
| - {"icon": {"type": "OptionMenuItemIcon", "doc": "Optional icon (checkbox or custom image) of the menu entry"}}, |
2050 |
| - {"children": {"type": "MenuItemVec", "doc": "Sub-menus of the window (empty by default)"}} |
2051 |
| - ] |
2052 |
| - }, |
2053 |
| - "VirtualKeyCodeCombo": { |
2054 |
| - "doc": "Combination of virtual key codes that have to be pressed together", |
2055 |
| - "external": "azul_impl::window::VirtualKeyCodeCombo", |
2056 |
| - "struct_fields": [ |
2057 |
| - {"keys": {"type": "VirtualKeyCodeVec"}} |
2058 |
| - ] |
2059 |
| - }, |
2060 |
| - "MenuCallback": { |
2061 |
| - "doc": "Similar to `dom.CallbackData`, stores some data + a callback to call when the menu is activated", |
2062 |
| - "external": "azul_impl::window::MenuCallback", |
2063 |
| - "struct_fields": [ |
2064 |
| - {"callback": {"type": "Callback", "doc": "Callback to be called when the menu item is clicked"}}, |
2065 |
| - {"data": {"type": "RefAny", "doc": "Data of the callback to be called on"}} |
2066 |
| - ] |
2067 |
| - }, |
2068 |
| - "MenuItemIcon": { |
2069 |
| - "doc": "Icon of a menu entry", |
2070 |
| - "external": "azul_impl::window::MenuItemIcon", |
2071 |
| - "enum_fields": [ |
2072 |
| - {"Checkbox": {"type": "bool", "doc": "Menu item shows a checkbox (either checked or not)"}}, |
2073 |
| - {"Image": {"type": "ImageRef", "doc": "Menu item shows a custom image, usually in 16x16 format"}} |
2074 |
| - ] |
2075 |
| - }, |
2076 |
| - "MenuItemState": { |
2077 |
| - "doc": "Describes the state of a menu item", |
2078 |
| - "external": "azul_impl::window::MenuItemState", |
2079 |
| - "enum_fields": [ |
2080 |
| - {"Normal": {"doc": "Normal menu item (default)"}}, |
2081 |
| - {"Greyed": {"doc": "Menu item is greyed out and clicking it does nothing"}}, |
2082 |
| - {"Disabled": {"doc": "Menu item is disabled, clicking it does nothing - but NOT greyed out"}} |
2083 |
| - ] |
2084 |
| - } |
2085 |
| - } |
2086 |
| - }, |
2087 | 2023 | "dom": {
|
2088 | 2024 | "doc": "`Dom` construction and configuration",
|
2089 | 2025 | "classes": {
|
|
2959 | 2895 | }
|
2960 | 2896 | }
|
2961 | 2897 | },
|
| 2898 | + "menu": { |
| 2899 | + "classes": { |
| 2900 | + "Menu": { |
| 2901 | + "doc": "Menu struct (application / window menu, dropdown menu, context menu). Modeled after the Windows API", |
| 2902 | + "external": "azul_impl::window::Menu", |
| 2903 | + "struct_fields": [ |
| 2904 | + {"items": {"type": "MenuItemVec", "doc": "Items in this menu"}} |
| 2905 | + ] |
| 2906 | + }, |
| 2907 | + "MenuItem": { |
| 2908 | + "doc": "Item entry in a menu or menu bar", |
| 2909 | + "external": "azul_impl::window::MenuItem", |
| 2910 | + "enum_fields": [ |
| 2911 | + {"Label": {"type": "StringMenuItem", "doc": "Regular \"labeled\" menu item"}}, |
| 2912 | + {"Separator": {"doc": "Line separator, usually only rendered in vertical menus"}}, |
| 2913 | + {"BreakLine": {"doc": "Breaks items in a menu onto separate lines, usually only rendered in horizontal menu bars"}} |
| 2914 | + ] |
| 2915 | + }, |
| 2916 | + "StringMenuItem": { |
| 2917 | + "doc": "Regular labeled menu item", |
| 2918 | + "external": "azul_impl::window::StringMenuItem", |
| 2919 | + "struct_fields": [ |
| 2920 | + {"label": {"type": "String", "doc": "Label of the menu entry"}}, |
| 2921 | + {"accelerator": {"type": "OptionVirtualKeyCodeCombo", "doc": "Optional accelerator combination, (ex. \"CTRL + X\" = [VirtualKeyCode::Ctrl, VirtualKeyCode::X]) for keyboard shortcut"}}, |
| 2922 | + {"callback": {"type": "OptionMenuCallback", "doc": "Optional callback to call when the item is activated"}}, |
| 2923 | + {"state": {"type": "MenuItemState", "doc": "State of the menu entry (normal, greyed, disabled)"}}, |
| 2924 | + {"icon": {"type": "OptionMenuItemIcon", "doc": "Optional icon (checkbox or custom image) of the menu entry"}}, |
| 2925 | + {"children": {"type": "MenuItemVec", "doc": "Sub-menus of the window (empty by default)"}} |
| 2926 | + ] |
| 2927 | + }, |
| 2928 | + "VirtualKeyCodeCombo": { |
| 2929 | + "doc": "Combination of virtual key codes that have to be pressed together", |
| 2930 | + "external": "azul_impl::window::VirtualKeyCodeCombo", |
| 2931 | + "struct_fields": [ |
| 2932 | + {"keys": {"type": "VirtualKeyCodeVec"}} |
| 2933 | + ] |
| 2934 | + }, |
| 2935 | + "MenuCallback": { |
| 2936 | + "doc": "Similar to `dom.CallbackData`, stores some data + a callback to call when the menu is activated", |
| 2937 | + "external": "azul_impl::window::MenuCallback", |
| 2938 | + "struct_fields": [ |
| 2939 | + {"callback": {"type": "Callback", "doc": "Callback to be called when the menu item is clicked"}}, |
| 2940 | + {"data": {"type": "RefAny", "doc": "Data of the callback to be called on"}} |
| 2941 | + ] |
| 2942 | + }, |
| 2943 | + "MenuItemIcon": { |
| 2944 | + "doc": "Icon of a menu entry", |
| 2945 | + "external": "azul_impl::window::MenuItemIcon", |
| 2946 | + "enum_fields": [ |
| 2947 | + {"Checkbox": {"type": "bool", "doc": "Menu item shows a checkbox (either checked or not)"}}, |
| 2948 | + {"Image": {"type": "ImageRef", "doc": "Menu item shows a custom image, usually in 16x16 format"}} |
| 2949 | + ] |
| 2950 | + }, |
| 2951 | + "MenuItemState": { |
| 2952 | + "doc": "Describes the state of a menu item", |
| 2953 | + "external": "azul_impl::window::MenuItemState", |
| 2954 | + "enum_fields": [ |
| 2955 | + {"Normal": {"doc": "Normal menu item (default)"}}, |
| 2956 | + {"Greyed": {"doc": "Menu item is greyed out and clicking it does nothing"}}, |
| 2957 | + {"Disabled": {"doc": "Menu item is disabled, clicking it does nothing - but NOT greyed out"}} |
| 2958 | + ] |
| 2959 | + } |
| 2960 | + } |
| 2961 | + }, |
2962 | 2962 | "css": {
|
2963 | 2963 | "doc": "`Css` parsing module",
|
2964 | 2964 | "classes": {
|
|
4909 | 4909 | }
|
4910 | 4910 | }
|
4911 | 4911 | },
|
| 4912 | + "widgets": { |
| 4913 | + "doc": "Default, built-in widgets (button, label, textinput, etc.)", |
| 4914 | + "classes": { |
| 4915 | + "Button": { |
| 4916 | + "external": "crate::widgets::button::Button", |
| 4917 | + |
| 4918 | + }, |
| 4919 | + "CheckBox": { |
| 4920 | + "external": "crate::widgets::check_box::CheckBox", |
| 4921 | + |
| 4922 | + }, |
| 4923 | + "Label": { |
| 4924 | + "external": "crate::widgets::label::Label", |
| 4925 | + |
| 4926 | + }, |
| 4927 | + "TextInput": { |
| 4928 | + "external": "crate::widgets::text_input::TextInput", |
| 4929 | + |
| 4930 | + }, |
| 4931 | + "NumberInput": { |
| 4932 | + "external": "crate::widgets::number_input::NumberInput", |
| 4933 | + |
| 4934 | + }, |
| 4935 | + "ColorInput": { |
| 4936 | + "external": "crate::widgets::color_input::ColorInput", |
| 4937 | + |
| 4938 | + }, |
| 4939 | + "Spreadsheet": { |
| 4940 | + "external": "crate::widgets::table_view::TableView", |
| 4941 | + |
| 4942 | + }, |
| 4943 | + } |
| 4944 | + }, |
4912 | 4945 | "style": {
|
4913 | 4946 | "doc": "DOM to CSS cascading and styling module",
|
4914 | 4947 | "classes": {
|
|
0 commit comments