top logo menu kitty mascot
AROS.ORG Developers Localization Bounties

reaction-layout

Index


ActivateLayoutGadget() FlushLayoutDomainCache() LAYOUT_GetClass() LayoutLimits()
RethinkLayout()      

ActivateLayoutGadget()

Synopsis

BOOL ActivateLayoutGadget(
         struct Gadget * gadget,
         struct Window * window,
         struct Requester * requester,
         ULONG object );

Function

Activates a gadget within the layout group.

Inputs

gadget    - The layout gadget.
window    - The window containing the layout.
requester - The requester (may be NULL).
object    - ID of the gadget to activate.

Result

TRUE if the gadget was activated, FALSE otherwise.

FlushLayoutDomainCache()

Synopsis

void FlushLayoutDomainCache(
         struct Gadget * gadget );

Function

Flushes the cached domain information for the layout gadget,
forcing a recomputation on the next layout pass.

Inputs

gadget - The layout gadget.

LAYOUT_GetClass()

Synopsis

Class * LAYOUT_GetClass();

Function

Returns a pointer to the layout BOOPSI class.

Result

Pointer to the class, or NULL on failure.

LayoutLimits()

Synopsis

void LayoutLimits(
         struct Gadget * gadget,
         struct LayoutLimits * limits,
         struct TextFont * font,
         struct Screen * screen );

Function

Queries the minimum and maximum size of a layout group.

Inputs

gadget - The layout gadget.
limits - Pointer to LayoutLimits structure to receive the values.
font   - Font to use for calculations (may be NULL).
screen - Screen for rendering context.

RethinkLayout()

Synopsis

BOOL RethinkLayout(
         struct Gadget * gadget,
         struct Window * window,
         struct Requester * requester,
         BOOL refresh );

Function

Recalculates the layout of all children within the layout gadget.

Inputs

gadget    - The layout gadget.
window    - The window containing the layout.
requester - The requester (may be NULL).
refresh   - If TRUE, refresh the gadgets after relayout.

Result

TRUE on success.