Valadoc
|
Vala
|
Tutorial
|
API-References
|
Markup
Packages
gtk+-2.0
Gtk
Frame
label
label_widget
label_xalign
label_yalign
shadow
shadow_type
Frame
compute_child_allocation
get_label
get_label_align
get_label_widget
get_shadow_type
set_label
set_label_align
set_label_widget
set_shadow_type
child_allocation
Frame
Object Hierarchy:
Description:
public
class
Frame
:
Bin
,
Implementor
,
Buildable
All known sub-classes:
AspectFrame
Namespace:
Gtk
Package:
gtk+-2.0
Content:
Properties:
public
string
label
{
set
;
get
; }
public
Widget
label_widget
{
set
;
get
; }
public
float
label_xalign
{
set
;
get
; }
public
float
label_yalign
{
set
;
get
; }
public
ShadowType
shadow
{
set
;
get
; }
public
ShadowType
shadow_type
{
set
;
get
; }
Creation methods:
public
Frame
(
string
? label)
Creates a new
Frame
, with optional label
label
. If
label
is
null
, the label is omitted.
Methods:
public
virtual
void
compute_child_allocation
(
Allocation
allocation)
public
unowned
string
get_label
()
If the frame's label widget is a
Label
, returns the text in the label widget. (The frame will have a
Label
for the label widget if a non-%NULL argument was passed to
Frame
.)
public
void
get_label_align
(
float
xalign,
float
yalign)
Retrieves the X and Y alignment of the frame's label. See
set_label_align
.
public
weak
Widget
get_label_widget
()
Retrieves the label widget for the frame. See
set_label_widget
.
public
ShadowType
get_shadow_type
()
Retrieves the shadow type of the frame. See
set_shadow_type
.
public
void
set_label
(
string
label)
Sets the text of the label. If
label
is
null
, the current label is removed.
public
void
set_label_align
(
float
xalign,
float
yalign)
Sets the alignment of the frame widget's label. The default values for a newly created frame are 0.0 and 0.5.
public
void
set_label_widget
(
Widget
label_widget)
Sets the label widget for the frame. This is the widget that will appear embedded in the top edge of the frame as a title.
public
void
set_shadow_type
(
ShadowType
type)
Sets the shadow type for
frame
.
Fields:
public
Allocation
child_allocation