Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WidgetProperties ¶
type WidgetProperties struct {
// contains filtered or unexported fields
}
WidgetProperties: A convenient structure that implements methods to add multiple properties to an object at a time, considering a property restriction list that contains unauthorized properties for certain types of objects.
func (*WidgetProperties) AddProperty ¶
func (wp *WidgetProperties) AddProperty(name string, value interface{})
AddProperty: add new property to the list, will be applied to all parent objects
func (*WidgetProperties) AddPropertyUnallowed ¶
func (wp *WidgetProperties) AddPropertyUnallowed(value []interface{})
AddPropertyUnallowed: add new unallowed property to the list i.e: []interface{}{new(gtk.Image), "justify", "wrap", "pattern", "relief"} means that the gtk.Image object cannot handle: "justify", "wrap", "pattern", "relief" properties.
func (*WidgetProperties) PropsToWidget ¶
func (wp *WidgetProperties) PropsToWidget(wdg gtk.IWidget)
PropsToWidget: Apply the properties to the object after filtering unauthorized ones. Can be used for independent objects, such as those built into an independant box that will be added as a container, to the Dialog's list of the main objects.
func (*WidgetProperties) Reset ¶
func (wp *WidgetProperties) Reset(wdg gtk.IWidget)
Reset: user defined lists