From: <sgs...@ni...> - 2003-09-24 16:28:48
|
たむらです。 On Thu, 25 Sep 2003 01:12:24 +0900 たむらけんいち <sgs...@ni...> wrote: > On Thu, 25 Sep 2003 00:20:39 +0900 > Masao Mutoh <mu...@hi...> wrote: > > > むとうです。 > > > > よくわかってないのですが、 > > Gnome::Canvas#set_scroll_region()を指定すると > > うまくいくようです。 > > ありがとうございます。確かにうまくいきました。 > > libgnomecanvas の API で調べると、 > http://developer.gnome.org/doc/API/2.0/libgnomecanvas/libgnomecanvas-gnomecanvas.html#GNOME-CANVAS-SET-SCROLL-REGION > > gnome_canvas_set_scroll_region () > Sets the scrolling region of a canvas to the specified rectangle. > The canvas will then be able to scroll only within this region. The view of the > canvas is adjusted as appropriate to display as much of the new region as possible. > > Excite の翻訳 > 指定された長方形にキャンバスのスクロールする地域をセットします。 > その後、キャンバスはこの地域内にのみスクロールすることができるでしょう。新しい地域に > できるだけ表示することが適切なように、キャンバスの視界が調節されます。 > > う〜む、判ったような判らないような。「調節」されて左上が (0.0, 0.0)になるってことか? http://www-6.ibm.com/jp/developerworks/linux/gnomenclature.html のソースを見てもやってますね。 お約束ってことか。 -- たむら (http://www.rubyist.net/~tamura/d/) |