Download Now

    Reference TComputedWidget

    Declared in Codebot.Render.Widgets.pas on line 196

    TComputedWidget is used to calculate widget properties inherited from a list of parent widgets
      TComputedWidget = class
      public
        constructor Create(Widget: TWidget);
        { The theme of the widget, or of the nearest parent which has one }
        function Theme: TTheme;
        { The opacity of the widget combined with that of its parents }
        function Opacity: Float;
        { The bounds of the widget relative to the main widget }
        function Bounds: TRectF;
        { True if the widget and all of its parents are enabled }
        function Enabled: Boolean;
        { True if the widget and all of its parents are visible }
        function Visible: Boolean;
        { The state of the widget, taking its parents into account }
        function State: TWidgetState;
      end;

    See also

    Float in Codebot.System.pas
    TRectF in Codebot.Graphics.Types.pas