Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Contains() [1/5]

bool Microsoft.Xna.Framework.Rectangle.Contains ( int x,
int y )
inline

Definition at line 92 of file Rectangle.cs.

93 {
94 if (X <= x && x < X + Width && Y <= y)
95 {
96 return y < Y + Height;
97 }
98 return false;
99 }

References Microsoft.Xna.Framework.Rectangle.Height, Microsoft.Xna.Framework.Rectangle.Width, Microsoft.Xna.Framework.Rectangle.X, and Microsoft.Xna.Framework.Rectangle.Y.

Referenced by Terraria.Graphics.Light.LightingEngine.ApplyPerFrameLights(), Terraria.GameContent.ObjectInteractions.AHoverInteractionChecker.AttemptInteraction(), Terraria.Main.DoUpdate_WhilePaused(), Terraria.IngameOptions.Draw(), Terraria.GameContent.Skies.LanternSky.Draw(), Terraria.GameContent.Skies.MartianSky.Draw(), Terraria.GameContent.Skies.NebulaSky.Draw(), Terraria.GameContent.Skies.PartySky.Draw(), Terraria.GameContent.Skies.SlimeSky.Draw(), Terraria.GameContent.Skies.SolarSky.Draw(), Terraria.GameContent.Skies.StardustSky.Draw(), Terraria.GameContent.Skies.VortexSky.Draw(), Terraria.GameContent.UI.ResourceSets.ResourceDrawSettings.Draw(), Terraria.Map.MapOverlayDrawContext.Draw(), Terraria.Map.MapOverlayDrawContext.Draw(), Terraria.Main.DrawHairWindow(), Terraria.UI.InGamePopups.AchievementUnlockedPopup.DrawInGame(), Terraria.UI.InGamePopups.PlayerWantsToJoinGamePopup.DrawInGame(), Terraria.UI.InGamePopups.PlayerWantsToJoinGamePopup.DrawInNotificationsArea(), Terraria.IngameOptions.DrawLeftSide(), Terraria.IngameOptions.DrawRightSide(), Terraria.GameContent.UI.Elements.UIScrollbar.DrawSelf(), Terraria.IngameOptions.DrawValue(), Terraria.GameContent.UI.Elements.UIColoredSlider.DrawValueBar(), Terraria.GameContent.UI.Elements.UIVerticalSlider.DrawValueBarDynamicWidth(), Terraria.Graphics.Light.LightingEngine.GetColor(), Terraria.Main.GUIChatDrawInner(), Terraria.Player.ItemCheck_ManageRightClickFeatures(), Terraria.GameContent.UI.Elements.UIScrollbar.LeftMouseDown(), Terraria.IngameOptions.MouseOver(), Terraria.Player.TryInterruptingItemUsage(), and Terraria.Player.Update().