CtkBin

CtkBin — A container with just one child

Functions

Types and Values

struct CtkBin
struct CtkBinClass

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── CtkWidget
            ╰── CtkContainer
                ╰── CtkBin
                    ├── CtkWindow
                    ├── CtkActionBar
                    ├── CtkAlignment
                    ├── CtkComboBox
                    ├── CtkFrame
                    ├── CtkButton
                    ├── CtkMenuItem
                    ├── CtkEventBox
                    ├── CtkExpander
                    ├── CtkFlowBoxChild
                    ├── CtkHandleBox
                    ├── CtkListBoxRow
                    ├── CtkToolItem
                    ├── CtkOverlay
                    ├── CtkScrolledWindow
                    ├── CtkPopover
                    ├── CtkRevealer
                    ├── CtkSearchBar
                    ├── CtkStackSidebar
                    ╰── CtkViewport

Implemented Interfaces

CtkBin implements AtkImplementorIface and CtkBuildable.

Includes

#include <ctk/ctk.h>

Description

The CtkBin widget is a container with just one child. It is not very useful itself, but it is useful for deriving subclasses, since it provides common code needed for handling a single child widget.

Many CTK+ widgets are subclasses of CtkBin, including CtkWindow, CtkButton, CtkFrame, CtkHandleBox or CtkScrolledWindow.

Functions

ctk_bin_get_child ()

CtkWidget *
ctk_bin_get_child (CtkBin *bin);

Gets the child of the CtkBin, or NULL if the bin contains no child widget. The returned widget does not have a reference added, so you do not need to unref it.

Parameters

bin

a CtkBin

 

Returns

the child of bin , or NULL if it does not have a child.

[transfer none][nullable]

Types and Values

struct CtkBin

struct CtkBin;

struct CtkBinClass

struct CtkBinClass {
  CtkContainerClass parent_class;
};

Members