Reference for the Mosaic class Views::Bevel

Views::Bevel
AlphaBlended
ColorB
ColorL
ColorR
ColorT
Embedded
Visible
Width
Core::RectView
Bounds
Core::View
Layout
Owner
StackingPriority
AdjustDrawingArea()
ArrangeView()
ChangeViewState()
CursorHitTest()
Draw()
GetClipping()
GetExtent()
GetRoot()
HandleEvent()
MoveView()

SEE ALSO

Using the Bevel view to display sunken or raised looking border.

The class Views::Bevel provides a kind of view specialized to draw a beveled border. The position and the size of the border are determined by the property Bounds. The colors to draw the border are defined by the properties ColorL, ColorT, ColorR and ColorB. For each edge different color can be set. The bevel is drawn with the thickness defined in the property Width.

The visibility of the border is controlled by the properties Visible, AlphaBlended and Embedded. In particular the property Embedded can determine whether the corresponding view is limited (== embedded) to the boundary of a sibling Core::Outline view or not. The embedding of views within a Core::Outline allows a kind of sub-groups within the GUI component itself. Very useful for any kind of scrollable lists, menus, etc.

property bool AlphaBlended = true;

The property 'AlphaBlended' determines the drawing mode for the view. Views with disabled alpha-blending will override the affected screen areas. If this mode is enabled, the pixel of the view are combined with the origin screen content by alpha-blending.

property color ColorB = #000000FF;

The property 'ColorB' stores the color to draw the bottom edge of the bevel.

property color ColorL = #000000FF;

The property 'ColorL' stores the color to draw the left edge of the bevel.

property color ColorR = #FFFFFFFF;

The property 'ColorR' stores the color to draw the right edge of the bevel.

property color ColorT = #FFFFFFFF;

The property 'ColorT' stores the color to draw the top edge of the bevel.

property bool Embedded = false;

The property 'Embedded' controls how the view should appear and behave within its superior Owner. If this property == 'true', the affected view will be embedded (limited) to the boundary of a preceding Core::Outline sibling view. This is as if the view had been embedded within this outline. Beside the appearance limitation of the outline boundary, the outline also provides more sophisticated arrangement mechanisms and the content scrolling. It is therefore useful to create scrollable menus or lists.

If this property is 'false', the view is considered as a regular view of its Owner - it doesn't belong to any outline.

property bool Visible = true;

The property 'Visible' determines the visibility state of the view. Invisible views will not appear on the screen. Whether a view is really visible depends on the visibility of its Owner and the position of the view within the owners boundary area.

property int32 Width = 1;

The property 'Width' stores the width of the bevel's edge in pixel.