2 * Copyright (C) 2013 Canonical, Ltd.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; version 3.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
21 property bool enabled: topGapPx != positionPx || bottomGapPx != positionPx
22 property Item sourceItem
23 property ShaderEffectSource source: ShaderEffectSource {
24 sourceItem: effect.enabled ? effect.sourceItem : null
25 hideSource: effect.enabled
29 Qt.rect(0, -effect.topOverflow, sourceItem.width, sourceItem.height + effect.topOverflow + effect.bottomOverflow)
37 \qmlproperty real positionPx
38 The y coordinate of where to perform the split.
40 \qmlproperty real topGapPx
43 \qmlproperty real bottomGapPx
46 \qmlproperty real topOverflow
47 How much of the sourceItem should be sourced above its bounds.
49 \qmlproperty real bottomOverflow
50 How much of the sourceItem should be sourced below its bounds.
53 property real positionPx: 0
54 property real topGapPx: 0
55 property real bottomGapPx: height
56 property real topOverflow: 0.0
57 property real bottomOverflow: 0.0
58 property real topOpacity: 1.0
59 property real bottomOpacity: 1.0
61 property real __roundedPositionPx: Math.round(positionPx)
65 visible: effect.enabled
67 property ShaderEffectSource source: effect.source
68 property real positionPx: __roundedPositionPx
69 property real factor: effect.height / height
77 topMargin: -topOverflow - positionPx + topGapPx
79 height: topOverflow + positionPx
82 uniform highp mat4 qt_Matrix;
83 attribute highp vec4 qt_Vertex;
84 attribute highp vec2 qt_MultiTexCoord0;
85 varying highp vec2 qt_TexCoord0;
86 uniform highp float factor;
89 highp vec4 pos = qt_Vertex;
91 gl_Position = qt_Matrix * pos;
92 qt_TexCoord0 = qt_MultiTexCoord0;
99 visible: effect.enabled
100 opacity: bottomOpacity
101 property ShaderEffectSource source: effect.source
102 property real offset: effect.topOverflow + __roundedPositionPx
103 property real factor: effect.height / height
111 y: topOverflow + bottomGapPx
112 height: sourceItem.height - positionPx + bottomOverflow
115 uniform highp mat4 qt_Matrix;
116 attribute highp vec4 qt_Vertex;
117 attribute highp vec2 qt_MultiTexCoord0;
118 varying highp vec2 qt_TexCoord0;
119 uniform highp float factor;
120 uniform highp float offset;
123 highp vec4 pos = qt_Vertex;
124 pos.y = (pos.y * factor) - offset;
125 gl_Position = qt_Matrix * pos;
126 qt_TexCoord0 = qt_MultiTexCoord0;
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list