///
/// HybridGoogleSignInButtonSpecSwift.hpp
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
/// https://github.com/mrousavy/nitro
/// Copyright © Marc Rousavy @ Margelo
///

#pragma once

#include "HybridGoogleSignInButtonSpec.hpp"

// Forward declaration of `HybridGoogleSignInButtonSpec_cxx` to properly resolve imports.
namespace NitroGoogleSignin { class HybridGoogleSignInButtonSpec_cxx; }

// Forward declaration of `GoogleSignInButtonColorScheme` to properly resolve imports.
namespace margelo::nitro::nitrogooglesignin { enum class GoogleSignInButtonColorScheme; }
// Forward declaration of `GoogleSignInButtonNativeSize` to properly resolve imports.
namespace margelo::nitro::nitrogooglesignin { enum class GoogleSignInButtonNativeSize; }
// Forward declaration of `GoogleSignInButtonContentAlignment` to properly resolve imports.
namespace margelo::nitro::nitrogooglesignin { enum class GoogleSignInButtonContentAlignment; }

#include "GoogleSignInButtonColorScheme.hpp"
#include "GoogleSignInButtonNativeSize.hpp"
#include "GoogleSignInButtonContentAlignment.hpp"
#include <optional>
#include <functional>

#include "NitroGoogleSignin-Swift-Cxx-Umbrella.hpp"

namespace margelo::nitro::nitrogooglesignin {

  /**
   * The C++ part of HybridGoogleSignInButtonSpec_cxx.swift.
   *
   * HybridGoogleSignInButtonSpecSwift (C++) accesses HybridGoogleSignInButtonSpec_cxx (Swift), and might
   * contain some additional bridging code for C++ <> Swift interop.
   *
   * Since this obviously introduces an overhead, I hope at some point in
   * the future, HybridGoogleSignInButtonSpec_cxx can directly inherit from the C++ class HybridGoogleSignInButtonSpec
   * to simplify the whole structure and memory management.
   */
  class HybridGoogleSignInButtonSpecSwift: public virtual HybridGoogleSignInButtonSpec {
  public:
    // Constructor from a Swift instance
    explicit HybridGoogleSignInButtonSpecSwift(const NitroGoogleSignin::HybridGoogleSignInButtonSpec_cxx& swiftPart):
      HybridObject(HybridGoogleSignInButtonSpec::TAG),
      _swiftPart(swiftPart) { }

  public:
    // Get the Swift part
    inline NitroGoogleSignin::HybridGoogleSignInButtonSpec_cxx& getSwiftPart() noexcept {
      return _swiftPart;
    }

  public:
    inline size_t getExternalMemorySize() noexcept override {
      return _swiftPart.getMemorySize();
    }
    bool equals(const std::shared_ptr<HybridObject>& other) override {
      if (auto otherCast = std::dynamic_pointer_cast<HybridGoogleSignInButtonSpecSwift>(other)) {
        return _swiftPart.equals(otherCast->_swiftPart);
      }
      return false;
    }
    void dispose() noexcept override {
      _swiftPart.dispose();
    }
    std::string toString() override {
      return _swiftPart.toString();
    }

  public:
    // Properties
    inline GoogleSignInButtonColorScheme getColorScheme() noexcept override {
      auto __result = _swiftPart.getColorScheme();
      return static_cast<GoogleSignInButtonColorScheme>(__result);
    }
    inline void setColorScheme(GoogleSignInButtonColorScheme colorScheme) noexcept override {
      _swiftPart.setColorScheme(static_cast<int>(colorScheme));
    }
    inline GoogleSignInButtonNativeSize getSize() noexcept override {
      auto __result = _swiftPart.getSize();
      return static_cast<GoogleSignInButtonNativeSize>(__result);
    }
    inline void setSize(GoogleSignInButtonNativeSize size) noexcept override {
      _swiftPart.setSize(static_cast<int>(size));
    }
    inline bool getDisabled() noexcept override {
      return _swiftPart.getDisabled();
    }
    inline void setDisabled(bool disabled) noexcept override {
      _swiftPart.setDisabled(std::forward<decltype(disabled)>(disabled));
    }
    inline std::optional<GoogleSignInButtonContentAlignment> getContentAlignment() noexcept override {
      auto __result = _swiftPart.getContentAlignment();
      return __result;
    }
    inline void setContentAlignment(std::optional<GoogleSignInButtonContentAlignment> contentAlignment) noexcept override {
      _swiftPart.setContentAlignment(contentAlignment);
    }
    inline std::function<void()> getOnPress() noexcept override {
      auto __result = _swiftPart.getOnPress();
      return __result;
    }
    inline void setOnPress(const std::function<void()>& onPress) noexcept override {
      _swiftPart.setOnPress(onPress);
    }

  public:
    // Methods
    

  private:
    NitroGoogleSignin::HybridGoogleSignInButtonSpec_cxx _swiftPart;
  };

} // namespace margelo::nitro::nitrogooglesignin
