Develop and Download Open Source Software

Browse Subversion Repository

Annotation of /mini_window.rb

Parent Directory Parent Directory | Revision Log Revision Log


Revision 12 - (hide annotations) (download)
Fri Apr 6 11:20:39 2007 UTC (16 years, 11 months ago) by bluedwarf
File size: 1531 byte(s)
Changes the head description of each file.
1 bluedwarf 12 # mini_window.rb: the module definition of Edmaru::MiniWindow
2 bluedwarf 10 #
3     # Copyright (C) 2007 Takashi Nakamoto
4     #
5     # This program is free software; you can redistribute it and/or modify
6     # it under the terms of the GNU General Public License version 2 as
7     # published by the Free Software Foundation.
8     #
9     # This program is distributed in the hope that it will be useful, but
10     # WITHOUT ANY WARRANTY; without even the implied warranty of
11     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12     # General Public License for more details.
13     #
14     # You should have received a copy of the GNU General Public License
15     # along with this program; if not, write to the Free Software
16     # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17     # 02110-1301 USA.
18     #
19 bluedwarf 6
20     require "window.rb"
21    
22     module Edmaru
23    
24     #A special window that doesn't have modeline bar.
25     module MiniWindow
26     include Window
27    
28     #Construct a window instance.
29     #
30     #=== Arguments
31     #_view_ :: The parent view.
32     #_x_ :: The left edge position in the parent view.
33     #_y_ :: The top edge position in the parent view.
34     #_col_ :: The max column size allocated for this window.
35     #
36     #=== Warning
37     #This method *MUST* *NOT* be overrided in derived classes.
38     #
39     #=== Return
40     #An initialized instance of Window.
41     def initialize(view, x, y, col)
42     @view = view
43     init_ui(x, y, col, 1)
44     end
45    
46     #Terminate this view instance.
47     #
48     #=== Warning
49     #This method *SHOULD* be overrided in derived classes.
50     def terminate
51     end
52     end
53     end

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26