local MAJOR, MINOR = "RUI-1.0", 1
local RUI = LibStub:NewLibrary(MAJOR, MINOR)
if not RUI then return end

-- Capture the embedding addon name once (from the TOC vararg).
-- Consumer addons embed RUI under libs/RUI/, so the texture root is:
--   Interface\AddOns\<addonName>\libs\RUI\Media\Icons\
RUI._addonName = RUI._addonName or (select(1, ...))

RUI.Widget = RUI.Widget or {}
RUI.Draw   = RUI.Draw   or {}
RUI.Media  = RUI.Media  or {}
