mirror of
https://github.com/lc-soft/LCUI.git
synced 2026-11-30 16:48:21 +01:00
- add button-group, button-group-text and button-group-separator prototypes with orientation and separator APIs - mark direct children as geometry items, keep select, popover and dropdown wrappers out of the border geometry and clean up on unlink - theme the group for the nova style, covering nested groups, select, input group and first/last edge rules - add integration tests for factories, marking, geometry, input flex and trigger wrappers - add zh-CN documentation, field tables, sidebar entry and C/XML/TSX examples for every section
58 lines
1.8 KiB
C
58 lines
1.8 KiB
C
#include "page.tsx.h"
|
|
#include "page.h"
|
|
|
|
typedef struct {
|
|
en_docs_widgets_button_group_page_react_t base;
|
|
// Add additional states to your component here
|
|
// ...
|
|
} en_docs_widgets_button_group_page_t;
|
|
|
|
static void en_docs_widgets_button_group_page_init(ui_widget_t *w)
|
|
{
|
|
ui_widget_add_data(w, en_docs_widgets_button_group_page_proto,
|
|
sizeof(en_docs_widgets_button_group_page_t));
|
|
|
|
en_docs_widgets_button_group_page_react_init(w);
|
|
// Write the initialization code for your component here
|
|
// such as state initialization, event binding, etc
|
|
// ...
|
|
|
|
en_docs_widgets_button_group_page_update(w);
|
|
}
|
|
|
|
static en_docs_widgets_button_group_page_t *
|
|
en_docs_widgets_button_group_page_get(ui_widget_t *w)
|
|
{
|
|
return ui_widget_get_data(w, en_docs_widgets_button_group_page_proto);
|
|
}
|
|
|
|
static void en_docs_widgets_button_group_page_destroy(ui_widget_t *w)
|
|
{
|
|
// Write code here to destroy the relevant resources of the component
|
|
// ...
|
|
|
|
en_docs_widgets_button_group_page_react_destroy(w);
|
|
}
|
|
|
|
void en_docs_widgets_button_group_page_update(ui_widget_t *w)
|
|
{
|
|
en_docs_widgets_button_group_page_react_update(w);
|
|
// Write code here to update other content of your component
|
|
// ...
|
|
}
|
|
|
|
ui_widget_t *ui_create_en_docs_widgets_button_group_page(void)
|
|
{
|
|
return ui_create_widget_with_prototype(
|
|
en_docs_widgets_button_group_page_proto);
|
|
}
|
|
|
|
void ui_register_en_docs_widgets_button_group_page(void)
|
|
{
|
|
en_docs_widgets_button_group_page_init_prototype();
|
|
en_docs_widgets_button_group_page_proto->init =
|
|
en_docs_widgets_button_group_page_init;
|
|
en_docs_widgets_button_group_page_proto->destroy =
|
|
en_docs_widgets_button_group_page_destroy;
|
|
}
|