UIcore


Synopsis

a UI base class object that encapsulates core attributes for instantiated UI objects


group UIcore<cxx name="UI_UIcore",export_all=1>{
Boolean+IPort2+read visible=1;
Boolean+read &active;
UIpixmap+read pixmap<export_all=2>;
UIcolor+read color<export_all=2>;
UIfontAttributes fontAttributes<export_all=2>;
string fontList<NEvisible=0>;
ptr+nonotify cxxhandle<NEvisible=0>=0;
UIwinHandle+nosave+nonotify handle<NEvisible=0>;
string motif_resources<NEvisible=0>[];
string window_resources<NEvisible=0>[];
UIlayoutControl layout<NEvisible=0>;
};

Description

UIcore is a base class that manages core resources that all UI objects need. It cannot be instantiated separately.

Subobjects

&visible

Boolean. A flag that indicates whether the widget is visible on the screen. 1=visible; 0=not visible. The default is 1 (visible).

This value is normally controlled by the widget's or widget parent's instance and update functions. For example, the UIoption widget that creates menus would set its child widget's visibility to 1 when a user selects a menu item. In a UIdialog, OK would change visibility to 0, removing the dialog, while Apply would leave it set at 1.

This value is read/write.

&active

If 1, UIobject is sensitive to pointer/keyboard interaction. If 0, it is "grayed out" and cannot be activated.

pixmap

Pixmap resources.

color

Foreground and background color attributes. Inherited from UIcolor.

fontAttributes

Font family attributes. Inherited from UIfontAttributes.

fontList (on Unix systems only)

String. A font list string specified in the XFLD format (X Logical Font Description) that describes a font to be used for the text strings associated with this object. The specified font must match one of those specified in the fonts.v file (see Adding fonts to AVS/Express  in the Using AVS/Express manual).

handle;
cxxhandle

Handles to native windowing system objects. UIwinHandle

layout

Not used. Included for future expansion.

motif_resources;
window_resources;
|layout

No longer used. Included for backwards compatibility.

 

Example

Not available.

File

v/UI.v