Interface Cullable

All Known Implementing Classes:
AboutDialog, AdminsDialog, BansDialog, BaseDialog, Button, CampaignCompleteDialog, ChatFragment, CheckBox, Collapser, ColorPicker, ConsoleFragment, ContentInfoDialog, CoreItemsDisplay, CustomGameDialog, CustomRulesDialog, DatabaseDialog, Dialog, DiscordDialog, EditorMapsDialog, EffectsDialog, FileChooser, FullTextDialog, FxWidgetGroup, GameOverDialog, Group, HostDialog, ImageButton, ItemDisplay, ItemImage, ItemsDisplay, JoinDialog, KeybindDialog, LanguageDialog, LaunchLoadoutDialog, LCanvas, LCanvas.DragLayout, LCanvas.JumpButton, LCanvas.StatementElem, LiquidDisplay, LoadDialog, LoadoutDialog, LogicDialog, MapEditorDialog, MapGenerateDialog, MapInfoDialog, MapListDialog, MapLoadDialog, MapObjectivesCanvas, MapObjectivesCanvas.ObjectiveTilemap, MapObjectivesCanvas.ObjectiveTilemap.ObjectiveTile, MapObjectivesCanvas.ObjectiveTilemap.ObjectiveTile.Connector, MapObjectivesDialog, MapPlayDialog, MapResizeDialog, Minimap, MobileButton, ModsDialog, MultiReqImage, PaletteDialog, PausedDialog, PlanetDialog, ReqImage, ResearchDialog, ResearchDialog.View, SaveDialog, SchematicsDialog, SchematicsDialog.SchematicInfoDialog, ScrollPane, SectorGenerateDialog, SettingsMenuDialog, SettingsMenuDialog.SettingsTable, Stack, Table, TextButton, TraceDialog, TreeElement, WaveGraph, WaveInfoDialog, WidgetGroup

public interface Cullable
Allows a parent to set the area that is visible on a child actor to allow the child to cull when drawing itself. This must only be used for actors that are not rotated or scaled.

When Group is given a culling rectangle with Group.setCullingArea(Rect), it will automatically call setCullingArea(Rect) on its children.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    setCullingArea(Rect cullingArea)
     
  • Method Details

    • setCullingArea

      void setCullingArea(Rect cullingArea)
      Parameters:
      cullingArea - The culling area in the child actor's coordinates.