Native Windows GUI: Features
Almost all of the features of native-windows-gui are behimd feature flags, but by default it includes everything.
In order to cut the compile time, specify
default-features=false
in Cargo.toml. Ex:
native-windows-gui = {
version="1",
default-features=false,
features = [
"extern-canvas", "frame", "raw-win-handle",
"listbox", "flexbox", "cursor",
"animation-timer"
]
}
Feature list
Here is a list of all the features in NWG
- animation-timer: A custom timer to handle animations and timeout
- clipboard: Enable the clipboard features
- color-dialog: Enable the color dialog
- combobox: The combobox control
- cursor: The GlobalCursor utility to handle the windows mouse cursor
- datetime-picker: The datetime picker control
- dynamic_layout: Enable dynamic layout
- embed-resource: Enable the EmbedResource resource
- extern-canvas: The extern canvas control. It can be used as a target to render from external API (like opengl or Vulkan)
- file-dialog: The file dialog resource
- flexbox: The flexbox layout
- font-dialog: The font dialog resource
- frame: The frame control. A optionally bordered rect that can contain children.
- high-dpi: Enable high-dpi functions
- image-decoder: Add lots of supported image format to Bitmap and the ImageDecoder resource
- image-list: Adds icons to controls that implement them (listview, tabs, etc)
- list-view: The list view control
- listbox: The list box control
- menu: Menu bar & menu item for top level window. Also includes popup menus
- message-window: An invisible window that processes messages in the background
- no-styling: Disable automatic style (ex: if you specify stylling in the manifest)
- notice: An obejct to wake up a gui thread from another thread
- number-select: A custom control to select numbers
- progress-bar: The progress bar control
- raw-win-handle: Implement the raw-window-handle for extern canvas and window
- rich-textbox: A rich text box control
- scroll-bar: A scrollbar control
- status-bar: A satus bar control
- tabs: The tabs container control
- textbox: A simple text box
- timer: DEPRECATED. Use animation-timer instead.
- tooltip: The Tooltip control. It manages tooltip for 1 or more gui controls
- trackbar: The trackbar control
- tray-notification: Windows tray notification
- tree-view: The treeview control
- tree-view-iterator: An iterator for the tree view control
- winnls: Internationalization windows service ex: The month name locale example