コード例 #1
0
ファイル: lomse_layouter.cpp プロジェクト: lenmus/lomse
//---------------------------------------------------------------------------------------
GmoBox* Layouter::start_new_page()
{
    LOMSE_LOG_DEBUG(Logger::k_layout, "");

    GmoBox* pParentBox = m_pParentLayouter->start_new_page();

    m_pageCursor = m_pParentLayouter->get_cursor();
    m_availableWidth = m_pParentLayouter->get_available_width();
    m_availableHeight = m_pParentLayouter->get_available_height();

    create_main_box(pParentBox, m_pageCursor, m_availableWidth, m_availableHeight);

    return m_pItemMainBox;
}
コード例 #2
0
ファイル: interface.c プロジェクト: TizenTeam/vlc-tizen
static void
create_main_layout(interface *intf, Evas_Object *conform, view_e view_type)
{
    /* Add a layout to the conformant */
    Evas_Object *layout = elm_layout_add(conform);
    elm_layout_theme_set(layout, "layout", "drawer", "panel");
    evas_object_show(layout);

    /* Create the panel and put it in the layout */
    intf->sidebar = create_sidebar(intf, layout, view_type);
    elm_object_part_content_set(layout, "elm.swallow.left", sidebar_get_widget(intf->sidebar));

    /* Create the content box and put it in the layout */
    intf->main_box = create_main_box(intf, layout);
    elm_object_part_content_set(layout, "elm.swallow.content", intf->main_box);

    /* */
    evas_object_show(intf->main_box);

    elm_object_content_set(conform, layout);
}