|
API Documentation
|
|
|
204 virtual void setSize (
float width,
float height) ;
virtual void updateWindow()
Data holder for a click event.
Definition: ClickEventData.h:12
void setRatio(float widthOverHeight)
nkMaths::Point getPositionInScreen() const
System * getSystem() const
Data holder for a key event.
Definition: KeyEventData.h:12
virtual void importClassFromTree(nkExport::Node *rootNode) override
nkMaths::Point getCoordAbsoluteFromRelative(nkMaths::Point relCoords)
virtual void setWidth(float width)
nkMaths::Point getCoordRelativeFromAbsolute(nkMaths::Point absCoords)
std::function< bool(Component *)> getCloseCallback() const
void setClickCallback(std::function< void(Component *caller, const ClickEventData &eventData)> callback)
LAYOUT_TYPE
Defines the type of layout available.
Definition: LayoutType.h:12
virtual void setPositionInParent(nkMaths::Point position)
An interface to define objects that can be exported using this component.
Definition: Exportable.h:15
virtual void setVisibility(bool value)
Layout * getLayout() const
void removeChild(unsigned int index)
nkMaths::Rectangle getAreaInScreen() const
void setMinSize(float width, float height)
Represents a layout to organize children of a component.
Definition: Layout.h:12
Offers an interface to work with fonts.
Definition: Font.h:14
nkImages::Image paintToImage(bool withFrame=false)
void setMaxSize(float width, float height)
virtual void setAreaInParent(const nkMaths::Rectangle &area)
void simulateEvent(const InputDescriptor &inputDescription)
virtual Layout * setLayout(LAYOUT_TYPE layoutType)
nkMaths::Rectangle getAreaInParent() const
Base class for any graphical component.
Definition: Component.h:12
void unloadWithChildren()
The main system of the component.
Definition: System.h:18
virtual void setHeight(float height)
virtual unsigned int getZDepth() const
void setEnabled(bool value)
virtual void setFont(Font *font)
virtual void setTheme(Theme *theme)
bool isInitialized() const
void setVisibleOnLoad(bool value)
virtual void exportClassToTree(nkExport::Node *rootNode) override
virtual void setParentComponent(Component *parent, bool makeItVisible=true)
std::function< void(Component *, const KeyEventData &)> getKeyCallback() const
Component * getParentComponent() const
std::function< void(Component *, bool)> getVisibilityCallback() const
A node in the tree structure representing the data to export / import.
Definition: Node.h:42
COMPONENT_TYPE
Available component types.
Definition: ComponentType.h:12
virtual void setAreaInScreen(const nkMaths::Rectangle &area)
virtual nkMaths::Point getBorderExtents() const
COMPONENT_TYPE getComponentType() const
virtual nkMemory::StringView getLabel() const
virtual void setPositionInScreen(nkMaths::Point position)
Represents a 2D Point.
Definition: Point.h:12
void setWheelCallback(std::function< void(Component *caller, const WheelEventData &eventData)> callback)
void setCloseCallback(std::function< bool(Component *caller)> callback)
virtual float getLayoutAllowedOffsetX() const
Component * getChild(unsigned int index)
virtual float getLayoutAllowedHeight() const
Class holding information about a string, with no ownership over the data.
Definition: StringView.h:22
void setKeyCallback(std::function< void(Component *caller, const KeyEventData &eventData)> callback)
bool isForegroundWindow() const
virtual void setSize(float width, float height)
Component(System *system) noexcept
A theme used to style the windows in the component.
Definition: Theme.h:44
bool getVisibility() const
std::function< void(Component *, const WheelEventData &)> getWheelCallback() const
virtual void exportIntrospection(nkExport::Node *rootNode)
nkMemory::StringView getComponentName() const
BORDER_KIND
Lists borders kind around components.
Definition: BorderKind.h:12
Represents a 2D rectangle.
Definition: Rectangle.h:12
void setComponentName(nkMemory::StringView name)
virtual float getBorderExtent(BORDER_KIND border) const
nkMaths::Point getPositionInParent() const
Data holder for a wheel event.
Definition: WheelEventData.h:12
void removeChild(Component *child)
bool getVisibleOnLoad() const
virtual float getLayoutAllowedWidth() const
Encompasses all API of component NilkinsWinUi.
Definition: Clipboard.h:7
virtual void setLabel(nkMemory::StringView label)
virtual float getLayoutAllowedOffsetY() const
void addChild(Component *child, bool makeItVisible=true)
Holds all information required for an image, with ownership over the data.
Definition: Image.h:14
std::function< void(Component *, const ClickEventData &)> getClickCallback() const
unsigned int getChildIndex(Component *child)
void setVisibilityCallback(std::function< void(Component *caller, bool visibility)> callback)