home
wiki
classes/clusters list
class information
+
Point of view
ANY
ANY
CONTAINER
LAYOUT
INTERNALS_HANDLER
All features
deferred class LINE
Summary
top
Use line as widget (insert in container then position, draw and size are automatic). Common ancestor for
HORIZONTAL_LINE
and
VERTICAL_LINE
Direct parents
inherit list:
DRAWABLE_HANDLER
,
GRAPHIC
,
WIDGET
Known children
inherit list:
HORIZONTAL_LINE
,
VERTICAL_LINE
Class invariant
top
std_width > 0
std_height > 0
Overview
top
exported features
width
:
INTEGER_32
height
:
INTEGER_32
thickness
:
INTEGER_32
style
:
DRAW_STYLE
set_thickness
(thick:
INTEGER_32
)
Set the thickness of the line (drawing' witdh)
set_style
(s:
DRAW_STYLE
)
Change the style used to draw the line.
reset_default_style
The renderer will be used to draw the line.
parent
:
CONTAINER
pos_x
:
INTEGER_32
pos_y
:
INTEGER_32
x_shrink_allowed
:
BOOLEAN
x_expand_allowed
:
BOOLEAN
y_shrink_allowed
:
BOOLEAN
y_expand_allowed
:
BOOLEAN
min_width
:
INTEGER_32
min_height
:
INTEGER_32
std_width
:
INTEGER_32
std_height
:
INTEGER_32
valid_width
(w:
INTEGER_32
):
BOOLEAN
valid_height
(h:
INTEGER_32
):
BOOLEAN
area
:
RECT
root_area
:
RECT
set_x_shrink
(b:
BOOLEAN
)
set_x_expand
(b:
BOOLEAN
)
set_y_shrink
(b:
BOOLEAN
)
set_y_expand
(b:
BOOLEAN
)
set_shrink
(b:
BOOLEAN
)
change both x and y shrink state
set_expand
(b:
BOOLEAN
)
change both x and y expand state
state
:
INTEGER_32
use values from
STATE_CONSTANTS
is_state_normal
:
BOOLEAN
is_state_active
:
BOOLEAN
is_state_prelight
:
BOOLEAN
is_state_selected
:
BOOLEAN
is_state_insensitive
:
BOOLEAN
width
:
INTEGER_32
writable attribute
top
height
:
INTEGER_32
writable attribute
top
thickness
:
INTEGER_32
writable attribute
top
style
:
DRAW_STYLE
writable attribute
top
set_thickness
(thick:
INTEGER_32
)
deferred procedure
top
Set the thickness of the line (drawing' witdh)
require
thick > 0
ensure
thick =
thickness
set_style
(s:
DRAW_STYLE
)
effective procedure
top
Change the style used to draw the line.
NOTE: The screen is not updated. --TODO: change this ?
ensure
style
= s
reset_default_style
effective procedure
top
The renderer will be used to draw the line.
NOTE: The screen is not updated. --TODO: change this ?
parent
:
CONTAINER
writable attribute
top
pos_x
:
INTEGER_32
writable attribute
top
pos_y
:
INTEGER_32
writable attribute
top
x_shrink_allowed
:
BOOLEAN
writable attribute
top
x_expand_allowed
:
BOOLEAN
writable attribute
top
y_shrink_allowed
:
BOOLEAN
writable attribute
top
y_expand_allowed
:
BOOLEAN
writable attribute
top
min_width
:
INTEGER_32
deferred function
top
min_height
:
INTEGER_32
deferred function
top
std_width
:
INTEGER_32
deferred function
top
std_height
:
INTEGER_32
deferred function
top
valid_width
(w:
INTEGER_32
):
BOOLEAN
effective function
top
valid_height
(h:
INTEGER_32
):
BOOLEAN
effective function
top
area
:
RECT
effective function
top
root_area
:
RECT
effective function
top
set_x_shrink
(b:
BOOLEAN
)
effective procedure
top
set_x_expand
(b:
BOOLEAN
)
effective procedure
top
set_y_shrink
(b:
BOOLEAN
)
effective procedure
top
set_y_expand
(b:
BOOLEAN
)
effective procedure
top
set_shrink
(b:
BOOLEAN
)
effective procedure
top
change both x and y shrink state
set_expand
(b:
BOOLEAN
)
effective procedure
top
change both x and y expand state
state
:
INTEGER_32
writable attribute
top
use values from
STATE_CONSTANTS
is_state_normal
:
BOOLEAN
frozen
effective function
top
is_state_active
:
BOOLEAN
frozen
effective function
top
is_state_prelight
:
BOOLEAN
frozen
effective function
top
is_state_selected
:
BOOLEAN
frozen
effective function
top
is_state_insensitive
:
BOOLEAN
frozen
effective function
top