123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778(**************************************************************************)(* Lablgtk *)(* *)(* This program is free software; you can redistribute it *)(* and/or modify it under the terms of the GNU Library General *)(* Public License as published by the Free Software Foundation *)(* version 2, with the exception described in file COPYING which *)(* comes with the library. *)(* *)(* This program is distributed in the hope that it will be useful, *)(* but WITHOUT ANY WARRANTY; without even the implied warranty of *)(* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *)(* GNU Library General Public License for more details. *)(* *)(* You should have received a copy of the GNU Library General *)(* Public License along with this program; if not, write to the *)(* Free Software Foundation, Inc., 59 Temple Place, Suite 330, *)(* Boston, MA 02111-1307 USA *)(* *)(* *)(**************************************************************************)(* $Id$ *)openGauxopenGobjectopenGtkopenTagsopenGtkPackPropsopenGtkBasemoduleBox=structincludeBoxletpackbox?from:(dir=(`START:pack_type))?(expand=false)?(fill=true)?(padding=0)child=(matchdirwith`START->pack_start|`END->pack_end)boxchild~expand~fill~paddingendmoduleBBox=ButtonBoxmoduleFixed=FixedmoduleLayout=LayoutmodulePaned=PanedmoduleSizeGroup=structincludeSizeGroupexternalnew_:unit->size_group="ml_gtk_size_group_new"endmoduleTable=structincludeTablelethas_x:expand_type->bool=function`X|`BOTH->true|`Y|`NONE->falselethas_y:expand_type->bool=function`Y|`BOTH->true|`X|`NONE->falseletattacht~left~top?(right=left+1)?(bottom=top+1)?(expand=`NONE)?(fill=`BOTH)?(shrink=`NONE)?(xpadding=0)?(ypadding=0)w=letxoptions=ifhas_xshrinkthen[`SHRINK]else[]inletxoptions=ifhas_xfillthen`FILL::xoptionselsexoptionsinletxoptions=ifhas_xexpandthen`EXPAND::xoptionselsexoptionsinletyoptions=ifhas_yshrinkthen[`SHRINK]else[]inletyoptions=ifhas_yfillthen`FILL::yoptionselseyoptionsinletyoptions=ifhas_yexpandthen`EXPAND::yoptionselseyoptionsinattachtw~left~top~right~bottom~xoptions~yoptions~xpadding~ypaddingendmoduleGrid=structincludeGridletattacht~left~top?(width=1)?(height=1)w=attachtw~left~top~width~heightendmoduleNotebook=Notebook