1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 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
|
function v=mtlb_get(H,property)
// Copyright INRIA
[lhs,rhs]=argn()
win=xget('window')
xset('window',h)
if rhs==1 then
else
v=[]
select convstr(property)
case 'backingstore' then
case 'color' then
case 'colormap' then
v=xget('colormap')
case 'currentaxes' then
error('mtlb_get, no equivalent to property :'+property)
case 'currentcharacter' then
error('mtlb_get, no equivalent to property :'+property)
case 'currentmenu' then
error('mtlb_get, no equivalent to property :'+property)
case 'currentobject' then
error('mtlb_get, no equivalent to property :'+property)
case 'currentpoint' then
error('mtlb_get, no equivalent to property :'+property)
case 'fixedcolors' then
error('mtlb_get, no equivalent to property :'+property)
case 'inverthardcopy' then
error('mtlb_get, no equivalent to property :'+property)
case 'keypressfcn' then
error('mtlb_get, no equivalent to property :'+property)
case 'menubar' then
error('mtlb_get, no equivalent to property :'+property)
case 'mincolormap' then
v=xget('colormap')
v=size(v,1)
case 'name' then
error('mtlb_get, no equivalent to property :'+property)
case 'nextplot' then
error('mtlb_get, no equivalent to property :'+property)
case 'numbertitle' then
error('mtlb_get, no equivalent to property :'+property)
case 'paperunits' then
error('mtlb_get, no equivalent to property :'+property)
case 'paperorientation' then
error('mtlb_get, no equivalent to property :'+property)
case 'paperposition' then
error('mtlb_get, no equivalent to property :'+property)
case 'papersize' then
error('mtlb_get, no equivalent to property :'+property)
case 'papertype' then
error('mtlb_get, no equivalent to property :'+property)
case 'pointer' then
v='arrow'
case 'position' then
o=xget('wpos')
sz=xget('wdim')
v=[o(:);sz(:)]'
case 'resize' then
v='on'
case 'resizefcn' then
error('mtlb_get, no equivalent to property :'+property)
case 'selectiontype' then
error('mtlb_get, no equivalent to property :'+property)
case 'sharecolors' then
error('mtlb_get, no equivalent to property :'+property)
case 'units' then
error('mtlb_get, no equivalent to property :'+property)
case 'windowbuttondownfcn' then
error('mtlb_get, no equivalent to property :'+property)
case 'windowbuttonmotionfcn' then
error('mtlb_get, no equivalent to property :'+property)
case 'windowbuttonupfcn' then
error('mtlb_get, no equivalent to property :'+property)
case 'buttondownfcn' then
error('mtlb_get, no equivalent to property :'+property)
case 'children' then
error('mtlb_get, no equivalent to property :'+property)
case 'clipping' then
v=xget('clipping')
if v(1)<>0 then v='on',else v='off',end
case 'interruptible' then
error('mtlb_get, no equivalent to property :'+property)
case 'parent' then
error('mtlb_get, no equivalent to property :'+property)
case 'type' then
v='figure'
case 'userdata' then
error('mtlb_get, no equivalent to property :'+property)
case 'visible' then
v='on'
end
end
xset('window',win)
|