Example #1
0
void g2Controller::__WindowResizeEvent(int NewWidth, int NewHeight)
{
    // Update window self
    WindowResizeEvent(NewWidth, NewHeight);
    
    // Update all children
    for(ChildObjectsIt Child = ChildObjects.begin(); Child != ChildObjects.end(); Child++)
        (*Child)->__WindowResizeEvent(NewWidth, NewHeight);
}
void g2Controller::__WindowResizeEvent(int NewWidth, int NewHeight)
{
    // Update window self
    WindowResizeEvent(NewWidth, NewHeight);
    
    // Update all children
    int QueueSize = (int)ChildObjects.size();
    for(int i = 0; i < QueueSize; i++)
    {
        // Get child
        g2Controller* Child = ChildObjects.front();
        ChildObjects.pop();
        
        // Update child window event
        Child->__WindowResizeEvent(NewWidth, NewHeight);
        
        // Put back
        ChildObjects.push(Child);
    }
}
Example #3
0
void g2Panel::SetAlignment(g2Anchor Anchors)
{
    this->Anchors = Anchors;
    WindowResizeEvent(WindowWidth, WindowHeight);
}