Widget/API/SetBackdrop

__NOTOC__
Sets a backdrop on a frame. Backdrops allow drawing a frame and a background texture on a frame, much like the game tooltips.
MyFrame:SetBackdrop(backdropdata)
== Parameters ==
=== Arguments ===
:;backdropdata
::table - Lua table containing the backdrop information to set.
:::Table should be
:::backdropdata = {
::::edgefile = string - path and file of border texture;
::::bgfile = string - path and file to background texture;
::::BackgroundInsets = { top = number, left = number, bottom = number, right = number },
::::EdgeSize = number ,
::::TileSize = number ,
:::};
:::The background insets specify and offset to align the background texture with the border texture.
:::The edge size and tile size values specify a square area on the textures.
=== Returns ===
:;None
== Example ==
local FrameBackdrop = {
 edgeFile = "Interface/Tooltips/Tooltip-border",
 bgFile = "Interface/Tooltips/Tooltip-background", 
 BackgroundInsets = { top = 4, left = 4, bottom = 4, right = 4 },
 EdgeSize = 16,
 TileSize = 16,
 };
MemViewerDynFrame:SetBackdrop(FrameBackdrop);
== Notes ==
Category:Widget/API