label.sa
Generated by gen_html_sa_files from ICSI. Contact gomes@icsi.berkeley.edu for details
---------------------------> Sather 1.1 source file <--------------------------
-- label.sa: Label widget
-- Author: Benedict A. Gomes <gomes@samosa.ICSI.Berkeley.EDU>
-- Copyright (C) 1995, International Computer Science Institute
-- label.sa,v 1.1 1995/11/15 03:36:44 gomes Exp
--
-- COPYRIGHT NOTICE: This code is provided WITHOUT ANY WARRANTY
-- and is subject to the terms of the SATHER LIBRARY GENERAL PUBLIC
-- LICENSE contained in the file: Sather/Doc/License of the
-- Sather distribution. The license is also available from ICSI,
-- 1947 Center St., Suite 600, Berkeley CA 94704, USA.
class TK_LABEL_CFG < $TK_WIDGET_CFG
class TK_LABEL_CFG < $TK_WIDGET_CFG is
include TK_WIDGET_CFG_INCL
text->text,
padx->padx, pady->pady,
justify_left->justify_left,justify_right->justify_right,
justify_center->justify_center,
relief_none->relief_none,relief_raised->relief_raised,
relief_sunken->relief_sunken,
relief_flat->relief_flat,relief_ridge->relief_ridge,
relief_groove->relief_groove,
font->font,
background->background,
foreground->foreground,
borderwidth->borderwidth,
wraplength->wraplength,
highlightcolor->highlightcolor,
highlightthickness->highlightthickness;
-- bitmap->bitmap, image->image, cursor->cursor,
anchor(a: TK_ANCHOR) is config("anchor",a.str) end;
anchor(a: TK_ANCHOR): SAME is anchor(a); return self end;
std: SAME is return new.relief_flat.anchor(TK_ANCHOR::nw) end;
end;
class TK_LABEL < $TK_WIDGET
class TK_LABEL < $TK_WIDGET is
include TK_WIDGET_INCL{TK_LABEL_CFG};
const tk_widget_type: STR := "label";
end; -- class TK_LABEL