Skip to content

Commit

Permalink
update icon list
Browse files Browse the repository at this point in the history
  • Loading branch information
GorgonMeducer committed Nov 25, 2024
1 parent 12c297b commit 01a5f28
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 8 deletions.
2 changes: 1 addition & 1 deletion ARM.Arm-2D.pdsc
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@
</RTE_Components_h>
</component>

<component Cclass="Acceleration" Cgroup="Arm-2D Extras" Csub="Controls" Cversion="2.0.1" condition="Arm-2D-Controls">
<component Cclass="Acceleration" Cgroup="Arm-2D Extras" Csub="Controls" Cversion="2.1.0" condition="Arm-2D-Controls">
<description>A set of example controls, e.g. round-corner-box, spinning-wheels etc</description>
<files>
<!-- example control source files -->
Expand Down
10 changes: 6 additions & 4 deletions examples/common/controls/icon_list.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,17 +122,19 @@ arm_fsm_rt_t __arm_2d_icon_list_draw_list_core_item(
return arm_fsm_rt_cpl;
}

ARM_NONNULL(1,2)
arm_2d_err_t icon_list_init( icon_list_t *ptThis,
icon_list_cfg_t *ptCFG)
ARM_NONNULL(1, 2, 3)
arm_2d_err_t __icon_list_init( icon_list_t *ptThis,
icon_list_cfg_t *ptCFG,
arm_2d_i_list_region_calculator_t *ptCalculator)
{
assert(NULL != ptThis);
assert(NULL != ptCFG);
assert(NULL != ptCalculator);

arm_2d_err_t tResult = __simple_list_init(
&this.use_as____simple_list_t,
&ptCFG->use_as____simple_list_cfg_t,
&ARM_2D_LIST_CALCULATOR_MIDDLE_ALIGNED_FIXED_SIZED_ITEM_NO_STATUS_CHECK_HORIZONTAL);
ptCalculator);

if (ARM_2D_ERR_NONE != tResult) {
return tResult;
Expand Down
14 changes: 11 additions & 3 deletions examples/common/controls/icon_list.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ extern "C" {


/*============================ MACROFIED FUNCTIONS ===========================*/

#define icon_list_init(__ICON_LIST_PTR, __CFG_PTR, ...) \
__icon_list_init( (__ICON_LIST_PTR), \
(__CFG_PTR), \
(&ARM_2D_LIST_CALCULATOR_MIDDLE_ALIGNED_FIXED_SIZED_ITEM_NO_STATUS_CHECK_VERTICAL, ##__VA_ARGS__))

/*============================ TYPES =========================================*/

typedef struct icon_list_cfg_t {
Expand All @@ -77,9 +83,11 @@ typedef struct icon_list_t {
/*============================ PROTOTYPES ====================================*/

extern
ARM_NONNULL(1,2)
arm_2d_err_t icon_list_init(icon_list_t *ptThis,
icon_list_cfg_t *ptCFG);
ARM_NONNULL(1, 2, 3)
arm_2d_err_t __icon_list_init(
icon_list_t *ptThis,
icon_list_cfg_t *ptCFG,
arm_2d_i_list_region_calculator_t *ptCalculator);

extern
ARM_NONNULL(1)
Expand Down

0 comments on commit 01a5f28

Please sign in to comment.