home
wiki
classes/clusters list
class information
+
Point of view
ANY
ANY
CONTAINER
LAYOUT
INTERNALS_HANDLER
All features
deferred class WIDGET
Summary
top
WIDGET
(i.e. WInDow GadGET) is the most abstract class for all graphical objects.
A
WIDGET
can have a fixed size or a
WIDGET
can be shrinked or expanded (
x_shrink_allowed
,
x_expand_allowed
,
y_shrink_allowed
and
y_expand_allowed
).
The current
WIDGET
size is given by
width
and
height
. The minimum possible size is given by
min_width
and
min_height
. The needed space to be able to see the entire
WIDGET
is given by
std_width
and
std_height
.
Following properties are worth to be known:
When
x_shrink_allowed
is True, then
width
>=
min_width
.
When
y_shrink_allowed
is True, then
height
>=
min_height
.
When
x_shrink_allowed
is False, then
width
>=
std_width
When
y_shrink_allowed
is False, then
height
>=
std_height
When
x_expand_allowed
is True, then
width
can increase.
When
y_expand_allowed
is True, then
height
can increase.
When
x_expand_allowed
is False, then
width
<=
std_width
.
When
y_expand_allowed
is False, then
height
<=
std_height
.
Direct parents
insert list:
STATE
Known children
inherit list:
ALIGNABLE
,
BUTTON_SPACE
,
CHECK_SPACE
,
CURSOR_SPACE
,
DECORATION
,
DRAWABLE
,
LABEL
,
LINE
,
RECTANGLE
Class invariant
top
std_width
> 0
std_height
> 0
Overview
top
exported features
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
width
:
INTEGER_32
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
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
width
:
INTEGER_32
deferred function
top
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