Module
Lborder
Home
In: locana/l_border.rb locana/l_tabgroup.rb

Adds a special border for Ltabpage buttons (Ltabpage_button) to reflect when the tabpage is selected. Basically this is the :sunken border with the bottom line missing.

Methods

border_width, groove, none, paint_border, raised, ridge, shadow, sizing, solid, sunken, supported_borders, tabpage_button_selected,
Public Instance methods
supported_borders() src

Returns a Hash of supported borders.

none(frame_id, x, y, w, h, bcolor=DARK_COLOR, ocolor=LIGHT_COLOR, border_width=nil) src

This border type does nothing. It allows Locana objects use a border of :none without having to anything special like check the border type.

solid(frame_id, x, y, w, h, bcolor=DARK_COLOR, ocolor=LIGHT_COLOR, border_width=nil) src

This is a solid border.

raised(frame_id, x, y, w, h, bcolor=DARK_COLOR, ocolor=LIGHT_COLOR, border_width=nil) src

This is a raised border. This is drawn using two colors to create the raised effect.

sunken(frame_id, x, y, w, h, bcolor=DARK_COLOR, ocolor=LIGHT_COLOR, border_width=nil) src

This is a sunken border. This is drawn using two colors to create the sunken effect.

ridge(frame_id, x, y, w, h, bcolor=DARK_COLOR, ocolor=LIGHT_COLOR, border_width=nil) src

This is a ridge border. This is drawn using two colors to create the ridge effect.

groove(frame_id, x, y, w, h, bcolor=DARK_COLOR, ocolor=LIGHT_COLOR, border_width=nil) src

This is a groove border. This is drawn using two colors to create the sunken effect. It calls ridge with the colors reversed.

shadow(frame_id, x, y, w, h, bcolor=DARK_COLOR, ocolor=:black, border_width=nil) src

This is a sunken border. This is drawn using two colors to create the shadow effect.

sizing(frame_id, x, y, w, h, bcolor=:gray50, ocolor=nil, border_width=nil) src

Locana uses this internally when the object has no border and :allow_sizing is turned on. The GUI builder relies on this for object that don’t have a border.

border_width(border) src

Returns the default width of the border.

paint_border(frame_id, border, x, y, w, h, bcolor=nil, ocolor=nil, border_width=nil) src

Locana calls this to render all borders. This forwards to the appropriate method for drawing the border.

tabpage_button_selected(frame_id, x, y, w, h, bcolor=nil, ocolor=nil, border_width=nil) src

This is a special border for Ltabpage buttons (Ltabpage_button) when they are selected. Basically it is the :sunken border with the bottom line missing.


Seva Software


Thank you for taking the time to visit this web page. I trust you found the information contained in this page useful.
Please email any questions, concerns, or issues with this web site to webmaster@sevasoftware.com.
Please remember Seva Software when your company would benefit from an experienced database architect and software engineer.

http://www.arunadb.org http://www.locana.org http://www.ruby-lang.org http://www.coolwell.org http://www.sevasoftware.com