class virtual generic_widget :
object
.. end
Inherits
method virtual get_width : int
the width of the widget (in px)
method virtual set_width : int -> unit
change width
method virtual get_height : int
the heigth of the widget (in px)
method virtual set_height : int -> unit
change height
method virtual get_x : int
the distance between the widget and the left border of the first
positioned parent.
method virtual set_x : int -> unit
set the distance between the widget and the left border of the first
positioned parent to the given value.
method virtual set_anti_x : int -> unit
set the distance between the widget and the right border of the first
positioned parent to the given value.
method virtual get_y : int
the distance between the widget and the top border of the first
positioned parent
method virtual set_y : int -> unit
set the distance between the widget and the top border of the first
positioned parent to the given value.
method virtual set_anti_y : int -> unit
set the distance between the widget and the bottom border of the first
positioned parent to the given value.
method virtual move_x : int -> unit
increase the distance between the widget and the left border of the first
positioned parent by a given amount. It automatically decreases the distance
between the widget and the right border of the first positioned parent
accordingly. Argument can be less than zero.
method virtual move_y : int -> unit
increase the distance between the widget and the top border of the first
positioned parent by a given amount. It automatically decreases the distance
between the widget and the bottom border of the first positioned parent
accordingly. Argument can be less than zero.
method virtual set_attribute : string -> string -> unit
set_attribute name value
sets the attribute name
to value
. It is
mid-level and should be used carefully.method virtual get_attribute : string -> string
get_attribute name
returns the value held by the node's name
attribute.method virtual set_position : position -> unit
change the
attribute to the given value.method virtual get_position : position
get the current value of the
attribute.method virtual set_z_index : int -> unit
Set the zIndex attribute. Use it to place overlaping widgets above or
bellow one another.
method virtual get_z_index : int
Get the zIndex attibute
method virtual auto_set_z_index : int
Set the zIndex according to
AXOJs.Misc.new_z_index
and returns it. If
the only method used to set zIndex's is this one, it places the widget on
top of the others.method virtual set_background : color -> unit
Set the background color for the widget
method virtual get_background : color
Get the background color the widget currently has
method virtual set_margin_left : int -> unit
Set the left margin for the widget
method virtual set_margin_right : int -> unit
Set the right margin for the widget
method virtual set_margin_top : int -> unit
Set the top margin for the widget
method virtual set_margin_bottom : int -> unit
Set the bottom margin for the widget
method virtual remove_attribute : string -> unit
remove_attribute name
wipes the value help by the node's name
attribute out.method virtual set_attribute : string -> string -> unit
set_attribute name value
sets the attribute name
to value
. It is
mid-level and should be used carefully.method virtual get_attribute : string -> string
get_attribute name
returns the value held by the node's name
attribute.method virtual set_style_property : string -> string -> unit
set_style_property name value
set the style property name
to value
.
It's equivalent to the node.style.name = value
Javascript statement.method virtual get_style_property : string -> string
get_style_property name
returns the value of the property whose name
matches name
.