Class Image
- Superclasses :
-
gui::Component
- Package :
- gui
This class loads an image from file and displays it. The
image should be in GIF format. A border may be included
with toggle_draw_border().
The size of the area into which the image is drawn must be
set with set_size().
- Source
Methods inherited from gui::Component |
accepts_focus()
add(c, i)
all_valid()
can_drag(ev)
can_drop(d)
child_validated(c)
clear_accepts_focus()
clear_allow_drag()
clear_allow_drop()
clear_draw_border()
clear_is_shaded()
compute_absolutes()
create_event_and_fire(type, param)
do_handle_event(e)
do_shading(W)
drag_event(d)
drag_reset()
end_drag(d, c)
fatal(s)
find_accel(e)
find_focus()
fire_icon_events_on_mouse(p, e)
firstly()
generate_components()
get_accel()
get_cbwin_reference()
get_children()
get_cwin_reference()
get_h_reference()
get_parent()
get_parent_buffer_win()
get_parent_dialog()
get_parent_dialog_reference()
get_parent_win()
get_w_reference()
get_x_reference()
get_y_reference()
got_focus(e)
handle_accel(e)
in_region()
init()
invalidate()
invoke_can_drag(ev)
invoke_can_drop(d)
invoke_drag_event(d)
invoke_drag_reset()
invoke_end_drag(d, c)
is_attrib(s)
is_dialog_open()
is_hidden()
is_shaded()
is_ticking()
is_unhidden()
is_unshaded()
keeps(e)
lost_focus(e)
parse_pos(total, s)
remove(c)
resize()
retime_ticker(n)
set_abs_coords(x, y)
set_abs_size(w, h)
set_accel(k)
set_accepts_focus()
set_align(x_align, y_align)
set_allow_drag()
set_allow_drop()
set_attribs(x[])
set_attribs_list(l)
set_draw_border()
set_is_shaded()
set_parent(c)
set_parent_dialog(c)
set_pos(x_spec, y_spec)
set_size(w_spec, h_spec)
set_ticker(n, d)
set_tooltip(x)
stop_ticker()
tick()
toggle_draw_border()
toggle_is_shaded()
unique_end(x)
unique_start()
validate()
|
Methods inherited from util::SetFields |
as_attrib(attr, val)
attrib(a[])
cset_val(attr, val)
field_error(s)
int_val(attr, val)
int_vals(attr, val, n)
numeric_val(attr, val)
numeric_vals(attr, val, n)
set_fields(l)
string_val(attr, val)
string_vals(attr, val, n)
test_flag(attr, val)
|
Variables inherited from util::Connectable |
listeners
|
clear_cache_image()
-
Clear the cache image flag (the default).
- Source
clear_scale_up()
-
Clear the scale up flag (the default).
- Source
close_image()
-
- Source
display(buffer_flag)
- Overrides display(buffer_flag) in gui::Component
-
- Source
finally()
- Overrides finally() in gui::Component
-
- Source
handle_event(e)
- Overrides handle_event(e) in gui::Component
-
- Source
image_changed()
-
Invoke this is if the image in the file changed (but the filename
didn't). The image will be reloaded and redisplayed.
- Source
initially()
- Overrides initially() in util::Connectable
-
set_cache_image()
-
Set the cache image flag
- Source
set_filename(x)
-
Set the name of the file from which to load the image;
re-display the image from the new file if appropriate.
- Source
set_internal_alignment(x, y)
-
Set the horizontal and vertical alignment of the image within the
area of the component; x should be ``l'', ``c'' or ``r'', y should
be ``t'', ``c'' or ``b''. Default is ``c'', ``c''.
- Source
set_one(attr, val)
- Overrides set_one(attr, val) in util::SetFields
-
- Source
set_scale_up()
-
If set, then the image will be scaled up to fit in the space
specified by set_size(). The image will not be distorted,
but will be expanded to fill one of the dimensions depending
on its shape. If the image is bigger than the specified size
then it will always be scaled down.
- Source
cache_image_flag
-
filename
-
scale_up_flag
-
x_internal_alignment
-
y_internal_alignment
-