summaryrefslogtreecommitdiff
path: root/redo/controlbase.sh
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-08-03 16:28:21 -0400
committerPietro Gagliardi <[email protected]>2014-08-03 16:28:21 -0400
commitb6d07237b423b690570e105e5f0810d35693b0d0 (patch)
treefdf2f0ec2a66f217080dfeb0b60de9e763a9bd95 /redo/controlbase.sh
parentfd48be68ee957e936c272348d3f0b0bddaba5c92 (diff)
Migrated the GTK+ backend to the new Control system. Added controlParent to deal with interface issues; need to apply this to the Windows backend too.
Diffstat (limited to 'redo/controlbase.sh')
-rwxr-xr-xredo/controlbase.sh36
1 files changed, 36 insertions, 0 deletions
diff --git a/redo/controlbase.sh b/redo/controlbase.sh
new file mode 100755
index 0000000..24930c9
--- /dev/null
+++ b/redo/controlbase.sh
@@ -0,0 +1,36 @@
+sed "s/AAA/$1/g
+s/BBB/$2/g
+s/CCC/$3/g
+s/DDD/$4/g" <<\END
+func (AAA *BBB) CCC() DDD {
+ return AAA._CCC
+}
+
+func (AAA *BBB) setParent(p *controlParent) {
+ basesetParent(AAA, p)
+}
+
+func (AAA *BBB) containerShow() {
+ basecontainerShow(AAA)
+}
+
+func (AAA *BBB) containerHide() {
+ basecontainerHide(AAA)
+}
+
+func (AAA *BBB) allocate(x int, y int, width int, height int, d *sizing) []*allocation {
+ return baseallocate(AAA, x, y, width, height, d)
+}
+
+func (AAA *BBB) preferredSize(d *sizing) (width, height int) {
+ return basepreferredSize(AAA, d)
+}
+
+func (AAA *BBB) commitResize(a *allocation, d *sizing) {
+ basecommitResize(AAA, a, d)
+}
+
+func (AAA *BBB) getAuxResizeInfo(d *sizing) {
+ basegetAuxResizeInfo(d)
+}
+END