<?xml version="1.0" encoding="UTF-8"?>

<?import javafx.scene.canvas.*?>
<?import javafx.scene.layout.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.*?>
<?import java.net.*?>
<?import net.zamasoft.reader.book.*?>

<AnchorPane xmlns:fx="http://javafx.com/fxml" fx:controller="net.zamasoft.reader.book.BookController"
            fx:id="root" styleClass="book" onMouseMoved="#mouseMoved">
  <stylesheets>
    <URL value="@book.css" />
  </stylesheets>
  
  <!-- 本の内容表示 -->
  <Pane fx:id="stackPane"
        AnchorPane.rightAnchor="10" AnchorPane.leftAnchor="10" AnchorPane.topAnchor="0" AnchorPane.bottomAnchor="38"
        onMouseClicked="#mouseClicked" onMousePressed="#mousePressed"/>
  
  <!-- 明るさ調整マスク -->
  <Pane fx:id="maskPane" AnchorPane.rightAnchor="10" AnchorPane.leftAnchor="10" AnchorPane.topAnchor="0" AnchorPane.bottomAnchor="38"
        mouseTransparent="true" opacity="0"/>
  
  <!-- スクロールバー -->
  <MyScrollBar fx:id="scroll"
             AnchorPane.rightAnchor="10" AnchorPane.leftAnchor="10" AnchorPane.bottomAnchor="10"
             onMouseReleased="#scrollMouseReleased"
             onMouseEntered="#scrollMouseEntered"
             onMouseExited="#scrollMouseExited" />
             
  <!-- スクロール先のタイトルラベル -->
  <HBox alignment="CENTER"
        AnchorPane.rightAnchor="10" AnchorPane.leftAnchor="10" AnchorPane.bottomAnchor="33"
        mouseTransparent="true">
    <Label fx:id="scrollLabel" opacity="0"/>
  </HBox>
  
  <!-- ツール類 -->
  <fx:include fx:id="toolbar" source="toolbar.fxml"/>
  <fx:include fx:id="sidepane" source="sidepane.fxml"/>
</AnchorPane>