SOL9 2.0 Class: LayoutManager

 SOL9 C++ Class Library  SOL9 Samples  SOL9 Tutorial  SOL9 FAQ  SOL9 ClassTree 

Source code

/*
 * LayoutManager.h 
 * Copyright (c) 2011 Antillia.com TOSHIYUKI ARAI. ALL RIGHTS RESERVED. 
 */


// SOL++2000
#pragma once

#include <sol\Object.h>
#include <sol\Dimension.h>


namespace SOL {

class View;

class LayoutManager :public Object {

public:
    LayoutManager::LayoutManager() 
    {

    }

public:
    virtual void add(View* view)
    {
        // Do nothing here.
    }

public:
    virtual void add(View* view, int pos)
    {
        // Do nothing here.
    }

public:
    virtual void getExtension(Dimension& d, int w, int h) 
    { 
        // Return a default value to d.
        d.set(10, 10);
    }

public:
    virtual void layout(int x, int y, int w, int h)
    {
        //Do nothing here.
    }

};

}



Last modified: 1 Feb 2012

Copyright (c) 2009-2012 Antillia.com ALL RIGHTS RESERVED.