Class ViewStackPage
- All Implemented Interfaces:
Accessible, Proxy
ViewStack.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classViewStackPage.Builder<B extends ViewStackPage.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.static classNested classes/interfaces inherited from class GObject
GObject.NotifyCallback, GObject.ObjectClassNested classes/interfaces inherited from interface Accessible
Accessible.Accessible$Impl, Accessible.AccessibleInterface -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new ViewStackPage.ViewStackPage(MemorySegment address) Create a ViewStackPage instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionprotected ViewStackPageasParent()Return this instance as if it were its parent type.static ViewStackPage.Builder<? extends ViewStackPage.Builder> builder()AViewStackPage.Builderobject constructs aViewStackPagewith the specified properties.intGets the badge number for this page.getChild()Gets the stack child to which this ViewStackPage belongs.@Nullable StringGets the icon name of the page.static MemoryLayoutThe memory layout of the native struct.@Nullable StringgetName()Gets the name of the page.booleanGets whether the page requires the user attention.@Nullable StringGets the section title forself.booleanGets whether this ViewStackPage starts a section.@Nullable StringgetTitle()Gets the page title.static @Nullable TypegetType()Get the GType of the ViewStackPage class.booleanGets whether underlines in the page title indicate mnemonics.booleanGets whether this ViewStackPage is visible in itsAdwViewStack.voidsetBadgeNumber(int badgeNumber) Sets the badge number for this page.voidsetIconName(@Nullable String iconName) Sets the icon name of the page.voidSets the name of the page.voidsetNeedsAttention(boolean needsAttention) Sets whether the page requires the user attention.voidsetSectionTitle(@Nullable String sectionTitle) Sets the section title forself.voidsetStartsSection(boolean startsSection) Sets whether this ViewStackPage starts a section.voidSets the page title.voidsetUseUnderline(boolean useUnderline) Sets whether underlines in the page title indicate mnemonics.voidsetVisible(boolean visible) Sets whether this ViewStackPage is visible in itsAdwViewStack.Methods inherited from class GObject
addToggleRef, addWeakPointer, bindProperty, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, connect, constructed, disconnect, dispatchPropertiesChanged, dispose, dupData, dupQdata, emit, emitNotify, finalize_, forceFloating, freezeNotify, get, getData, getProperty, getProperty, getProperty, getQdata, getv, interfaceFindProperty, interfaceInstallProperty, interfaceListProperties, isFloating, newInstance, newInstance, newv, notify, notify, notifyByPspec, onNotify, ref, refSink, removeToggleRef, removeWeakPointer, replaceData, replaceQdata, runDispose, set, setData, setDataFull, setProperty, setProperty, setProperty, setQdata, setQdataFull, setv, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnref, withPropertiesMethods inherited from class TypeInstance
callParent, callParent, cast, getPrivate, readGClass, writeGClassMethods inherited from class ProxyInstance
equals, handle, hashCodeMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Accessible
announce, getAccessibleId, getAccessibleParent, getAccessibleRole, getAtContext, getBounds, getFirstAccessibleChild, getNextAccessibleSibling, getPlatformState, resetProperty, resetRelation, resetState, setAccessibleParent, updateNextAccessibleSibling, updatePlatformState, updateProperty, updateRelation, updateState
-
Constructor Details
-
ViewStackPage
Create a ViewStackPage instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
ViewStackPage
public ViewStackPage()Create a new ViewStackPage.
-
-
Method Details
-
getType
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
asParent
Return this instance as if it were its parent type. Comparable to the Javasuperkeyword, but ensures the parent typeclass is also used in native code. -
getBadgeNumber
public int getBadgeNumber()Gets the badge number for this page.- Returns:
- the badge number for this page
-
getChild
Gets the stack child to which this ViewStackPage belongs.- Returns:
- the child to which this ViewStackPage belongs
-
getIconName
Gets the icon name of the page.- Returns:
- the icon name of the page
-
getName
-
getNeedsAttention
public boolean getNeedsAttention()Gets whether the page requires the user attention.- Returns:
- whether the page needs attention
-
getSectionTitle
Gets the section title forself.- Returns:
- the section title
- Since:
- 1.9
-
getStartsSection
public boolean getStartsSection()Gets whether this ViewStackPage starts a section.- Returns:
- whether this ViewStackPage starts a section
- Since:
- 1.9
-
getTitle
-
getUseUnderline
public boolean getUseUnderline()Gets whether underlines in the page title indicate mnemonics.- Returns:
- whether underlines in the page title indicate mnemonics
-
getVisible
public boolean getVisible()Gets whether this ViewStackPage is visible in its
AdwViewStack.This is independent from the
Gtk.Widget:visibleproperty of its widget.- Returns:
- whether this ViewStackPage is visible
-
setBadgeNumber
public void setBadgeNumber(int badgeNumber) Sets the badge number for this page.
ViewSwitchercan display it as a badge next to the page icon. It is commonly used to display a number of unread items within the page.It can be used together with
ViewStack{age}:needs-attention.- Parameters:
badgeNumber- the new value to set
-
setIconName
Sets the icon name of the page.- Parameters:
iconName- the icon name
-
setName
Sets the name of the page.- Parameters:
name- the page name
-
setNeedsAttention
public void setNeedsAttention(boolean needsAttention) Sets whether the page requires the user attention.
ViewSwitcherwill display it as a dot next to the page icon.- Parameters:
needsAttention- the new value to set
-
setSectionTitle
Sets the section title for
self.Does nothing unless
ViewStackPage:starts-sectionis set.- Parameters:
sectionTitle- the section title- Since:
- 1.9
-
setStartsSection
public void setStartsSection(boolean startsSection) Sets whether this ViewStackPage starts a section.
If set to
TRUE,ViewStack:pageswill have a section starting from this page.If
ViewStackPage:section-titleis set, it should be used as a title for the section.- Parameters:
startsSection- whether this ViewStackPage starts a section- Since:
- 1.9
-
setTitle
Sets the page title.- Parameters:
title- the page title
-
setUseUnderline
public void setUseUnderline(boolean useUnderline) Sets whether underlines in the page title indicate mnemonics.- Parameters:
useUnderline- the new value to set
-
setVisible
public void setVisible(boolean visible) Sets whether this ViewStackPage is visible in its
AdwViewStack.This is independent from the
Gtk.Widget:visibleproperty ofViewStackPage:child.- Parameters:
visible- whether this ViewStackPage is visible
-
builder
AViewStackPage.Builderobject constructs aViewStackPagewith the specified properties. Use the variousset...()methods to set properties, and finish construction withViewStackPage.Builder.build().- Returns:
- the builder object
-