Check-in [49f4a20229]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Added rectangle to minx.layout.full constructor.
Timelines: family | ancestors | descendants | both | dev1.x
Files: files | file ages | folders
SHA1:49f4a202298b7fcbd249cf7372ce9238679fb327
User & Date: manuv 2013-08-04 09:28:28
Context
2013-08-04
09:47
Merged from dev1.x to rel1.x in anticipation of 0.2.0 release. check-in: a7356e4e43 user: manuv tags: rel1.x
09:28
Added rectangle to minx.layout.full constructor. Leaf check-in: 49f4a20229 user: manuv tags: dev1.x
08:43
Updated design notes. check-in: 3f11394238 user: manuv tags: dev1.x
Changes

Changes to layout/full.py.

58
59
60
61
62
63
64
65
66
67
68
69

70
71
72
73
74








75
76
77
78
79
80
81
82
83
84
85
86
87
88
    the entire area of the layout's parent window. Obviously, this
    strategy means that only one application window will be visible at a
    time.

    """

    # Create layout object
    def __init__(self, wm, parent):
        """Create a full layout object.

        @param wm The @ref minx.core.wm.wm "main window manager object."
        @param parent The layout's parent @ref minxlib::window "minxlib.window".


        When you create a full layout object, you should supply the main
        window manager object so that the layout can access the X server
        connection, any config settings it needs, etc. Additionally, the
        layout needs to know its parent window.









        Since Minx layouts are X windows, this constructor will create a
        child window of the specified parent, set appropriate properties
        to mark it as a layout, set the event mask, etc.

        """
        base.__init__(self, wm, parent)

    # Reparent notification
    def reparented(self, w):
        """Reparent notification.

        @param w The @ref minxlib::window "minxlib.window" that was reparented.








|


|
|
>





>
>
>
>
>
>
>
>






|







58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
    the entire area of the layout's parent window. Obviously, this
    strategy means that only one application window will be visible at a
    time.

    """

    # Create layout object
    def __init__(self, m, p, r = None):
        """Create a full layout object.

        @param m The @ref minx.core.wm.wm "main window manager object."
        @param p The layout's parent @ref minxlib::window "minxlib.window".
        @param r The rectangle within parent window assigned to this layout.

        When you create a full layout object, you should supply the main
        window manager object so that the layout can access the X server
        connection, any config settings it needs, etc. Additionally, the
        layout needs to know its parent window.

        The optional parameter r specifies the rectangle within the
        parent window that the layout will occupy. If it is not supplied,
        the layout will occupy the entire area of the parent window. If
        it is given, it should be a tuple containing four integers, the
        first two of which are the x and y coordinates of the layout's
        target area's top-left corner and the remaining two are the
        rectangle's width and height.

        Since Minx layouts are X windows, this constructor will create a
        child window of the specified parent, set appropriate properties
        to mark it as a layout, set the event mask, etc.

        """
        base.__init__(self, m, p, r)

    # Reparent notification
    def reparented(self, w):
        """Reparent notification.

        @param w The @ref minxlib::window "minxlib.window" that was reparented.

Changes to wiki/todo.wiki.

7
8
9
10
11
12
13
14
15
16
17



<h2>DONE</h2>

  *  Update design notes.

  *  Update home page.

<h2>PENDING</h2>

  *  Add rectangle to full constructor. Test by leaving some space on the
     right on the right monitor of a dual-monitor test.









<
<


>
>
7
8
9
10
11
12
13


14
15
16
17

<h2>DONE</h2>

  *  Update design notes.

  *  Update home page.



  *  Add rectangle to full constructor. Test by leaving some space on the
     right on the right monitor of a dual-monitor test.

<h2>PENDING</h2>