Embedded SDK
Embedded SDK
Public Attributes | List of all members
nbgl_obj_s Struct Reference

Common structure for all graphical objects. More...

#include <nbgl_obj.h>

Collaboration diagram for nbgl_obj_s:
Collaboration graph
[legend]

Public Attributes

nbgl_area_t area
 
int16_t rel_x0
 horizontal position of top-left corner relative to parent's top-left corner More...
 
int16_t rel_y0
 
struct nbgl_obj_sparent
 parent of this object More...
 
struct nbgl_obj_salignTo
 object to align to (parent by default) More...
 
nbgl_aligment_t alignment
 type of alignment More...
 
int16_t alignmentMarginX
 horizontal margin when aligning More...
 
int16_t alignmentMarginY
 vertical margin when aligning More...
 
nbgl_obj_type_t type
 type of the graphical object, must be explicitly set More...
 
uint16_t touchMask
 bit mask to tell engine which touch events are handled by this object More...
 
uint8_t touchId
 

Detailed Description

Common structure for all graphical objects.

Note
this type must never be instantiated

Definition at line 228 of file nbgl_obj.h.

Member Data Documentation

◆ alignment

nbgl_aligment_t nbgl_obj_s::alignment

type of alignment

Definition at line 237 of file nbgl_obj.h.

◆ alignmentMarginX

int16_t nbgl_obj_s::alignmentMarginX

horizontal margin when aligning

Definition at line 238 of file nbgl_obj.h.

◆ alignmentMarginY

int16_t nbgl_obj_s::alignmentMarginY

vertical margin when aligning

Definition at line 239 of file nbgl_obj.h.

◆ alignTo

struct nbgl_obj_s* nbgl_obj_s::alignTo

object to align to (parent by default)

Definition at line 236 of file nbgl_obj.h.

◆ area

nbgl_area_t nbgl_obj_s::area

absolute position, backGround color and size of the object. DO NOT MOVE THIS FIELD

Definition at line 229 of file nbgl_obj.h.

◆ parent

struct nbgl_obj_s* nbgl_obj_s::parent

parent of this object

Definition at line 235 of file nbgl_obj.h.

◆ rel_x0

int16_t nbgl_obj_s::rel_x0

horizontal position of top-left corner relative to parent's top-left corner

Definition at line 232 of file nbgl_obj.h.

◆ rel_y0

int16_t nbgl_obj_s::rel_y0

vertical position of top-left corner relative to parent's top-left corner, must be multiple of 4

Definition at line 233 of file nbgl_obj.h.

◆ touchId

uint8_t nbgl_obj_s::touchId

a unique identifier (by screen) to be used by external test environment (TTYT or Screenshots)

Definition at line 242 of file nbgl_obj.h.

◆ touchMask

uint16_t nbgl_obj_s::touchMask

bit mask to tell engine which touch events are handled by this object

Definition at line 241 of file nbgl_obj.h.

◆ type

nbgl_obj_type_t nbgl_obj_s::type

type of the graphical object, must be explicitly set

Definition at line 240 of file nbgl_obj.h.


The documentation for this struct was generated from the following file: