docs/focus.rst
author Radek Brich <radek.brich@devl.cz>
Sun, 09 Oct 2011 13:06:58 +0200
changeset 23 4e72fd2a0e14
parent 9 7175ed629a76
permissions -rw-r--r--
Rename BackendCurses to DriverCurses. Add DriverDummy - dummy driver for debugging purposes. Move clipping stack from driver to common.ClipStack class.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
Radek Brich <radek.brich@devl.cz>
parents:
diff changeset
     1
Focus
Radek Brich <radek.brich@devl.cz>
parents:
diff changeset
     2
=====
Radek Brich <radek.brich@devl.cz>
parents:
diff changeset
     3
1
69318aba22bf Menu development. New focus. Easier imports from tuikit package.
Radek Brich <radek.brich@devl.cz>
parents: 0
diff changeset
     4
Only one widget can have focus at the time.
69318aba22bf Menu development. New focus. Easier imports from tuikit package.
Radek Brich <radek.brich@devl.cz>
parents: 0
diff changeset
     5
Top widget has link to currently focused widget in 'focuswidget'.
0
Radek Brich <radek.brich@devl.cz>
parents:
diff changeset
     6
Radek Brich <radek.brich@devl.cz>
parents:
diff changeset
     7
Events emitted on change: focus, unfocus
Radek Brich <radek.brich@devl.cz>
parents:
diff changeset
     8
1
69318aba22bf Menu development. New focus. Easier imports from tuikit package.
Radek Brich <radek.brich@devl.cz>
parents: 0
diff changeset
     9
mousedown - focus widget under mouse
0
Radek Brich <radek.brich@devl.cz>
parents:
diff changeset
    10
1
69318aba22bf Menu development. New focus. Easier imports from tuikit package.
Radek Brich <radek.brich@devl.cz>
parents: 0
diff changeset
    11
tab - focus next child in container (depends on canfocus())
0
Radek Brich <radek.brich@devl.cz>
parents:
diff changeset
    12
shift-tab - previous child
Radek Brich <radek.brich@devl.cz>
parents:
diff changeset
    13
Radek Brich <radek.brich@devl.cz>
parents:
diff changeset
    14
hide() -> unfocus
1
69318aba22bf Menu development. New focus. Easier imports from tuikit package.
Radek Brich <radek.brich@devl.cz>
parents: 0
diff changeset
    15
69318aba22bf Menu development. New focus. Easier imports from tuikit package.
Radek Brich <radek.brich@devl.cz>
parents: 0
diff changeset
    16
tab/shift-tab into / out off containers?
9
7175ed629a76 Added ComboBox, HorizontalLayout, TreeNode, TreeModel, TreeView. Widget is now descendant of EventSource. Improved color management (color prefixes).
Radek Brich <radek.brich@devl.cz>
parents: 5
diff changeset
    17
trapfocus # if True, tab cycles inside container
5
ae128c885d0f New GridLayout. Change cursor behavior (hide on unfocus event). Change resize event to propagate through containers. Change container clipping - allowlayout=false children are clipped without borders. More Widget doc.
Radek Brich <radek.brich@devl.cz>
parents: 1
diff changeset
    18
ae128c885d0f New GridLayout. Change cursor behavior (hide on unfocus event). Change resize event to propagate through containers. Change container clipping - allowlayout=false children are clipped without borders. More Widget doc.
Radek Brich <radek.brich@devl.cz>
parents: 1
diff changeset
    19
widget.hasfocus()