• 0

    posted a message on Layout-1.0
    I uploaded the current Layout version to the SVN and updated the Wiki Doc. The API should not change any more, the library should be ready to use.
    Posted in: Libraries
  • 0

    posted a message on Layout-1.0
    Quote from andreasg »

    Looks very nice. Could this library provide good looking widgets and window decoration too, or is that out of scope?


    Maybe someone could code a widget-providing library using Layout-1.0, but well... I'm the wrong person to call, when you want good looking widgets )-:


    Borlox, let me know when this baby is ready! I can't stand creating frames the old way any more.


    I played around a bit with the object positions, and I think I won't change the interface any more. It should be usable soon (few days). If there is anything you miss, please tell me.
    Posted in: Libraries
  • 0

    posted a message on Layout-1.0
    Layout is a helper lib for frames, to handle positioning of child elements. It's based on QT's Layout system (http://doc.trolltech.com/4.3/qlayout.html#details).

    Warning: Layout-1.0 is currently something like an alpha version! It's not completed and should not be used, yet.

    A (simplified) example:

    Frame = Layout:CreateFrame(...) -- uses the normal CreateFrame parameters, and adds frame:SetLayout(lay) and frame:GetLayout()
    hlay = Layout:NewLayot("HLayout")
    hlay:AddObject(Button1)
    hlay:AddObject(Button2)

    vlay = Layout:NewLayout("VLayout")
    vlay:AddObject(Texture)
    vlay:AddObject(hlay)

    Frame:SetLayout(vlay)

    This would create something like this:

    /---------\
    |+-------+|
    ||texture||
    ||    ||
    |+-------+|
    |     |
    |[b1] [b2]|
    \---------/


    There will be a nicer way to access layouts than lib:Create*Layout(), soon.

    The whole API will be found (soon, again) here:
    http://www.wowace.com/wiki/Layout-1.0

    Please post bugs, ideas and wishes here!
    Posted in: Libraries
  • To post a comment, please or register a new account.