natiny_view_get_focus_within
bool natiny_view_get_focus_within(NatinyView view);
Returns whether view has focus or contains the focused view at any depth.
Parameters
| Name | Type | Description |
|---|---|---|
view |
NatinyView |
View handle |
Returns
| Type | Description |
|---|---|
bool |
true for the focused view and each of its ancestors; otherwise false |
Example
NatinyColor color = natiny_view_get_focus_within(panel) ? ACCENT : LINE;
natiny_render_set_color(color);