Etk
Main Page Object Hierarchy Data Structures Related Pages
Etk

Etk_Bin


Detailed Description

The Etk_Bin widget is a container that can contain only one child.

The Etk_Bin widget is mainly used as a base class for containers that only have one child (such as Etk_Alignment, Etk_Window, Etk_Frame...).

Object Hierarchy:
  • Etk_Object
    • Etk_Widget
      • Etk_Container
        • Etk_Bin
Properties:
  • "child": The child of the bin.
    • Type: Pointer (Etk_Widget *)
    • Access: Read/Write
    • Default Value: NULL


Data Structures

struct  Etk_Bin
 [Widget] A container that can contain only one child More...

Defines

#define ETK_BIN_TYPE   (etk_bin_type_get())
#define ETK_BIN(obj)   (ETK_OBJECT_CAST((obj), ETK_BIN_TYPE, Etk_Bin))
#define ETK_IS_BIN(obj)   (ETK_OBJECT_CHECK_TYPE((obj), ETK_BIN_TYPE))

Functions

void etk_bin_child_set (Etk_Bin *bin, Etk_Widget *child)
 Sets the child of the bin.
Etk_Widget * etk_bin_child_get (Etk_Bin *bin)
 Gets the child of the bin.


Define Documentation

#define ETK_BIN_TYPE   (etk_bin_type_get())

Gets the type of a bin

#define ETK_BIN ( obj   )     (ETK_OBJECT_CAST((obj), ETK_BIN_TYPE, Etk_Bin))

Casts the object to an Etk_Bin

#define ETK_IS_BIN ( obj   )     (ETK_OBJECT_CHECK_TYPE((obj), ETK_BIN_TYPE))

Checks if the object is an Etk_Bin


Function Documentation

void etk_bin_child_set ( Etk_Bin *  bin,
Etk_Widget *  child 
)

Sets the child of the bin.

Parameters:
bin a bin
child the widget to add to the bin

Etk_Widget * etk_bin_child_get ( Etk_Bin *  bin  ) 

Gets the child of the bin.

Parameters:
bin a bin
Returns:
Returns the child of the bin or NULL if it doesn't have a child