Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I am having an issue and maybe someone might be able to help out... #989

Open
kdschlosser opened this issue Jul 20, 2024 · 0 comments
Open

Comments

@kdschlosser
Copy link

For the life of me I am not able to figure out why this code...

Click me
/**
 * @file lv_draw_mask_rect.h
 *
 */

#ifndef LV_DRAW_MASK_RECT_H
#define LV_DRAW_MASK_RECT_H

#ifdef __cplusplus
extern "C" {
#endif

/*********************
 *      INCLUDES
 *********************/
#include "lv_draw.h"
#include "../misc/lv_color.h"
#include "../misc/lv_area.h"
#include "../misc/lv_style.h"

/*********************
 *      DEFINES
 *********************/

/**********************
 *      TYPEDEFS
 **********************/
typedef struct {
    lv_draw_dsc_base_t base;

    lv_area_t area;
    int32_t radius;
} lv_draw_mask_rect_dsc_t;

/**********************
 * GLOBAL PROTOTYPES
 **********************/

/**
 * Initialize a rectangle mask draw descriptor.
 * @param dsc       pointer to a draw descriptor
 */
void /* LV_ATTRIBUTE_FAST_MEM */ lv_draw_mask_rect_dsc_init(lv_draw_mask_rect_dsc_t * dsc);

/**
 * Try to get a rectangle mask draw descriptor from a draw task.
 * @param task      draw task
 * @return          the task's draw descriptor or NULL if the task is not of type LV_DRAW_TASK_TYPE_MASK_RECTANGLE
 */
lv_draw_mask_rect_dsc_t * lv_draw_task_get_mask_rect_dsc(lv_draw_task_t * task);

/**
 * Create a draw task to mask a rectangle from the buffer
 * @param layer     pointer to a layer
 * @param dsc       pointer to a draw descriptor
 */
void lv_draw_mask_rect(lv_layer_t * layer, const lv_draw_mask_rect_dsc_t * dsc);

/**********************
 *      MACROS
 **********************/

#ifdef __cplusplus
} /*extern "C"*/
#endif

#endif /*LV_DRAW_MASK_RECT_H*/

is causing these errors

API/draw/sw/lv_draw_sw_mask.rst:8: WARNING: Invalid C++ declaration: Expected identifier in nested name. [error at 0]

  ^
API/draw/sw/lv_draw_sw_mask.rst:8: WARNING: Invalid C++ declaration: Expected identifier in nested name. [error at 0]

  ^
API/draw/sw/lv_draw_sw_mask.rst:8: WARNING: Invalid C++ declaration: Expected identifier in nested name. [error at 0]

when I am using this as the rst file...

.. _lv_draw_mask_h:

==============
lv_draw_mask.h
==============


.. doxygenfile:: lv_draw_mask.h
    :project: lvgl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant