Rapicorn - Experimental UI Toolkit  16.0.0
Rapicorn::Widget Interface Reference

Widget is the base type for all UI elements. More...

import"interfaces.idl";

Inheritance diagram for Rapicorn::Widget:
[legend]

Public Member Functions

Widget Selector API
bool match_selector (String selector)
 Check if selector matches this widget.
 
Widget query_selector (String selector)
 Returns first selector match.
 
WidgetSeq query_selector_all (String selector)
 Returns all selector matches.
 
Widget query_selector_unique (String selector)
 Returns single selector match if unique. More...
 
Widget Miscellaneous
void data_context (Object context)
 Provide context object for data Binding. More...
 
Hosting arbitrary user data
void set_user_data (String name, Any any)
 Store user data any under name.
 
Any get_user_data (String name)
 Retrieve user data stored under name. More...
 
Testing & Debugging
String test_dump ()
 

Public Attributes

String name
 Identification name of the widget.
 
bool visible
 Whether this widget is visible.
 
bool sensitive
 Whether this widget is sensitive (receives events)
 
bool allow_focus
 Whether this widget may receive input focus.
 
ColorScheme color_scheme
 Color scheme to render this widget.
 
Widget Packing Properties
bool hexpand
 Whether to expand this widget horizontally.
 
bool vexpand
 Whether to expand this widget vertically.
 
bool hspread
 Whether to expand this widget and all its parents horizontally.
 
bool vspread
 Whether to expand this widget and all its parents vertically.
 
bool hshrink
 Whether the widget may be shrunken horizontally.
 
bool vshrink
 Whether the widget may be shrunken vertically.
 
float64 hposition
 Horizontal layout position for the widget.
 
float64 hspan
 Horizontal span for widget layout.
 
float64 vposition
 Vertical layout position for the widget.
 
float64 vspan
 Vertical span for widget layout.
 
float64 hanchor
 Horizontal position of child anchor, 0=left, 1=right.
 
float64 vanchor
 Vertical position of child anchor, 0=bottom, 1=top.
 
float64 halign
 Horizontal position within extra space when unexpanded, 0=left, 1=right.
 
float64 hscale
 Fractional horizontal expansion within extra space, 0=unexpanded, 1=expanded.
 
float64 valign
 Vertical position within extra space when unexpanded, 0=bottom, 1=top.
 
float64 vscale
 Fractional vertical expansion within extra space, 0=unexpanded, 1=expanded.
 
int32 left_spacing
 Amount of spacing to add at the widget's left side.
 
int32 right_spacing
 Amount of spacing to add at the widget's right side.
 
int32 bottom_spacing
 Amount of spacing to add at the widget's bottom side.
 
int32 top_spacing
 Amount of spacing to add at the widget's top side.
 

User Sizes and Size Groups

String hsize_group
 Group name for widgets requesting the same horizontal size.
 
String vsize_group
 Group name for widgets requesting the same vertical size.
 
float64 width
 The width to request from its container for this widget, -1=automatic.
 
float64 height
 The height to request from its container for this widget, -1=automatic.
 
Requisition requisition ()
 Get the current effective size requisition.
 

Detailed Description

Widget is the base type for all UI elements.

See also the corresponding C++ servant class WidgetIface.

See also the corresponding C++ stub class WidgetHandle.

See also the corresponding implementation class WidgetImpl.

Member Function Documentation

void Rapicorn::Widget::data_context ( Object  context)

Provide context object for data Binding.

Any Rapicorn::Widget::get_user_data ( String  name)

Retrieve user data stored under name.

Widget Rapicorn::Widget::query_selector_unique ( String  selector)

Returns single selector match if unique.


The documentation for this interface was generated from the following file: