The pendant light is clearly prohibited. The airspace above the footprint is also included. The footprint of the tub is less defined as it leaves room for interpretation if it includes the surrounding deck. That might be hard to argue, especially if that is only a tub, which it looks like based on the wall and window finishes. The sames issues could happen with a receptacle installed in a code compliant location 1/16" outside the footprint.