VisualuRuby(tmp) Reference

VRScreen

Coloring : swin class : vruby class

Class Hierarchy

Object
VRScreen

Including Modules

none

Child classes or Classes/Modules including this

none

vr/vrdialog.rb

VRScreen

A method is added to VRScreen by loading this file.

Method

openModalDialog(parent,style=nil,mod=VRDialogComponent,template=PlaneDialogTemplate,options={})
Creates and opens a modal dialog box. This method is blocked until the dialog box closed. GUI definition can be specified by template or mod#construct. When mod==nil, then this method use VRDialogComponent instead of nil. The return value is dialog's return value set by SWin::Dialog#close. options specifies the focused control, ok button, cancel button, etc.
openModelessDialog(parent,style=nil,mod=VRDialogComponent,template=PlaneDialogTemplate,options={})
Creates and opens a modeless dialog box. GUI definition can be specified by template or mod#construct. When mod==nil, then this method use VRDialogComponent instead of nil. The return value is false and this method returns immediately.(non-blocking) options specifies the focused control, ok button, cancel button, etc. (see VRInputbox)
newdialog(parent,style=nil,mod=VRDialogComponent,template=PlaneDialogTemplate,options={})
Creates a dialogbox whose parent is parent, and returns it. To open that dialogbox, call "open" method. This method is called by openModalDialog() and openModelessDialog() . mod may be a module or a class which is a descendant of VRDialogComponent.
vr/vruby.rb

VRScreen

This class expresses the desktop screen. Currently only VRLocalScreen defined in vruby, the instance of this class, is available.

Class Method

new(app,factory)
app as SWin::Application and factory as SWin::Factory.

Methods

newform(parent=nil,style=nil,mod=VRForm)
Creates and initializes the top-level window which is the instance of VRForm or its descendant. The parent window is specified by parent and parent==nil means that it has no parent window. The window style is specified by style which can be nil for default style. mod can be a module which is to be added to VRForm or a class which is a descendant of VRForm.
showForm(mod,x,y,w,h)
Creates and shows the new top-level window using newform. The arguments x,y,w,h is omittable. mod is the argument for newform's argument.
addIdleproc(f)
Adds a idling process executed while message loop runs. f is an instance of Proc class.
messageloop(wflag=false)
Get into the system message loop. You need to call this method to process windows messages. While wflag is true, messageloop waits a message by WaitMessage() API. This waiting will prevent other threads' processes and can suppress CPU load average. If wflag==false and your ruby's version is so high that Thread has 'list' class-method, WaitMessage() API is used automatically by the case.
idling_messageloop
obsolete Almost same as messageloop. The difference is that this method yields when the messageloop is in idle state. You need to use this method in iterator's style.
width
Width of the desktop.
height
Height of the desktop.
newFormClass(name,brush=nil,style=nil,icon=nil,cursor=nil)
Register a new window class to the system. This method returns a form class with specified icon, color, cursor and default window style.

VisualuRuby(tmp) Reference Index : Project HomePage(English) : Project HomePage(Japanese) : Sourceforge vruby page
Generated at Sun Feb 24 01:30:02 +0900 2008