aboutsummaryrefslogtreecommitdiff
path: root/src/ResponsivePaned.cpp
blob: 45991bc7c0044c4036d9e6a0024149870e37ed50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#include "../include/ResponsivePaned.hpp"

namespace Gtk
{
    ResponsivePaned::ResponsivePaned(Orientation orientation) : 
        Paned(orientation)
    {
        /*
        signal_draw().connect_notify([this](const Cairo::RefPtr<Cairo::Context> &context)
        {
            if(get_orientation() == Orientation::ORIENTATION_VERTICAL)
                return;

            Widget *leftChild = get_child1();
            if(!leftChild)
                return;

            int width = get_width();
            if(width > 720)
                leftChild->show();
            else
                leftChild->hide();
        });

        signal_configure_event().connect_notify([this](GdkEventConfigure *event)
        {
            Widget *leftChild = get_child1();
            printf("width: %d\n", event->width);
            if(get_orientation() == Orientation::ORIENTATION_VERTICAL)
                return;

            return;
        }, false);
        */
    }
}