Vuido
  • About Vuido
  • Introduction
  • Installation
    • Manual Configuration
    • Production Builds
  • Usage
    • Window Template
    • Script Section
    • Interpolations
    • Computed Properties
    • Conditionals and Loops
    • Handling User Input
    • Managing Windows
    • Displaying Dialogs
    • Custom Components
    • Using libui Classes
    • Common Attributes
  • Packaging
  • Built-in Components
    • Window
    • Containers
      • Box
      • Form
      • Group
      • Tab
    • Widgets
      • Area
        • AreaGroup
        • AreaPath
        • AreaText
      • Button
      • Checkbox
      • ColorButton
      • Combobox
      • DatePicker
      • DateTimePicker
      • DropdownList
      • FontButton
      • ProgressBar
      • RadioButtons
      • Separator
      • Slider
      • Spinbox
      • Text
      • TextArea
      • TextInput
      • TimePicker
Powered by GitBook
On this page
  • Attributes
  • path
  • fill
  • stroke
  • line
  • Example
  1. Built-in Components
  2. Widgets
  3. Area

AreaPath

PreviousAreaGroupNextAreaText

Last updated 6 years ago

A stroked and/or filled path.

Attributes

path

type:

The path to be stroked and/or filled.

fill

type:

The fill brush. By default it is inherited by the parent . If not specified, the path is not filled.

stroke

type:

The stroke brush. By default it is inherited by the parent . If not specified, the path is not stroked.

line

type:

The style of line for the stroke. By default it is inherited by the parent . If not specified, a solid one-pixel line is used.

Example

<template>
  <Area>
    <AreaPath v-bind:path="circlePath" v-bind:fill="redBrush"/>
  </Area>
</template>

<script>
import libui from 'libui-node'

export default {
  computed: {
    cicrlePath() {
      const path = new libui.UiDrawPath( libui.fillMode.winding );
      path.newFigureWithArc( 100, 100, 50, 0, Math.PI * 2, false );
      path.end();
      return path;
    },
    redBrush() {
      const brush = new libui.DrawBrush();
      brush.color = new libui.Color( 1, 0, 0, 1 );
      brush.type = libui.brushType.solid;
      return brush;
    }
  }
}
</script>
libui.UiDrawPath
libui.DrawBrush
AreaGroup
libui.DrawBrush
AreaGroup
libui.DrawStrokeParams
AreaGroup