The trim of a window is on its exterior (outside of the house) that is a decorative frame. The casing of the window is on the interior (inside of the house).