Skip to content

UXRscConnection

A connection from a UXRscDoc’s rsc graph. From 0.7.

#import "UXRscModel.xc"
field
kindUXR_CONN_OUTLET: src.member = dst. UXR_CONN_ACTION: the control src fires dst.member
src, dstthe two ends, as UXRscRefs
memberthe outlet or action name
scopethe layout themes it binds in; 0 for all

A theme is a form factor and an orientation. scope has one bit per theme, and themeBit gives it:

c.scope = UXRscConnection.themeBit(UXR_V_PHONE, UXR_V_ORIENT_PORTRAIT) |
UXRscConnection.themeBit(UXR_V_PHONE, UXR_V_ORIENT_LANDSCAPE);

One member may have several connections with different scopes, so a phone and a desktop can fire the same action from different controls.

themeBit · inScope

static u32 themeBit(i32 klass, i32 orient)

The scope bit for one theme: bit klass * 3 + orient.

bool inScope(i32 klass, i32 orient)

Whether the connection binds in a theme.