Package ch.bailu.gtk.gtk
Class CenterLayout
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.gobject.Object
ch.bailu.gtk.gtk.LayoutManager
ch.bailu.gtk.gtk.CenterLayout
- All Implemented Interfaces:
PointerInterface
`GtkCenterLayout` is a layout manager that manages up to three children.
The start widget is allocated at the start of the layout (left in
left-to-right locales and right in right-to-left ones), and the end
widget at the end.
The center widget is centered regarding the full width of the layout's.
The start widget is allocated at the start of the layout (left in
left-to-right locales and right in right-to-left ones), and the end
widget at the end.
The center widget is centered regarding the full width of the layout's.
-
Nested Class Summary
Nested classes/interfaces inherited from class ch.bailu.gtk.gobject.Object
Object.OnBindingTransformFunc, Object.OnDestroyNotify, Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify
-
Field Summary
Fields inherited from class ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the baseline position of the layout.Returns the center widget of the layout.static ClassHandler
Returns the end widget of the layout.static int
int
Gets the current orienration of the layout manager.static long
static TypeSystem.TypeSize
Returns the start widget fo the layout.static long
static TypeSystem.TypeSize
void
setBaselinePosition
(int baseline_position) Sets the new baseline position of @selfvoid
setCenterWidget
(Widget widget) Sets the new center widget of @self.void
setEndWidget
(Widget widget) Sets the new end widget of @self.void
setOrientation
(int orientation) Sets the orientation of @self.void
setStartWidget
(Widget widget) Sets the new start widget of @self.Methods inherited from class ch.bailu.gtk.gtk.LayoutManager
allocate, getLayoutChild, getRequestMode, getWidget, layoutChanged, measure
Methods inherited from class ch.bailu.gtk.gobject.Object
addToggleRef, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, disconnect, disconnect, dupData, dupData, dupQdata, forceFloating, freezeNotify, get, get, getData, getData, getProperty, getProperty, getQdata, interfaceFindProperty, interfaceInstallProperty, isFloating, notify, notify, notifyByPspec, onNotify, ref, refSink, removeToggleRef, replaceData, replaceData, replaceQdata, runDispose, set, set, setData, setData, setDataFull, setDataFull, setProperty, setProperty, setQdata, setQdataFull, stealData, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnref
Methods inherited from class ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Methods inherited from class ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Constructor Details
-
CenterLayout
-
CenterLayout
public CenterLayout()Creates a new `GtkCenterLayout`.
-
-
Method Details
-
getClassHandler
-
getBaselinePosition
public int getBaselinePosition()Returns the baseline position of the layout.- Returns:
- The current baseline position of @self.
-
getCenterWidget
Returns the center widget of the layout.- Returns:
- the current center widget of @self
-
getEndWidget
Returns the end widget of the layout.- Returns:
- the current end widget of @self
-
getOrientation
public int getOrientation()Gets the current orienration of the layout manager.- Returns:
- The current orientation of @self
-
getStartWidget
Returns the start widget fo the layout.- Returns:
- The current start widget of @self
-
setBaselinePosition
public void setBaselinePosition(int baseline_position) Sets the new baseline position of @self- Parameters:
baseline_position
- the new baseline position
-
setCenterWidget
Sets the new center widget of @self.
To remove the existing center widget, pass %NULL.- Parameters:
widget
- the new center widget
-
setEndWidget
Sets the new end widget of @self.
To remove the existing center widget, pass %NULL.- Parameters:
widget
- the new end widget
-
setOrientation
public void setOrientation(int orientation) Sets the orientation of @self.- Parameters:
orientation
- the new orientation
-
setStartWidget
Sets the new start widget of @self.
To remove the existing start widget, pass %NULL.- Parameters:
widget
- the new start widget
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-